#include <SimG4Core/Notification/interface/SimTrackManager.h>
Classes | |
class | StrictWeakOrdering |
Public Types | |
typedef std::map< int, VertexPositionVector > | VertexMap |
typedef std::pair< int, math::XYZVectorD > | VertexPosition |
typedef std::vector< std::pair< int, math::XYZVectorD > > | VertexPositionVector |
Public Member Functions | |
void | addTrack (TrackWithHistory *iTrack, const G4Track *track, bool inHistory, bool withAncestor) |
void | cleanTracksWithHistory () |
void | deleteTracks () |
TrackWithHistory * | getTrackByID (int trackID, bool strict=false) const |
int | giveMotherNeeded (int i) const |
const SimTrackManager & | operator= (const SimTrackManager &)=delete |
void | reset () |
void | setLHCTransportLink (const edm::LHCTransportLinkContainer *thisLHCTlink) |
SimTrackManager (TmpSimEvent *) | |
SimTrackManager (const SimTrackManager &)=delete | |
void | storeTracks () |
const std::vector< TrackWithHistory * > * | trackContainer () const |
bool | trackExists (int i) const |
~SimTrackManager () | |
Private Member Functions | |
void | cleanVertexMap () |
void | fillMotherList () |
int | getOrCreateVertex (TrackWithHistory *, int) |
int | idSavedTrack (int) const |
void | reallyStoreTracks () |
void | ReportException (unsigned int id) const |
void | resetGenID () |
void | saveTrackAndItsBranch (TrackWithHistory *) |
this saves a track and all its parents looping over the non ordered vector More... | |
Private Attributes | |
std::vector< std::pair< int, int > > | ancestorList |
std::vector< std::pair< int, int > > | idsave |
unsigned int | lastHist {0} |
unsigned int | lastTrack {0} |
std::vector< std::pair< int, math::XYZVectorD > > | m_endPoints |
int | m_nVertices {0} |
TmpSimEvent * | m_simEvent |
std::vector< TrackWithHistory * > | m_trackContainer |
VertexMap | m_vertexMap |
const edm::LHCTransportLinkContainer * | theLHCTlink {nullptr} |
Description: Holds tracking information used by the sensitive detectors Created: Fri Nov 25 17:36:41 EST 2005
Definition at line 28 of file SimTrackManager.h.
typedef std::map<int, VertexPositionVector> SimTrackManager::VertexMap |
Definition at line 37 of file SimTrackManager.h.
typedef std::pair<int, math::XYZVectorD> SimTrackManager::VertexPosition |
Definition at line 35 of file SimTrackManager.h.
typedef std::vector<std::pair<int, math::XYZVectorD> > SimTrackManager::VertexPositionVector |
Definition at line 36 of file SimTrackManager.h.
|
explicit |
Definition at line 37 of file SimTrackManager.cc.
References ancestorList, idsave, m_endPoints, and m_trackContainer.
SimTrackManager::~SimTrackManager | ( | ) |
|
delete |
void SimTrackManager::addTrack | ( | TrackWithHistory * | iTrack, |
const G4Track * | track, | ||
bool | inHistory, | ||
bool | withAncestor | ||
) |
Definition at line 71 of file SimTrackManager.cc.
References ancestorList, idsave, m_endPoints, m_trackContainer, AlCaHLTBitMon_ParallelJobs::p, TrackWithHistory::parentID(), HLT_2023v12_cff::track, TrackWithHistory::trackID(), and findQualityFiles::v.
Referenced by TrackingAction::PostUserTrackingAction().
void SimTrackManager::cleanTracksWithHistory | ( | ) |
Definition at line 283 of file SimTrackManager.cc.
References fillMotherList(), idsave, lastTrack, LogDebug, m_trackContainer, EgammaValidation_cff::num, saveTrackAndItsBranch(), submitPVValidationJobs::t, and geometryCSVtoXML::xx.
Referenced by TrackingAction::PreUserTrackingAction(), and storeTracks().
|
private |
Definition at line 65 of file SimTrackManager.cc.
References m_nVertices, and m_vertexMap.
Referenced by reset().
void SimTrackManager::deleteTracks | ( | ) |
Definition at line 55 of file SimTrackManager.cc.
References m_endPoints, and m_trackContainer.
Referenced by reset().
|
private |
Definition at line 257 of file SimTrackManager.cc.
References ancestorList, dqmdumpme::first, mps_fire::i, idsave, idSavedTrack(), lastHist, LogDebug, and dqmiodumpmetadata::n.
Referenced by cleanTracksWithHistory().
|
private |
Definition at line 172 of file SimTrackManager.cc.
References TmpSimEvent::add(), l1ctLayer2EG_cff::id, m_nVertices, m_simEvent, m_trackContainer, m_vertexMap, class-composition::parent, TrackWithHistory::processType(), TrackWithHistory::time(), TrackWithHistory::vertexPosition(), and geometryCSVtoXML::xx.
Referenced by reallyStoreTracks().
|
inline |
Definition at line 73 of file SimTrackManager.h.
References m_trackContainer, ReportException(), and HLT_2023v12_cff::track.
Referenced by CaloSD::findBoundaryCrossingParent(), and EventAction::getTrackByID().
|
inline |
Definition at line 51 of file SimTrackManager.h.
References mps_fire::i, idsave, and AlCaHLTBitMon_ParallelJobs::p.
Referenced by CaloSD::saveHit().
|
private |
Definition at line 198 of file SimTrackManager.cc.
References ancestorList, dqmdumpme::first, l1ctLayer2EG_cff::id, globals_cff::id1, idsave, dqmiolumiharvest::j, dqmiodumpmetadata::n, notFound, and edm::second().
Referenced by fillMotherList().
|
delete |
|
private |
Definition at line 123 of file SimTrackManager.cc.
References TmpSimEvent::add(), TmpSimTrack::copyCrossedBoundaryVars(), dqmdumpme::first, getOrCreateVertex(), mps_fire::i, m_endPoints, m_simEvent, m_trackContainer, and groupFilesInBlocks::nn.
Referenced by storeTracks().
|
private |
Definition at line 374 of file SimTrackManager.cc.
References Exception, and m_trackContainer.
Referenced by getTrackByID().
void SimTrackManager::reset | ( | void | ) |
Definition at line 46 of file SimTrackManager.cc.
References ancestorList, cleanVertexMap(), deleteTracks(), idsave, lastHist, and lastTrack.
Referenced by EventAction::BeginOfEventAction(), EventAction::EndOfEventAction(), and ~SimTrackManager().
|
private |
Definition at line 353 of file SimTrackManager.cc.
References m_trackContainer, theLHCTlink, and geometryCSVtoXML::xx.
Referenced by storeTracks().
|
private |
this saves a track and all its parents looping over the non ordered vector
Definition at line 88 of file SimTrackManager.cc.
References Exception, pfDeepBoostedJetPreprocessParams_cfi::lower_bound, m_trackContainer, class-composition::parent, TrackWithHistory::parentID(), and TrackWithHistory::setToBeSaved().
Referenced by cleanTracksWithHistory().
|
inline |
Definition at line 87 of file SimTrackManager.h.
References theLHCTlink.
void SimTrackManager::storeTracks | ( | ) |
Definition at line 105 of file SimTrackManager.cc.
References ancestorList, cleanTracksWithHistory(), idsave, m_trackContainer, reallyStoreTracks(), resetGenID(), and edm::swap().
Referenced by EventAction::EndOfEventAction().
|
inline |
Definition at line 42 of file SimTrackManager.h.
References m_trackContainer.
Referenced by EventAction::trackContainer(), and CaloSD::update().
|
inline |
Definition at line 62 of file SimTrackManager.h.
References RemoveAddSevLevel::flag, mps_fire::i, and m_trackContainer.
Referenced by CaloSD::saveHit().
|
private |
Definition at line 116 of file SimTrackManager.h.
Referenced by addTrack(), fillMotherList(), idSavedTrack(), reset(), SimTrackManager(), and storeTracks().
|
private |
Definition at line 115 of file SimTrackManager.h.
Referenced by addTrack(), cleanTracksWithHistory(), fillMotherList(), giveMotherNeeded(), idSavedTrack(), reset(), SimTrackManager(), and storeTracks().
|
private |
Definition at line 109 of file SimTrackManager.h.
Referenced by fillMotherList(), and reset().
|
private |
Definition at line 108 of file SimTrackManager.h.
Referenced by cleanTracksWithHistory(), and reset().
|
private |
Definition at line 117 of file SimTrackManager.h.
Referenced by addTrack(), deleteTracks(), reallyStoreTracks(), and SimTrackManager().
|
private |
Definition at line 107 of file SimTrackManager.h.
Referenced by cleanVertexMap(), and getOrCreateVertex().
|
private |
Definition at line 111 of file SimTrackManager.h.
Referenced by getOrCreateVertex(), and reallyStoreTracks().
|
private |
Definition at line 118 of file SimTrackManager.h.
Referenced by addTrack(), cleanTracksWithHistory(), deleteTracks(), getOrCreateVertex(), getTrackByID(), reallyStoreTracks(), ReportException(), resetGenID(), saveTrackAndItsBranch(), SimTrackManager(), storeTracks(), trackContainer(), and trackExists().
|
private |
Definition at line 114 of file SimTrackManager.h.
Referenced by cleanVertexMap(), and getOrCreateVertex().
|
private |
Definition at line 112 of file SimTrackManager.h.
Referenced by resetGenID(), and setLHCTransportLink().