4 #include "G4VPhysicalVolume.hh"
5 #include "G4PVPlacement.hh"
6 #include "G4HCofThisEvent.hh"
7 #include "G4TouchableHistory.hh"
10 #include "G4VSolid.hh"
11 #include "G4DynamicParticle.hh"
12 #include "G4ParticleDefinition.hh"
13 #include "G4SDManager.hh"
16 #include "G4PhysicalConstants.hh"
17 #include "G4SystemOfUnits.hh"
24 :
SensitiveCaloDetector(iname, es, clg,
p), m_trackManager(manager), hcID(-1), theHC(nullptr), currentHit(nullptr) {
31 edm::LogVerbatim(
"FiberSim") <<
"HFWedgeSD : Initialize called for " << GetName() <<
" in collection " << HCE;
43 G4StepPoint* preStepPoint = aStep->GetPreStepPoint();
44 const G4VTouchable* touch = preStepPoint->GetTouchable();
46 trackID = aStep->GetTrack()->GetTrackID();
47 edep = aStep->GetTotalEnergyDeposit();
48 time = (preStepPoint->GetGlobalTime()) / ns;
52 const G4DynamicParticle* particle = aStep->GetTrack()->GetDynamicParticle();
53 momDir = particle->GetMomentumDirection();
79 std::map<int, HFShowerG4Hit*>::const_iterator it =
hitMap.find(
currentID);
90 <<
" Edep: " <<
edep /
CLHEP::MeV <<
" MeV; Time: " <<
time <<
" ns; Position (local) "
122 const G4VTouchable* touch = aStep->GetPreStepPoint()->GetTouchable();
123 return (touch->GetReplicaNumber(0));