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

//_HADES_CLASS_DESCRIPTION 
/////////////////////////////////////////////////////////////
// HGeomTof
//
// Class for geometry of TOF
//
/////////////////////////////////////////////////////////////

#include "hgeomtof.h"
#include "hgeomtofhit.h"

ClassImp(HGeomTof)

HGeomTof::HGeomTof() {
  // Constructor
  fName="tof";
  maxSectors=6;
  maxModules=22;
  Int_t mod[]={0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1};
  if (!modules) modules=new TArrayI(maxSectors*maxModules);
  for (Int_t s=0;s<maxSectors;s++) { 
    for (Int_t m=0;m<maxModules;m++) modules->AddAt(mod[m],(s*maxModules+m));
  } 
  pHit=new HGeomTofHit(this);
}

const Char_t* HGeomTof::getModuleName(Int_t m) {
  // Returns the name of module m
  if (m<9) sprintf(modName,"T0%iF",m+1);
  else sprintf(modName,"T%iF",m+1);
  return modName;
}

const Char_t* HGeomTof::getEleName(Int_t m) {
  // Returns the element name in module m
  if (m<9) sprintf(eleName,"T0%i",m+1);
  else sprintf(eleName,"T%i",m+1);
  return eleName;
}
 hgeomtof.cc:1
 hgeomtof.cc:2
 hgeomtof.cc:3
 hgeomtof.cc:4
 hgeomtof.cc:5
 hgeomtof.cc:6
 hgeomtof.cc:7
 hgeomtof.cc:8
 hgeomtof.cc:9
 hgeomtof.cc:10
 hgeomtof.cc:11
 hgeomtof.cc:12
 hgeomtof.cc:13
 hgeomtof.cc:14
 hgeomtof.cc:15
 hgeomtof.cc:16
 hgeomtof.cc:17
 hgeomtof.cc:18
 hgeomtof.cc:19
 hgeomtof.cc:20
 hgeomtof.cc:21
 hgeomtof.cc:22
 hgeomtof.cc:23
 hgeomtof.cc:24
 hgeomtof.cc:25
 hgeomtof.cc:26
 hgeomtof.cc:27
 hgeomtof.cc:28
 hgeomtof.cc:29
 hgeomtof.cc:30
 hgeomtof.cc:31
 hgeomtof.cc:32
 hgeomtof.cc:33
 hgeomtof.cc:34
 hgeomtof.cc:35
 hgeomtof.cc:36
 hgeomtof.cc:37
 hgeomtof.cc:38
 hgeomtof.cc:39
 hgeomtof.cc:40
 hgeomtof.cc:41
 hgeomtof.cc:42