//*-- AUTHOR : Ilse Koenig //*-- Created : 29/07/2003 ///////////////////////////////////////////////////////////// // HGeoMdcHit // // Class for MDC hit definition in GEANT // ///////////////////////////////////////////////////////////// #include "hgeomdchit.h" #include "hgeomdc.h" #include "FairGeoNode.h" ClassImp(HGeoMdcHit) HGeoMdcHit::HGeoMdcHit(HGeoMdc* p) : HGeoHit(p) { // Constructor } Int_t HGeoMdcHit::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[3]-'0'); if(volumeName[2]=='C'&&volumeName[3]=='4') l2 = 7; // this is the 4th cathode plane return 10*l1+l2; }