13 #include "G4UImanager.hh" 14 #include "G4TrackingManager.hh" 20 : eventAction_(e),currentTrack_(
nullptr),steppingVerbose_(sv),g4Track_(
nullptr),
21 checkTrack_(p.getUntrackedParameter<bool>(
"CheckTrack",
false))
51 (aTrack->GetStep()->GetPostStepPoint()->GetPosition()).
y(),
52 (aTrack->GetStep()->GetPostStepPoint()->GetPosition()).
z());
55 uint32_t
id = aTrack->GetTrackID();
57 std::pair<math::XYZVectorD,math::XYZTLorentzVectorD>
p(
pos,mom);
60 LogDebug(
"SimTrackManager") <<
"TrackingAction addTkCaloStateInfo " 61 <<
id <<
" of momentum " << mom <<
" at " <<
pos;
66 ((
extractor_(aTrack).getIDonCaloSurface() == aTrack->GetTrackID())
84 (aTrack->GetStep()->GetPostStepPoint()->GetPosition()).
y(),
85 (aTrack->GetStep()->GetPostStepPoint()->GetPosition()).
z());
86 LogDebug(
"SimTrackManager") <<
"TrackingAction addTrack " 88 <<
" added with " <<
true <<
" and " << withAncestor
96 LogDebug(
"SimTrackManager") <<
"TrackingAction addTrack " 98 <<
false <<
" and " <<
false;
virtual ~TrackingAction()
ROOT::Math::LorentzVector< ROOT::Math::PxPyPzE4D< double > > XYZTLorentzVectorD
Lorentz vector with cylindrical internal representation using pseudorapidity.
virtual void PreUserTrackingAction(const G4Track *aTrack)
TrackInformationExtractor extractor_
CMSSteppingVerbose * steppingVerbose_
TrackWithHistory * currentTrack_
void TrackEnded(const G4Track *) const
void prepareForNewPrimary()
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > XYZVectorD
spatial vector with cartesian internal representation
EventAction * eventAction_
unsigned int trackID() const
TrackingAction(EventAction *ea, const edm::ParameterSet &ps, CMSSteppingVerbose *)
void checkAtEnd(const G4Track *)
SimActivityRegistry::EndOfTrackSignal m_endOfTrackSignal
const TrackContainer * trackContainer() const
virtual void PostUserTrackingAction(const G4Track *aTrack)
et
define resolution functions of each parameter
void addTkCaloStateInfo(uint32_t t, const std::pair< math::XYZVectorD, math::XYZTLorentzVectorD > &p)
void TrackStarted(const G4Track *, bool isKilled)
void addTrack(TrackWithHistory *iTrack, bool inHistory, bool withAncestor)
SimActivityRegistry::BeginOfTrackSignal m_beginOfTrackSignal