62 HitHPGeID =
new G4int[500];
75 HitHPGeID =
new G4int[500];
86 mercuryDetector = det;
88 HitHPGeID =
new G4int[500];
120 else if (planeDetector) {nPixel = planeDetector->
GetNbOfPixels();}
121 else if (mercuryDetector) {nPixel = mercuryDetector->
GetNbOfPixels();}
123 for (
G4int j=0;j<nPixel;j++)
124 {HitHPGeID [j]= -1;};
150 if (edep==0.)
return false;
160 G4int PixelNumber = 0;
168 if ( HitHPGeID[PixelNumber]==-1)
172 HitHPGeID[PixelNumber] = HPGeCollection->
insert(HPGeHit) - 1;
174 G4cout <<
" New Hit on pixel: " << PixelNumber <<
G4endl;
179 (*HPGeCollection)[HitHPGeID[PixelNumber]]->AddEnergy(edep);
182 G4cout <<
" Energy added to Pixel: " << PixelNumber <<
G4endl;
193 static G4int HCID = -1;