100 if ((edep/
keV == 0.))
return false;
114 G4int PlaneNumber = 0;
120 G4int StripNumber = 0;
131 G4int NTile = (TileNumber%TileTotal);
136 for (j=0;j<TileTotal;j++)
138 if(NTile==j) StripNumber += StripTotal*NTile;
141 NChannel = PlaneNumber*TileTotal*StripTotal + StripNumber;
148 if (PlaneName ==
"TKRDetectorX" )
157 TrackerHit->
SetPos(aStep->GetPreStepPoint()->GetPosition());
165 (*TrackerCollection)[
ThitXID[NChannel]]->AddSil(edep);
170 if (PlaneName ==
"TKRDetectorY")
179 TrackerHit->
SetPos(aStep->GetPreStepPoint()->GetPosition());
187 (*TrackerCollection)[
ThitYID[NChannel]]->AddSil(edep);
199 static G4int HCID = -1;
G4int GetNbOfTKRLayers() const
G4String SensitiveDetectorName
G4int GetCollectionID(G4String colName)
GammaRayTelDetectorConstruction * Detector
void SetPlaneType(G4int i)
void SetNSilPlane(G4int i)
void Initialize(G4HCofThisEvent *)
G4bool ProcessHits(G4Step *astep, G4TouchableHistory *ROHist)
void insert(G4String str)
void SetPos(G4ThreeVector xyz)
G4THitsCollection< GammaRayTelTrackerHit > GammaRayTelTrackerHitsCollection
void AddHitsCollection(G4int HCID, G4VHitsCollection *aHC)
GammaRayTelTrackerSD(G4String)
static G4RunManager * GetRunManager()
const G4String & GetName() const
G4int GetNbOfTKRTiles() const
static G4SDManager * GetSDMpointer()
virtual G4int GetCopyNo() const =0
void EndOfEvent(G4HCofThisEvent *)
G4int GetNbOfTKRStrips() const
G4VPhysicalVolume * GetVolume(G4int depth=0) const
G4CollectionNameVector collectionName
const G4VUserDetectorConstruction * GetUserDetectorConstruction() const
GammaRayTelTrackerHitsCollection * TrackerCollection