#include <SimG4Core/Notification/interface/SimTrackManager.h>
Classes | |
class | StrictWeakOrdering |
Public Types | |
typedef std::pair< int, math::XYZVectorD > | MapVertexPosition |
this map contains association between vertex number and position More... | |
typedef std::vector< std::pair< int, math::XYZVectorD > > | MapVertexPositionVector |
typedef std::map< int, MapVertexPositionVector > | MotherParticleToVertexMap |
typedef MotherParticleToVertexMap | VertexMap |
Public Member Functions | |
void | addTkCaloStateInfo (uint32_t t, const std::pair< math::XYZVectorD, math::XYZTLorentzVectorD > &p) |
void | addTrack (TrackWithHistory *iTrack, bool inHistory, bool withAncestor) |
void | cleanTkCaloStateInfoMap () |
void | cleanTracksWithHistory () |
void | deleteTracks () |
int | giveMotherNeeded (int i) const |
void | reset () |
void | setCollapsePrimaryVertices (bool iSet) |
void | setLHCTransportLink (const edm::LHCTransportLinkContainer *thisLHCTlink) |
SimTrackManager (bool iCollapsePrimaryVertices=false) | |
void | storeTracks (G4SimEvent *simEvent) |
const TrackContainer * | trackContainer () const |
bool | trackExists (unsigned int i) const |
virtual | ~SimTrackManager () |
Private Member Functions | |
void | cleanVertexMap () |
void | fillMotherList () |
int | getOrCreateVertex (TrackWithHistory *, int, G4SimEvent *simEvent) |
int | idSavedTrack (int) const |
const SimTrackManager & | operator= (const SimTrackManager &)=delete |
void | reallyStoreTracks (G4SimEvent *simEvent) |
void | resetGenID () |
void | saveTrackAndItsBranch (TrackWithHistory *) |
this saves a track and all its parents looping over the non ordered vector More... | |
SimTrackManager (const SimTrackManager &)=delete | |
Private Attributes | |
std::vector< std::pair< int, int > > | ancestorList |
std::vector< std::pair< int, int > > | idsave |
unsigned int | lastHist |
unsigned int | lastTrack |
bool | m_collapsePrimaryVertices |
int | m_nVertices |
bool | m_SaveSimTracks |
TrackContainer * | m_trksForThisEvent |
MotherParticleToVertexMap | m_vertexMap |
std::map< uint32_t, std::pair< math::XYZVectorD, math::XYZTLorentzVectorD > > | mapTkCaloStateInfo |
const edm::LHCTransportLinkContainer * | theLHCTlink |
Description: Holds tracking information used by the sensitive detectors
Usage: <usage>
Definition at line 35 of file SimTrackManager.h.
typedef std::pair<int, math::XYZVectorD> SimTrackManager::MapVertexPosition |
this map contains association between vertex number and position
Definition at line 43 of file SimTrackManager.h.
typedef std::vector<std::pair<int, math::XYZVectorD> > SimTrackManager::MapVertexPositionVector |
Definition at line 44 of file SimTrackManager.h.
typedef std::map<int, MapVertexPositionVector> SimTrackManager::MotherParticleToVertexMap |
Definition at line 45 of file SimTrackManager.h.
Definition at line 46 of file SimTrackManager.h.
SimTrackManager::SimTrackManager | ( | bool | iCollapsePrimaryVertices = false | ) |
Definition at line 28 of file SimTrackManager.cc.
Referenced by setLHCTransportLink().
|
virtual |
Definition at line 36 of file SimTrackManager.cc.
References deleteTracks(), and m_trksForThisEvent.
|
privatedelete |
|
inline |
Definition at line 75 of file SimTrackManager.h.
References mapTkCaloStateInfo.
Referenced by EventAction::addTkCaloStateInfo().
|
inline |
Definition at line 63 of file SimTrackManager.h.
References ancestorList, idsave, m_trksForThisEvent, TrackWithHistory::parentID(), and TrackWithHistory::trackID().
Referenced by EventAction::addTrack().
void SimTrackManager::cleanTkCaloStateInfoMap | ( | ) |
Definition at line 195 of file SimTrackManager.cc.
References mapTkCaloStateInfo, and edm::swap().
Referenced by EventAction::EndOfEventAction(), reset(), and trackContainer().
void SimTrackManager::cleanTracksWithHistory | ( | ) |
Definition at line 291 of file SimTrackManager.cc.
References fillMotherList(), idsave, lastTrack, LogDebug, m_trksForThisEvent, pileupDistInMC::num, TrackWithHistory::saved(), saveTrackAndItsBranch(), edm::second(), lumiQTWidget::t, and TrackWithHistory::trackID().
Referenced by EventAction::prepareForNewPrimary(), storeTracks(), and trackContainer().
|
private |
Definition at line 189 of file SimTrackManager.cc.
References m_nVertices, and m_vertexMap.
Referenced by reset(), and setLHCTransportLink().
void SimTrackManager::deleteTracks | ( | ) |
Definition at line 62 of file SimTrackManager.cc.
References mps_fire::i, and m_trksForThisEvent.
Referenced by EventAction::EndOfEventAction(), trackContainer(), and ~SimTrackManager().
|
private |
Definition at line 259 of file SimTrackManager.cc.
References ancestorList, plotBeamSpotDB::first, idsave, idSavedTrack(), lastHist, LogDebug, and gen::n.
Referenced by cleanTracksWithHistory(), and setLHCTransportLink().
|
private |
Definition at line 151 of file SimTrackManager.cc.
References G4SimEvent::add(), trackerTree::check(), TrackWithHistory::creatorProcess(), plotBeamSpotDB::first, TrackWithHistory::globalTime(), gen::k, m_nVertices, m_vertexMap, class-composition::parent, mathSSE::sqrt(), and TrackWithHistory::vertexPosition().
Referenced by reallyStoreTracks(), and setLHCTransportLink().
|
inline |
Definition at line 84 of file SimTrackManager.h.
References mps_fire::i, idsave, and edm::second().
Referenced by CaloSD::saveHit().
|
private |
Definition at line 200 of file SimTrackManager.cc.
References ancestorList, plotBeamSpotDB::first, triggerObjects_cff::id, globals_cff::id1, idsave, gen::n, notFound, and edm::second().
Referenced by fillMotherList(), and setLHCTransportLink().
|
privatedelete |
Referenced by setLHCTransportLink().
|
private |
Definition at line 109 of file SimTrackManager.cc.
References G4SimEvent::add(), TrackWithHistory::genParticleID(), getOrCreateVertex(), LogDebug, m_trksForThisEvent, mapTkCaloStateInfo, TrackWithHistory::momentum(), TrackWithHistory::parentID(), TrackWithHistory::particleID(), TrackWithHistory::totalEnergy(), and TrackWithHistory::trackID().
Referenced by setLHCTransportLink(), and storeTracks().
void SimTrackManager::reset | ( | void | ) |
Definition at line 44 of file SimTrackManager.cc.
References ancestorList, cleanTkCaloStateInfoMap(), cleanVertexMap(), mps_fire::i, idsave, lastHist, lastTrack, m_trksForThisEvent, and edm::swap().
Referenced by EventAction::BeginOfEventAction(), and trackContainer().
|
private |
Definition at line 366 of file SimTrackManager.cc.
References TrackWithHistory::genParticleID(), m_trksForThisEvent, TrackWithHistory::setGenParticleID(), and theLHCTlink.
Referenced by setLHCTransportLink(), and storeTracks().
|
private |
this saves a track and all its parents looping over the non ordered vector
Definition at line 71 of file SimTrackManager.cc.
References Exception, m_trksForThisEvent, class-composition::parent, TrackWithHistory::parentID(), and TrackWithHistory::save().
Referenced by cleanTracksWithHistory(), and setLHCTransportLink().
|
inline |
Definition at line 83 of file SimTrackManager.h.
References m_collapsePrimaryVertices.
Referenced by EventAction::EventAction().
|
inline |
Definition at line 104 of file SimTrackManager.h.
References cleanVertexMap(), fillMotherList(), getOrCreateVertex(), idSavedTrack(), operator=(), reallyStoreTracks(), resetGenID(), saveTrackAndItsBranch(), SimTrackManager(), and theLHCTlink.
void SimTrackManager::storeTracks | ( | G4SimEvent * | simEvent | ) |
Definition at line 91 of file SimTrackManager.cc.
References ancestorList, cleanTracksWithHistory(), idsave, m_trksForThisEvent, reallyStoreTracks(), resetGenID(), and edm::swap().
Referenced by EventAction::EndOfEventAction(), and trackContainer().
|
inline |
Definition at line 52 of file SimTrackManager.h.
References cleanTkCaloStateInfoMap(), cleanTracksWithHistory(), deleteTracks(), m_trksForThisEvent, reset(), and storeTracks().
Referenced by EventAction::trackContainer(), and CaloSD::update().
|
inline |
Definition at line 94 of file SimTrackManager.h.
References RemoveAddSevLevel::flag, mps_fire::i, and m_trksForThisEvent.
Referenced by CaloSD::saveHit().
|
private |
Definition at line 130 of file SimTrackManager.h.
Referenced by addTrack(), fillMotherList(), idSavedTrack(), reset(), and storeTracks().
|
private |
Definition at line 128 of file SimTrackManager.h.
Referenced by addTrack(), cleanTracksWithHistory(), fillMotherList(), giveMotherNeeded(), idSavedTrack(), reset(), and storeTracks().
|
private |
Definition at line 133 of file SimTrackManager.h.
Referenced by fillMotherList(), and reset().
|
private |
Definition at line 132 of file SimTrackManager.h.
Referenced by cleanTracksWithHistory(), and reset().
|
private |
Definition at line 126 of file SimTrackManager.h.
Referenced by setCollapsePrimaryVertices().
|
private |
Definition at line 125 of file SimTrackManager.h.
Referenced by cleanVertexMap(), and getOrCreateVertex().
|
private |
Definition at line 123 of file SimTrackManager.h.
|
private |
Definition at line 122 of file SimTrackManager.h.
Referenced by addTrack(), cleanTracksWithHistory(), deleteTracks(), reallyStoreTracks(), reset(), resetGenID(), saveTrackAndItsBranch(), storeTracks(), trackContainer(), trackExists(), and ~SimTrackManager().
|
private |
Definition at line 124 of file SimTrackManager.h.
Referenced by cleanVertexMap(), and getOrCreateVertex().
|
private |
Definition at line 127 of file SimTrackManager.h.
Referenced by addTkCaloStateInfo(), cleanTkCaloStateInfoMap(), and reallyStoreTracks().
|
private |
Definition at line 135 of file SimTrackManager.h.
Referenced by resetGenID(), and setLHCTransportLink().