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