|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef INDETTRACKPERFMON_TRACKANALYSISCOLLECTIONS_H
6 #define INDETTRACKPERFMON_TRACKANALYSISCOLLECTIONS_H
19 #include "GaudiKernel/ISvcLocator.h"
20 #include "GaudiKernel/Service.h"
40 #include <unordered_map>
91 const std::vector< const xAOD::TruthParticle* >&
vec,
95 const std::vector< const xAOD::TrackParticle* >&
vec,
100 const std::vector< const xAOD::TruthParticle* >&
vec,
104 const std::vector< const xAOD::TrackParticle* >&
vec,
109 const std::vector< const xAOD::TruthParticle* >&
vec,
113 const std::vector< const xAOD::TrackParticle* >&
vec,
117 const std::vector< const xAOD::TrackParticle* >&
vec,
132 const std::vector< const xAOD::TruthVertex* >&
vec,
136 const std::vector< const xAOD::Vertex* >&
vec,
141 const std::vector< const xAOD::TruthVertex* >&
vec,
145 const std::vector< const xAOD::Vertex* >&
vec,
150 const std::vector< const xAOD::TruthVertex* >&
vec,
154 const std::vector< const xAOD::Vertex* >&
vec,
158 const std::vector< const xAOD::Vertex* >&
vec,
267 bool updateChainRois(
const std::string& chainRoi,
const std::string& roiStr );
318 #endif // > !INDETTRACKPERFMON_TRACKANALYSISCOLLECTIONS_H
Property holding a SG store/key/clid from which a ReadHandle is made.
std::string printInfo(Stage stage=FULL, bool printVertex=true) const
print information about tracks in the collection(s)
StatusCode fillTrigTrackVec(const std::vector< const xAOD::TrackParticle * > &vec, Stage stage=FULL)
Trigger tracks.
StatusCode fillOfflVertexContainer(const SG::ReadHandleKey< xAOD::VertexContainer > &handleKey)
Offline vertices.
std::string printVertexInfo(Stage stage=FULL) const
print information about vertices in the collection(s)
std::unique_ptr< ITrackMatchingLookup > m_matches
Lookup table for test-reference matching.
StatusCode fillTruthVertexContainer(const SG::ReadHandleKey< xAOD::TruthVertexContainer > &truthVertexHandleKey)
fill FULL vertex collections and vectors
Counter
Enum for counting objects at various stages.
std::vector< const xAOD::TruthVertex * > m_nullTruthVertVec
const xAOD::TruthVertexContainer * testTruthVertexContainer()
get full TEST vertex containers
bool updateChainRois(const std::string &chainRoi, const std::string &roiStr)
update chainRois map
std::vector< std::vector< const xAOD::TrackParticle * > > m_offlTrackVec
std::vector< std::vector< const xAOD::TrackParticle * > > m_trigTrackVec
std::vector< const xAOD::TrackParticle * > m_nullTrackVec
null vectors
std::vector< std::vector< const xAOD::Vertex * > > m_trigVertexVec
const xAOD::VertexContainer * refRecoVertexContainer()
REFERENCE = Reco.
const xAOD::TruthVertexContainer * refTruthVertexContainer()
get full REFERENCE vertex containers
std::unordered_map< std::string, std::string > mapChainRoi_t
map of chainRoiNames for caching
const xAOD::TrackParticleContainer * m_offlTrackContainer
StatusCode fillRefTrackVec(const std::vector< const xAOD::TrackParticle * > &vec, Stage stage=FULL)
REFERENCE = tracks.
const xAOD::TruthParticleContainer * truthPartContainer()
get truth/offline/trigger track containers (TEST or REFERENCE)
std::vector< size_t > testVertexCounts()
get counts vectors for TEST/REFERENCE vertex vectors at all stages
const xAOD::EventInfo * eventInfo()
get event info
StatusCode fillTruthVertexVec(const std::vector< const xAOD::TruthVertex * > &vec, Stage stage=FULL)
fill truth/offline/trigger vertex vector (TEST or REFERENCE)
const std::vector< const xAOD::TruthVertex * > & refTruthVertexVec(Stage stage=FULL)
get REFERENCE vertex vectors
TrackAnalysisCollections(const std::string &anaTag)
Constructor.
std::vector< size_t > vec
std::vector< const xAOD::TruthParticle * > m_nullTruthVec
const std::vector< const xAOD::TrackParticle * > & trigTrackVec(Stage stage=FULL)
const xAOD::VertexContainer * m_trigVertexContainer
const xAOD::TruthVertexContainer * m_truthVertexContainer
Full vertex collections.
const xAOD::TruthParticleContainer * testTruthContainer()
get full TEST track containers
const xAOD::VertexContainer * testRecoVertexContainer()
TEST = Reco.
StatusCode fillTrigVertexVec(const std::vector< const xAOD::Vertex * > &vec, Stage stage=FULL)
Trigger tracks.
StatusCode fillOfflTrackVec(const std::vector< const xAOD::TrackParticle * > &vec, Stage stage=FULL)
Offline tracks.
StatusCode fillTrigVertexContainer(const SG::ReadHandleKey< xAOD::VertexContainer > &handleKey)
Trigger vertices.
std::string printMatchInfo()
print track matching information
StatusCode fillRefTruthVertexVec(const std::vector< const xAOD::TruthVertex * > &vec, Stage stage=FULL)
fill REFERENCE vertex vectors
const std::vector< const xAOD::TrackParticle * > & testTrackVec(Stage stage=FULL)
TEST = Track.
StatusCode fillTruthPartVec(const std::vector< const xAOD::TruthParticle * > &vec, Stage stage=FULL)
fill truth/offline/trigger track vector (TEST or REFERENCE)
SmartIF< ITrackAnalysisDefinitionSvc > m_trkAnaDefSvc
const xAOD::TrackParticleContainer * m_trigTrackContainer
void clear(Stage stage=FULL)
Clear vectors.
const xAOD::TruthEventContainer * m_truthEventContainer
StatusCode fillTruthPartContainer(const SG::ReadHandleKey< xAOD::TruthParticleContainer > &truthPartHandleKey)
fill FULL track collections and vectors
::StatusCode StatusCode
StatusCode definition for legacy code.
const xAOD::TrackParticleContainer * offlTrackContainer()
const std::vector< const xAOD::Vertex * > & testRecoVertexVec(Stage stage=FULL)
TEST = Reco.
const xAOD::TruthPileupEventContainer * truthPileupEventContainer()
std::vector< std::vector< const xAOD::TruthVertex * > > m_truthVertexVec
vectors of reco/truth vertices at different stages of the selection/workflow
const xAOD::VertexContainer * offlVertexContainer()
const xAOD::TruthVertexContainer * truthVertexContainer()
get truth/offline/trigger vertex containers (TEST or REFERENCE)
ITrackMatchingLookup & matches()
get track matching information
std::vector< const xAOD::Vertex * > m_nullRecoVertVec
StatusCode fillRefRecoVertexVec(const std::vector< const xAOD::Vertex * > &vec, Stage stage=FULL)
REFERENCE = reco.
Class to provide easy MsgStream access and capabilities.
std::vector< size_t > testTrackCounts()
get counts vectors for TEST/REFERENCE track vectors at all stages
const xAOD::TruthEventContainer * truthEventContainer()
Interace for TrackMatchingLookup objects (templated)
const std::vector< const xAOD::TrackParticle * > & offlTrackVec(Stage stage=FULL)
const std::vector< const xAOD::TruthVertex * > & truthVertexVec(Stage stage=FULL)
get truth/offline/trigger vertex vector (TEST or REFERENCE)
const std::vector< const xAOD::TruthVertex * > & testTruthVertexVec(Stage stage=FULL)
get TEST vertex vectors
StatusCode fillEventInfo(const SG::ReadHandleKey< xAOD::EventInfo > &eventInfoHandleKey, const SG::ReadHandleKey< xAOD::TruthEventContainer > &truthEventHandleKey, const SG::ReadHandleKey< xAOD::TruthPileupEventContainer > &truthPUEventHandleKey)
— Setter methods —
const std::vector< const xAOD::Vertex * > & trigVertexVec(Stage stage=FULL)
Stage
Enum for selection stages.
const xAOD::TruthParticleContainer * refTruthContainer()
get full REFERENCE track containers
~TrackAnalysisCollections()=default
Destructor.
const std::vector< const xAOD::Vertex * > & offlVertexVec(Stage stage=FULL)
const xAOD::TrackParticleContainer * testTrackContainer()
TEST = Track.
std::vector< std::vector< const xAOD::Vertex * > > m_offlVertexVec
const xAOD::TruthParticleContainer * m_truthPartContainer
Full track collections.
Class describing the basic event information.
std::vector< size_t > refTrackCounts()
REFERENCE.
StatusCode fillTestTruthVertexVec(const std::vector< const xAOD::TruthVertex * > &vec, Stage stage=FULL)
fill TEST vertex vectors
StatusCode initialize()
initialize
const std::vector< const xAOD::TrackParticle * > & refTrackVec(Stage stage=FULL)
TEST = Track.
std::vector< size_t > refVertexCounts()
REFERENCE.
StatusCode fillTestRecoVertexVec(const std::vector< const xAOD::Vertex * > &vec, Stage stage=FULL)
TEST = reco.
const std::vector< const xAOD::TruthParticle * > & truthPartVec(Stage stage=FULL)
get truth/offline/trigger track vector (TEST or REFERENCE)
const std::vector< const xAOD::TruthParticle * > & testTruthVec(Stage stage=FULL)
get TEST track vectors
bool empty(Stage stage=FULL)
— Utility methods —
const xAOD::TruthPileupEventContainer * m_truthPUEventContainer
std::string m_anaTag
TrackAnalysis properties.
StatusCode fillTrigTrackContainer(const SG::ReadHandleKey< xAOD::TrackParticleContainer > &handleKey)
Trigger track particles.
Handle class for reading from StoreGate.
void copyFS()
copy content of FS vectors to InRoI vectors
const std::vector< const xAOD::Vertex * > & refRecoVertexVec(Stage stage=FULL)
REFERENCE = Reco.
TrackAnalysisCollections & operator=(const TrackAnalysisCollections &)=delete
= operator
const xAOD::TrackParticleContainer * refTrackContainer()
REFERENCE = Track.
const std::string & anaTag()
— Getter methods —
StatusCode fillTestTrackVec(const std::vector< const xAOD::TrackParticle * > &vec, Stage stage=FULL)
TEST = tracks.
mapChainRoi_t m_chainRois
const xAOD::TrackParticleContainer * trigTrackContainer()
std::vector< std::vector< const xAOD::TruthParticle * > > m_truthPartVec
vectors of track/truth particles at different stages of the selection/workflow
const xAOD::VertexContainer * trigVertexContainer()
const xAOD::VertexContainer * m_offlVertexContainer
StatusCode fillOfflVertexVec(const std::vector< const xAOD::Vertex * > &vec, Stage stage=FULL)
Offline tracks.
const xAOD::EventInfo * m_eventInfo
— Collections class variables — EventInfo, TruthEvent, and TruthPUEvent
const std::vector< const xAOD::TruthParticle * > & refTruthVec(Stage stage=FULL)
get REFERENCE track vectors
StatusCode fillRefTruthVec(const std::vector< const xAOD::TruthParticle * > &vec, Stage stage=FULL)
fill REFERENCE track vectors
StatusCode fillOfflTrackContainer(const SG::ReadHandleKey< xAOD::TrackParticleContainer > &handleKey)
Offline track particles.
StatusCode fillTestTruthVec(const std::vector< const xAOD::TruthParticle * > &vec, Stage stage=FULL)
fill TEST track vectors