//*-- AUTHOR : Ilse Koenig //*-- Created : 01/08/2003 ///////////////////////////////////////////////////////////// // HGeoTofHit // // Class for TOF/TOFINO hit definition in GEANT // ///////////////////////////////////////////////////////////// #include "hgeotofhit.h" #include "hgeotof.h" #include "FairGeoNode.h" ClassImp(HGeoTofHit) HGeoTofHit::HGeoTofHit(HGeoTof* p) : HGeoHit(p) { // Constructor } Int_t HGeoTofHit::getIdType() { // Returns the idType for the current node if (!currentNode) return 0; const char* volumeName=currentNode->GetName(); Int_t l1=(Int_t)(volumeName[1]-'0'); Int_t l2=(Int_t)(volumeName[2]-'0'); return 100+10*l1+l2; }