|
|
Go to the documentation of this file.
13 #include "G4UImanager.hh"
14 #include "G4TrackingManager.hh"
20 currentTrack_(nullptr),
23 checkTrack_(
p.getUntrackedParameter<
bool>(
"CheckTrack",
false)) {}
49 (aTrack->GetStep()->GetPostStepPoint()->GetPosition()).
y(),
50 (aTrack->GetStep()->GetPostStepPoint()->GetPosition()).
z());
53 uint32_t
id = aTrack->GetTrackID();
55 std::pair<math::XYZVectorD, math::XYZTLorentzVectorD>
p(
pos, mom);
59 <<
"TrackingAction addTkCaloStateInfo " <<
id <<
" of momentum " << mom <<
" at " <<
pos;
64 ((
extractor_(aTrack).getIDonCaloSurface() == aTrack->GetTrackID()) ||
65 (
extractor_(aTrack).getIDfineCalo() == aTrack->GetTrackID()) || (
extractor_(aTrack).isAncestor()));
77 <<
"TrackingAction addTrack " <<
currentTrack_->
trackID() <<
" E(GeV)= " << aTrack->GetKineticEnergy() <<
" "
78 << aTrack->GetDefinition()->GetParticleName() <<
" added= " << withAncestor <<
" at "
79 << aTrack->GetPosition();
82 (aTrack->GetStep()->GetPostStepPoint()->GetPosition()).
y(),
83 (aTrack->GetStep()->GetPostStepPoint()->GetPosition()).
z());
85 <<
true <<
" and " << withAncestor <<
" at " <<
pos;
93 <<
"TrackingAction addTrack " <<
currentTrack_->
trackID() <<
" added with " <<
false <<
" and " <<
false;
const TrackContainer * trackContainer() const
TrackingAction(EventAction *ea, const edm::ParameterSet &ps, CMSSteppingVerbose *)
~TrackingAction() override
void PostUserTrackingAction(const G4Track *aTrack) override
ROOT::Math::LorentzVector< ROOT::Math::PxPyPzE4D< double > > XYZTLorentzVectorD
Lorentz vector with cylindrical internal representation using pseudorapidity.
void prepareForNewPrimary()
TrackInformationExtractor extractor_
void checkAtEnd(const G4Track *)
TrackWithHistory * currentTrack_
SimActivityRegistry::EndOfTrackSignal m_endOfTrackSignal
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > XYZVectorD
spatial vector with cartesian internal representation
EventAction * eventAction_
void TrackStarted(const G4Track *, bool isKilled)
SimActivityRegistry::BeginOfTrackSignal m_beginOfTrackSignal
unsigned int trackID() const
void TrackEnded(const G4Track *) const
void addTkCaloStateInfo(uint32_t t, const std::pair< math::XYZVectorD, math::XYZTLorentzVectorD > &p)
Log< level::Info, true > LogVerbatim
CMSSteppingVerbose * steppingVerbose_
void PreUserTrackingAction(const G4Track *aTrack) override
void addTrack(TrackWithHistory *iTrack, bool inHistory, bool withAncestor)