63 NbOfTKRStrips = NbOfTKRStrips*NbOfTKRTiles;
65 NbOfTKRChannels = NbOfTKRStrips* NbOfTKRTiles * NbOfTKRLayers;
67 ThitXID =
new G4int[NbOfTKRChannels];
68 ThitYID =
new G4int[NbOfTKRChannels];
87 for (
G4int i=0;i<NbOfTKRChannels;i++)
100 if ((edep/
keV == 0.))
return false;
114 G4int PlaneNumber = 0;
121 G4int StripNumber = 0;
134 G4int NTile = (TileNumber%TileTotal);
139 for (j=0;j<TileTotal;j++)
141 if(NTile==j) StripNumber += StripTotal*NTile;
144 NChannel = PlaneNumber*TileTotal*StripTotal + StripNumber;
151 if (PlaneName ==
"TKRDetectorX" )
155 if (ThitXID[NChannel]==-1)
164 TrackerCollection->
insert(TrackerHit) -1;
168 (*TrackerCollection)[ThitXID[NChannel]]->AddSil(edep);
173 if (PlaneName ==
"TKRDetectorY")
177 if (ThitYID[NChannel]==-1)
186 TrackerCollection->
insert(TrackerHit)-1;
190 (*TrackerCollection)[ThitYID[NChannel]]->AddSil(edep);
202 static G4int HCID = -1;
210 for (
G4int i=0;i<NbOfTKRChannels;i++)