31 #include "SteppingAction.hh"
33 #include "DetectorConstruction.hh"
34 #include "RunAction.hh"
35 #include "PrimaryGeneratorAction.hh"
36 #include "EventAction.hh"
48 lvol_world = lvol_module = lvol_layer = lvol_fiber = 0;
87 if (lvol == lvol_world)
return;
101 if (edep == 0.)
return;
106 G4int i1Module = (
int) ((point1.
x() + 0.5*calorThickness)/moduleThickness);
107 G4int i1Pixel = (
int) ((point1.
x() + 0.5*calorThickness)/d1Pixel);
108 if (i1Pixel < 0 ) i1Pixel = 0;
109 if (i1Pixel >= n1pxl) i1Pixel = n1pxl - 1;
111 if (i1Module%2 != 0) point1yz = point1.
z();
112 G4int i2Pixel = (
int) ((point1yz + 0.5*calorSizeYZ)/d2Pixel);
113 if (i2Pixel < 0 ) i2Pixel = 0;
114 if (i2Pixel >= n2pxl) i2Pixel = n2pxl - 1;
116 G4int iPixel = i1Pixel*n1shift + i2Pixel;
124 if (lvol == lvol_fiber) {
143 if (birk1*destep*stepl*charge != 0.)
145 response = destep/(1. + birk1*destep/stepl);
G4LogicalVolume * GetLvolModule()
G4ParticleDefinition * GetDefinition() const
void SumVisibleEnergy(G4int pixel, G4double de)
G4IonisParamMat * GetIonisation() const
G4double GetStepLength() const
typedef int(XMLCALL *XML_NotStandaloneHandler)(void *userData)
G4Material * GetMaterial() const
G4double GetCalorSizeYZ()
G4LogicalVolume * GetLvolLayer()
G4LogicalVolume * GetLvolFiber()
G4double GetCalorThickness()
void UserSteppingAction(const G4Step *)
G4double GetBirksConstant() const
G4StepPoint * GetPreStepPoint() const
const G4ThreeVector & GetPosition() const
G4double GetRadlen() const
G4double GetTotalEnergyDeposit() const
G4Material * GetMaterial() const
G4double BirksAttenuation(const G4Step *)
G4LogicalVolume * GetLogicalVolume() const
void SumNbRadLength(G4double dn)
void SumTotalEnergy(G4int pixel, G4double de)
virtual G4VPhysicalVolume * GetVolume(G4int depth=0) const
static G4Geantino * Geantino()
G4double GetModuleThickness()
G4Track * GetTrack() const
G4double GetPDGCharge() const
const G4TouchableHandle & GetTouchableHandle() const
G4LogicalVolume * GetLvolWorld()