#include <TrackingAction.h>
Definition at line 16 of file TrackingAction.h.
◆ TrackingAction()
◆ ~TrackingAction()
TrackingAction::~TrackingAction |
( |
| ) |
|
|
override |
◆ currentTrackWithHistory()
◆ geant4Track()
const G4Track* TrackingAction::geant4Track |
( |
| ) |
const |
|
inline |
◆ getTrackManager()
G4TrackingManager* TrackingAction::getTrackManager |
( |
| ) |
|
|
inline |
◆ PostUserTrackingAction()
void TrackingAction::PostUserTrackingAction |
( |
const G4Track * |
aTrack | ) |
|
|
override |
Definition at line 68 of file TrackingAction.cc.
70 uint32_t
id = aTrack->GetTrackID();
72 aTrack->GetStep()->GetPostStepPoint()->GetPosition().y(),
73 aTrack->GetStep()->GetPostStepPoint()->GetPosition().z());
75 std::pair<math::XYZVectorD, math::XYZTLorentzVectorD>
p(
pos, mom);
79 <<
" aTrack->GetTrackID()=" << aTrack->GetTrackID()
81 <<
pos.x() <<
"," <<
pos.y() <<
"," <<
pos.z() <<
")";
95 <<
" Track " << aTrack->GetTrackID() <<
" crossed boundary; pos=("
118 <<
"TrackingAction addTkCaloStateInfo " <<
id <<
" of momentum " << mom <<
" at " <<
pos;
123 ((
extractor_(aTrack).getIDonCaloSurface() == aTrack->GetTrackID()) || (
extractor_(aTrack).isAncestor()));
135 <<
"TrackingAction addTrack " <<
currentTrack_->
trackID() <<
" E(GeV)= " << aTrack->GetKineticEnergy() <<
" "
136 << aTrack->GetDefinition()->GetParticleName() <<
" added= " << withAncestor <<
" at "
137 << aTrack->GetPosition();
139 <<
true <<
" and " << withAncestor <<
" at " <<
pos;
147 <<
"TrackingAction addTrack " <<
currentTrack_->
trackID() <<
" added with " <<
false <<
" and " <<
false;
References EventAction::addTkCaloStateInfo(), EventAction::addTrack(), TrackWithHistory::checkAtEnd(), checkTrack_, TrackInformation::crossedBoundary(), currentTrack_, doFineCalo_, EgHLTOffHistBins_cfi::et, eventAction_, extractor_, TrackInformation::getMomentumAtBoundary(), TrackInformation::getPositionAtBoundary(), m_endOfTrackSignal, AlCaHLTBitMon_ParallelJobs::p, TrackWithHistory::save(), saveCaloBoundaryInformation_, TrackWithHistory::saved(), TrackWithHistory::setCrossedBoundaryPosMom(), steppingVerbose_, EventAction::trackContainer(), CMSSteppingVerbose::TrackEnded(), and TrackWithHistory::trackID().
Referenced by RunManagerMTWorker::abortEvent().
◆ PreUserTrackingAction()
void TrackingAction::PreUserTrackingAction |
( |
const G4Track * |
aTrack | ) |
|
|
override |
Definition at line 31 of file TrackingAction.cc.
48 edm::LogVerbatim(
"DoFineCalo") <<
"PreUserTrackingAction: Start processing track " << aTrack->GetTrackID()
49 <<
" pdgid=" << aTrack->GetDefinition()->GetPDGEncoding()
50 <<
" ekin[GeV]=" << aTrack->GetKineticEnergy() /
CLHEP::GeV <<
" vertex[cm]=("
51 << aTrack->GetVertexPosition().x() / CLHEP::cm <<
","
52 << aTrack->GetVertexPosition().y() / CLHEP::cm <<
","
53 << aTrack->GetVertexPosition().z() / CLHEP::cm <<
")"
54 <<
" parentid=" << aTrack->GetParentID();
References currentTrack_, doFineCalo_, eventAction_, g4Track_, GeV, TrackInformation::isPrimary(), m_beginOfTrackSignal, EventAction::prepareForNewPrimary(), TrackInformation::putInHistory(), TrackWithHistory::save(), steppingVerbose_, and CMSSteppingVerbose::TrackStarted().
◆ checkTrack_
bool TrackingAction::checkTrack_ |
|
private |
◆ currentTrack_
◆ doFineCalo_
bool TrackingAction::doFineCalo_ |
|
private |
◆ eMinFine_
double TrackingAction::eMinFine_ |
|
private |
◆ eventAction_
◆ extractor_
◆ g4Track_
const G4Track* TrackingAction::g4Track_ |
|
private |
◆ m_beginOfTrackSignal
◆ m_endOfTrackSignal
◆ saveCaloBoundaryInformation_
bool TrackingAction::saveCaloBoundaryInformation_ |
|
private |
◆ steppingVerbose_
void checkAtEnd(const G4Track *)
void setCrossedBoundaryPosMom(int id, const math::XYZTLorentzVectorF position, const math::XYZTLorentzVectorF momentum)
unsigned int trackID() const