31 #include "SteppingAction.hh"
33 #include "DetectorConstruction.hh"
34 #include "RunAction.hh"
35 #include "PrimaryGeneratorAction.hh"
36 #include "EventAction.hh"
37 #include "HistoManager.hh"
52 lvol_world = lvol_module = lvol_layer = lvol_fiber = 0;
91 if (lvol == lvol_world)
return;
105 if (edep == 0.)
return;
110 G4int i1Module = (
int) ((point1.
x() + 0.5*calorThickness)/moduleThickness);
111 G4int i1Pixel = (
int) ((point1.
x() + 0.5*calorThickness)/d1Pixel);
112 if (i1Pixel < 0 ) i1Pixel = 0;
113 if (i1Pixel >= n1pxl) i1Pixel = n1pxl - 1;
115 if (i1Module%2 != 0) point1yz = point1.
z();
116 G4int i2Pixel = (
int) ((point1yz + 0.5*calorSizeYZ)/d2Pixel);
117 if (i2Pixel < 0 ) i2Pixel = 0;
118 if (i2Pixel >= n2pxl) i2Pixel = n2pxl - 1;
120 G4int iPixel = i1Pixel*n1shift + i2Pixel;
128 if (lvol == lvol_fiber) {
147 if (birk1*destep*stepl*charge != 0.)
149 response = destep/(1. + birk1*destep/stepl);