9 #include "G4VProcess.hh"
27 creatorProcess_(nullptr),
31 if (g4trk !=
nullptr) {
50 LogDebug(
"TrackInformation") <<
" TrackWithHistory : created history for " <<
trackID_ <<
" with mother "
57 math::XYZVectorD vposdir(
gt->GetVertexPosition().x(),
gt->GetVertexPosition().y(),
gt->GetVertexPosition().z());
59 gt->GetVertexMomentumDirection().x(),
gt->GetVertexMomentumDirection().y(),
gt->GetVertexMomentumDirection().z());
64 edm::LogWarning(
"TrackInformation") <<
"TrackWithHistory vertex position check failed"
69 if (dirDiff.Mag2() > eps2 &&
momentum_.Unit().R() > eps2) {
70 edm::LogWarning(
"TrackInformation") <<
"TrackWithHistory momentum direction check failed"
71 <<
"\nAt construction: " <<
momentum_.Unit()
72 <<
"\nAt end: " << vmomdir;
80 void* vgprimary =
gt->GetDynamicParticle()->GetPrimaryParticle();
81 if (vgprimary ==
nullptr)
84 G4PrimaryParticle* gprimary = (G4PrimaryParticle*)vgprimary;
86 return ext(gprimary).id();