5 #include <phparameter/PHParameters.h>
46 , m_Detector(detector)
47 , m_Params(parameters)
48 , m_HitContainer(nullptr)
50 , m_SaveHitContainer(nullptr)
51 , m_SaveVolPre(nullptr)
52 , m_SaveVolPost(nullptr)
54 , m_SavePreStepStatus(-1)
55 , m_SavePostStepStatus(-1)
56 , m_ActiveFlag(m_Params->get_int_param(
"active"))
101 std::cout <<
"[>>>>>] call EICG4dRICHSteppingAction::UserSteppingAction" << std::endl;
131 std::cout <<
"[-] track ID=" << aTrack->
GetTrackID()
132 <<
", particle=" << particleName << std::endl;
142 std::cout <<
"[_] step preVol=" << preTouchVolName
143 <<
", postVol=" << postTouchVolName <<
", whichactive=" << whichactive
152 if (prePointVolName.
contains(
"dRICHpetal") && postPointVolName.
contains(
"dRICHpsst"))
156 else if (prePointVolName.
contains(
"World") && postPointVolName.
contains(
"dRICHvessel"))
160 else if (prePointVolName.
contains(
"dRICHvessel") && postPointVolName.
contains(
"World"))
171 std::cout <<
"[__] step is ENTERING vessel" << std::endl;
214 std::cout <<
"[__] first step in a new volume" << std::endl;
223 std::cerr <<
"ERROR: impossible G4 Step" << std::endl;
224 std::cout <<
GetName() <<
": New Hit for " << std::endl;
225 std::cout <<
"prestep status: "
227 <<
", poststep status: "
229 <<
", last pre step status: "
231 <<
", last post step status: "
235 <<
", current trackid: " << aTrack->
GetTrackID() << std::endl;
236 std::cout <<
"phys pre vol: " << preTouchVolName
254 this->
InitHit(prePoint, aTrack,
true);
276 this->
InitHit(prePoint, aTrack,
true);
283 this->
InitHit(prePoint, aTrack,
true);
285 this->
InitHit(prePoint, aTrack,
false);
291 std::cout <<
"[+] prepoint status=";
293 std::cout <<
"fGeomBoundary";
295 std::cout <<
"fUndefined";
297 std::cout <<
"UNKNOWN!";
298 std::cout << std::endl;
301 std::cout <<
"[-] secondary track, creator process="
306 std::cout <<
"[-] primary track, particle=" << particleName;
308 std::cout << std::endl;
329 std::cout <<
GetName() <<
": hit was not created" << std::endl;
330 std::cout <<
"prestep status: "
332 <<
", poststep status: "
334 <<
", last pre step status: "
336 <<
", last post step status: "
339 <<
", current trackid: " << aTrack->
GetTrackID() << std::endl;
340 std::cout <<
"phys pre vol: " << preTouchVolName
350 std::cout <<
GetName() <<
": hits do not belong to the same track" << std::endl;
352 <<
", current trackid: " << aTrack->
GetTrackID()
373 std::cout <<
"[_] m_EdepSum=" <<
m_EdepSum <<
", m_EionSum=" <<
m_EionSum << std::endl;
395 std::cout <<
"[---+] last step in the volume (pre=" << prePointVolName <<
", post=" << postPointVolName <<
")" << std::endl;
422 if (particleName ==
"opticalphoton")
424 else if (particleName ==
"gamma")
485 std::cout <<
"[-+] m_EdepSum=" <<
m_EdepSum <<
", m_EionSum=" <<
m_EionSum << std::endl;
510 bool resetAccumulators)
519 if (resetAccumulators)
531 m_HitContainer = findNode::getClass<PHG4HitContainer>(topNode, hitnodename);
535 std::cout <<
"EICG4dRICHSteppingAction::SetTopNode - unable to find " << hitnodename << std::endl;