//*-- AUTHOR : Ilse Koenig
//*-- Created : 10/11/2003

//_HADES_CLASS_DESCRIPTION 
/////////////////////////////////////////////////////////////
// HGeomRich
//
// Class for geometry of RICH
//
/////////////////////////////////////////////////////////////

#include "hgeomrich.h"
#include "hgeomnode.h"
#include "hgeommedia.h"
#include "hgeomrichhit.h"

ClassImp(HGeomRich)

HGeomRich::HGeomRich() {
  // Constructor
  fName="rich";
  strcpy(modName,"RICH");
  strcpy(eleName,"R");
  maxSectors=0;
  maxModules=1;
  pHit=new HGeomRichHit(this);
}

Bool_t HGeomRich::read(fstream& fin,HGeomMedia* media) {
  // Reads the geometry from file
  Bool_t rc=HGeomSet::read(fin,media);
  if (rc) addRefNodes();
  return rc;  
}

void HGeomRich::addRefNodes() {
  // Adds the reference node
  HGeomNode* volu=getVolume("RTAM");
  if (volu) {
    masterNodes->Add(new HGeomNode(*volu));
    volu->setVolumeType(kHGeomRefNode);
  }
}

Last change: Sat May 22 12:56:31 2010
Last generated: 2010-05-22 12:56

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.