9 #include "G4VProcess.hh" 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());
62 double eps2 = epsilon *
epsilon;
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();
const G4VProcess * creatorProcess_
G4ThreadLocal G4Allocator< TrackWithHistory > * fpTrackWithHistoryAllocator
int extractGenID(const G4Track *gt) const
math::XYZVectorD vertexPosition_
math::XYZVectorD momentum_
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > XYZVectorD
spatial vector with cartesian internal representation
void checkAtEnd(const G4Track *)
static int particleID(const G4Track *)
TrackWithHistory(const G4Track *g4track)