15 #include "G4Material.hh"
16 #include "CLHEP/Units/GlobalSystemOfUnits.h"
35 <<
" with three constants kB = " <<
birk1_ <<
", C1 = " <<
birk2_
45 throw cms::Exception(
"Unknown",
"HCalTB06BeamSD") <<
"Cannot find HcalTB06BeamParameters";
52 double destep = aStep->GetTotalEnergyDeposit();
58 << aStep->GetPreStepPoint()->GetTouchable()->GetVolume()->GetName() <<
" weight "
65 const G4StepPoint* preStepPoint = aStep->GetPreStepPoint();
66 const G4VTouchable* touch = preStepPoint->GetTouchable();
67 std::string name = static_cast<std::string>(preStepPoint->GetPhysicalVolume()->GetName());
70 int lay = 0,
x = 0,
y = 0;
72 lay = (touch->GetReplicaNumber(0));
75 lay = (touch->GetReplicaNumber(1));
76 G4ThreeVector localPoint =
setToLocal(preStepPoint->GetPosition(), touch);
77 x = (
int)(localPoint.x() / (0.2 * mm));
78 y = (
int)(localPoint.y() / (0.2 * mm));