101 if (edep == 0.)
return false;
115 G4int PlaneNumber = 0;
121 G4int StripNumber = 0;
132 G4int NTile = (TileNumber%TileTotal);
137 for (j=0;j<TileTotal;j++)
139 if(NTile==j) StripNumber += StripTotal*NTile;
142 NChannel = PlaneNumber*TileTotal*StripTotal + StripNumber;
149 if (PlaneName ==
"TKRDetectorX" )
166 (*TrackerCollection)[
ThitXID[NChannel]]->AddSil(edep);
171 if (PlaneName ==
"TKRDetectorY")
188 (*TrackerCollection)[
ThitYID[NChannel]]->AddSil(edep);
200 static G4int HCID = -1;
G4int GetNbOfTKRLayers() const
G4int GetCollectionID(G4String colName)
static G4RunManager * GetRunManager()
G4int GetNbOfTKRTiles() const
void EndOfEvent(G4HCofThisEvent *)
const G4VTouchable * GetTouchable() const
G4StepPoint * GetPreStepPoint() const
GammaRayTelTrackerHitsCollection * TrackerCollection
void AddHitsCollection(G4int HCID, G4VHitsCollection *aHC)
GammaRayTelTrackerSD(G4String)
GammaRayTelDetectorConstruction * Detector
G4String SensitiveDetectorName
void SetNSilPlane(G4int i)
G4THitsCollection< GammaRayTelTrackerHit > GammaRayTelTrackerHitsCollection
void insert(G4String str)
G4bool ProcessHits(G4Step *astep, G4TouchableHistory *ROHist)
G4VPhysicalVolume * GetVolume(G4int depth=0) const
const G4ThreeVector & GetPosition() const
void SetPlaneType(G4int i)
G4double GetTotalEnergyDeposit() const
virtual G4int GetCopyNo() const =0
void Initialize(G4HCofThisEvent *)
static G4SDManager * GetSDMpointer()
G4CollectionNameVector collectionName
G4int GetNbOfTKRStrips() const
void SetPos(G4ThreeVector xyz)
const G4VUserDetectorConstruction * GetUserDetectorConstruction() const
const G4String & GetName() const