64 NbOfCALChannels = NbOfCALBars*NbOfCALLayers;
66 ChitXID =
new G4int[NbOfCALChannels];
67 ChitYID =
new G4int[NbOfCALChannels];
85 for (
G4int i=0;i<NbOfCALChannels;i++)
98 if ((edep/
keV == 0.))
return false;
111 G4int PlaneNumber = 0;
118 NChannel = PlaneNumber * NbOfCALBars + CALBarNumber;
120 if (PlaneName ==
"CALLayerX" )
126 if (ChitXID[NChannel]==-1)
135 CalorimeterCollection->
insert(CalorimeterHit) -1;
139 (*CalorimeterCollection)
140 [ChitXID[NChannel]]->AddEnergy(edep);
144 if (PlaneName ==
"CALLayerY")
148 if (ChitYID[NChannel]==-1)
158 CalorimeterCollection->
insert(CalorimeterHit)-1;
162 (*CalorimeterCollection)
163 [ChitYID[NChannel]]->AddEnergy(edep);
174 static G4int HCID = -1;
182 for (
G4int i=0;i<NbOfCALChannels;i++)