![]() |
ATLAS Offline Software
|
#include <TrackAnalysisCollections.h>
Public Types | |
enum | Stage : size_t { FULL, FS, InRoI, NStages } |
Enum for selection stages. More... | |
Public Member Functions | |
TrackAnalysisCollections (const std::string &anaTag) | |
Constructor. More... | |
~TrackAnalysisCollections ()=default | |
Destructor. More... | |
TrackAnalysisCollections & | operator= (const TrackAnalysisCollections &)=delete |
= operator More... | |
StatusCode | initialize () |
initialize More... | |
StatusCode | fillTruthPartContainer (const SG::ReadHandleKey< xAOD::TruthParticleContainer > &handleKey) |
— Setter methods — More... | |
StatusCode | fillOfflTrackContainer (const SG::ReadHandleKey< xAOD::TrackParticleContainer > &handleKey) |
Offline track particles. More... | |
StatusCode | fillTrigTrackContainer (const SG::ReadHandleKey< xAOD::TrackParticleContainer > &handleKey) |
Trigger track particles. More... | |
StatusCode | fillTestTruthVec (const std::vector< const xAOD::TruthParticle * > &vec, Stage stage=FULL) |
fill TEST vectors More... | |
StatusCode | fillTestTrackVec (const std::vector< const xAOD::TrackParticle * > &vec, Stage stage=FULL) |
TEST = tracks. More... | |
StatusCode | fillRefTruthVec (const std::vector< const xAOD::TruthParticle * > &vec, Stage stage=FULL) |
fill REFERENCE vectors More... | |
StatusCode | fillRefTrackVec (const std::vector< const xAOD::TrackParticle * > &vec, Stage stage=FULL) |
REFERENCE = tracks. More... | |
StatusCode | fillTruthPartVec (const std::vector< const xAOD::TruthParticle * > &vec, Stage stage=FULL) |
get truth/offline/trigger track vector (TEST or REFERENCE) More... | |
StatusCode | fillOfflTrackVec (const std::vector< const xAOD::TrackParticle * > &vec, Stage stage=FULL) |
Offline tracks. More... | |
StatusCode | fillTrigTrackVec (const std::vector< const xAOD::TrackParticle * > &vec, Stage stage=FULL) |
Trigger tracks. More... | |
bool | empty (Stage stage=FULL) |
— Utility methods — More... | |
void | clear (Stage stage=FULL) |
Clear vectors. More... | |
void | copyFS () |
copy content of FS vectors to InRoI vectors More... | |
std::string | printInfo (Stage stage=FULL) const |
print Information about tracks in the collection(s) More... | |
const std::string & | anaTag () |
— Getter methods — More... | |
const xAOD::TruthParticleContainer * | testTruthContainer () |
get full TEST containers More... | |
const xAOD::TrackParticleContainer * | testTrackContainer () |
TEST = Track. More... | |
const xAOD::TruthParticleContainer * | refTruthContainer () |
get full REFERENCE containers More... | |
const xAOD::TrackParticleContainer * | refTrackContainer () |
REFERENCE = Track. More... | |
const xAOD::TruthParticleContainer * | truthPartContainer () |
get truth/offline/trigger track containers (TEST or REFERENCE) More... | |
const xAOD::TrackParticleContainer * | offlTrackContainer () |
const xAOD::TrackParticleContainer * | trigTrackContainer () |
const std::vector< const xAOD::TruthParticle * > & | testTruthVec (Stage stage=FULL) |
get TEST track vectors More... | |
const std::vector< const xAOD::TrackParticle * > & | testTrackVec (Stage stage=FULL) |
TEST = Track. More... | |
const std::vector< const xAOD::TruthParticle * > & | refTruthVec (Stage stage=FULL) |
get REFERENCE track vectors More... | |
const std::vector< const xAOD::TrackParticle * > & | refTrackVec (Stage stage=FULL) |
TEST = Track. More... | |
const std::vector< const xAOD::TruthParticle * > & | truthPartVec (Stage stage=FULL) |
get truth/offline/trigger track vector (TEST or REFERENCE) More... | |
const std::vector< const xAOD::TrackParticle * > & | offlTrackVec (Stage stage=FULL) |
const std::vector< const xAOD::TrackParticle * > & | trigTrackVec (Stage stage=FULL) |
ITrackMatchingLookup & | matches () |
return matching information More... | |
std::string | printMatchInfo () |
print matching information More... | |
bool | updateChainRois (const std::string &chainRoi, const std::string &roiStr) |
update chainRois map More... | |
bool | msgLvl (const MSG::Level lvl) const |
Test the output level. More... | |
MsgStream & | msg () const |
The standard message stream. More... | |
MsgStream & | msg (const MSG::Level lvl) const |
The standard message stream. More... | |
void | setLevel (MSG::Level lvl) |
Change the current logging level. More... | |
Private Types | |
typedef std::unordered_map< std::string, std::string > | mapChainRoi_t |
map of chainRoiNames for caching More... | |
Private Member Functions | |
void | initMessaging () const |
Initialize our message level and MessageSvc. More... | |
Private Attributes | |
std::string | m_anaTag |
TrackAnalysis properties. More... | |
ITrackAnalysisDefinitionSvc * | m_trkAnaDefSvc |
const xAOD::TruthParticleContainer * | m_truthPartContainer {nullptr} |
— Collections class variables — Full collections More... | |
const xAOD::TrackParticleContainer * | m_offlTrackContainer {nullptr} |
const xAOD::TrackParticleContainer * | m_trigTrackContainer {nullptr} |
std::vector< std::vector< const xAOD::TruthParticle * > > | m_truthPartVec {} |
vectors of track/truth particles at different stages of the selection/workflow More... | |
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 More... | |
std::vector< const xAOD::TruthParticle * > | m_nullTruthVec {} |
std::unique_ptr< ITrackMatchingLookup > | m_matches |
Lookup table for test-reference matching. More... | |
mapChainRoi_t | m_chainRois {} |
std::string | m_nm |
Message source name. More... | |
boost::thread_specific_ptr< MsgStream > | m_msg_tls |
MsgStream instance (a std::cout like with print-out levels) More... | |
std::atomic< IMessageSvc * > | m_imsg { nullptr } |
MessageSvc pointer. More... | |
std::atomic< MSG::Level > | m_lvl { MSG::NIL } |
Current logging level. More... | |
std::atomic_flag m_initialized | ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT |
Messaging initialized (initMessaging) More... | |
Definition at line 41 of file TrackAnalysisCollections.h.
|
private |
map of chainRoiNames for caching
Definition at line 191 of file TrackAnalysisCollections.h.
enum IDTPM::TrackAnalysisCollections::Stage : size_t |
Enum for selection stages.
Enumerator | |
---|---|
FULL | |
FS | |
InRoI | |
NStages |
Definition at line 49 of file TrackAnalysisCollections.h.
IDTPM::TrackAnalysisCollections::TrackAnalysisCollections | ( | const std::string & | anaTag | ) |
Constructor.
local includes
Definition at line 19 of file TrackAnalysisCollections.cxx.
|
default |
Destructor.
|
inline |
void IDTPM::TrackAnalysisCollections::copyFS | ( | ) |
copy content of FS vectors to InRoI vectors
copy inRoI collections from FullScan collections
offline copy
truth copy
EF trigger copy
Debug printout
Definition at line 335 of file TrackAnalysisCollections.cxx.
— Utility methods —
check if collection are empty
empty
check if empty disabled for FS trigger track vector (always empty by construction)
Definition at line 293 of file TrackAnalysisCollections.cxx.
StatusCode IDTPM::TrackAnalysisCollections::fillOfflTrackContainer | ( | const SG::ReadHandleKey< xAOD::TrackParticleContainer > & | handleKey | ) |
Offline track particles.
Fill container
Fill FULL vector
Definition at line 92 of file TrackAnalysisCollections.cxx.
StatusCode IDTPM::TrackAnalysisCollections::fillOfflTrackVec | ( | const std::vector< const xAOD::TrackParticle * > & | vec, |
Stage | stage = FULL |
||
) |
StatusCode IDTPM::TrackAnalysisCollections::fillRefTrackVec | ( | const std::vector< const xAOD::TrackParticle * > & | vec, |
Stage | stage = FULL |
||
) |
StatusCode IDTPM::TrackAnalysisCollections::fillRefTruthVec | ( | const std::vector< const xAOD::TruthParticle * > & | vec, |
Stage | stage = FULL |
||
) |
fill REFERENCE vectors
REFERENCE = truth.
Definition at line 197 of file TrackAnalysisCollections.cxx.
StatusCode IDTPM::TrackAnalysisCollections::fillTestTrackVec | ( | const std::vector< const xAOD::TrackParticle * > & | vec, |
Stage | stage = FULL |
||
) |
StatusCode IDTPM::TrackAnalysisCollections::fillTestTruthVec | ( | const std::vector< const xAOD::TruthParticle * > & | vec, |
Stage | stage = FULL |
||
) |
fill TEST vectors
TEST = truth
Definition at line 155 of file TrackAnalysisCollections.cxx.
StatusCode IDTPM::TrackAnalysisCollections::fillTrigTrackContainer | ( | const SG::ReadHandleKey< xAOD::TrackParticleContainer > & | handleKey | ) |
Trigger track particles.
Fill container
Fill FULL vector
Definition at line 122 of file TrackAnalysisCollections.cxx.
StatusCode IDTPM::TrackAnalysisCollections::fillTrigTrackVec | ( | const std::vector< const xAOD::TrackParticle * > & | vec, |
Stage | stage = FULL |
||
) |
StatusCode IDTPM::TrackAnalysisCollections::fillTruthPartContainer | ( | const SG::ReadHandleKey< xAOD::TruthParticleContainer > & | handleKey | ) |
— Setter methods —
fill FULL collections and vectors
Truth particles
Fill container
Fill FULL vector
Definition at line 62 of file TrackAnalysisCollections.cxx.
StatusCode IDTPM::TrackAnalysisCollections::fillTruthPartVec | ( | const std::vector< const xAOD::TruthParticle * > & | vec, |
Stage | stage = FULL |
||
) |
get truth/offline/trigger track vector (TEST or REFERENCE)
Truth tracks.
Definition at line 239 of file TrackAnalysisCollections.cxx.
StatusCode IDTPM::TrackAnalysisCollections::initialize | ( | ) |
initialize
load trkAnaDefSvc
construct track matching lookup table based on the types of test and reference Truth->Track
Track->Truth
Track->Track
Definition at line 32 of file TrackAnalysisCollections.cxx.
|
privateinherited |
Initialize our message level and MessageSvc.
This method should only be called once.
Definition at line 39 of file AthMessaging.cxx.
|
inline |
|
inlineinherited |
The standard message stream.
Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.
Definition at line 164 of file AthMessaging.h.
|
inlineinherited |
The standard message stream.
Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.
Definition at line 179 of file AthMessaging.h.
|
inlineinherited |
Test the output level.
lvl | The message level to test against |
true | Messages at level "lvl" will be printed |
Definition at line 151 of file AthMessaging.h.
|
inline |
Definition at line 136 of file TrackAnalysisCollections.h.
|
inline |
Definition at line 152 of file TrackAnalysisCollections.h.
|
delete |
= operator
print Information about tracks in the collection(s)
print tracks
Definition at line 488 of file TrackAnalysisCollections.cxx.
std::string IDTPM::TrackAnalysisCollections::printMatchInfo | ( | ) |
print matching information
Truth->Track
Track->Truth
Track->Track
Definition at line 543 of file TrackAnalysisCollections.cxx.
const xAOD::TrackParticleContainer * IDTPM::TrackAnalysisCollections::refTrackContainer | ( | ) |
const std::vector< const xAOD::TrackParticle * > & IDTPM::TrackAnalysisCollections::refTrackVec | ( | Stage | stage = FULL | ) |
const xAOD::TruthParticleContainer * IDTPM::TrackAnalysisCollections::refTruthContainer | ( | ) |
get full REFERENCE containers
REFERENCE = Truth.
Definition at line 397 of file TrackAnalysisCollections.cxx.
const std::vector< const xAOD::TruthParticle * > & IDTPM::TrackAnalysisCollections::refTruthVec | ( | Stage | stage = FULL | ) |
get REFERENCE track vectors
REFERENCE = Truth.
Definition at line 456 of file TrackAnalysisCollections.cxx.
|
inherited |
Change the current logging level.
Use this rather than msg().setLevel() for proper operation with MT.
Definition at line 28 of file AthMessaging.cxx.
const xAOD::TrackParticleContainer * IDTPM::TrackAnalysisCollections::testTrackContainer | ( | ) |
const std::vector< const xAOD::TrackParticle * > & IDTPM::TrackAnalysisCollections::testTrackVec | ( | Stage | stage = FULL | ) |
const xAOD::TruthParticleContainer * IDTPM::TrackAnalysisCollections::testTruthContainer | ( | ) |
get full TEST containers
TEST = Truth
Definition at line 371 of file TrackAnalysisCollections.cxx.
const std::vector< const xAOD::TruthParticle * > & IDTPM::TrackAnalysisCollections::testTruthVec | ( | Stage | stage = FULL | ) |
get TEST track vectors
TEST = Truth
Definition at line 426 of file TrackAnalysisCollections.cxx.
|
inline |
Definition at line 138 of file TrackAnalysisCollections.h.
|
inline |
Definition at line 154 of file TrackAnalysisCollections.h.
|
inline |
get truth/offline/trigger track containers (TEST or REFERENCE)
Definition at line 134 of file TrackAnalysisCollections.h.
|
inline |
get truth/offline/trigger track vector (TEST or REFERENCE)
Definition at line 150 of file TrackAnalysisCollections.h.
bool IDTPM::TrackAnalysisCollections::updateChainRois | ( | const std::string & | chainRoi, |
const std::string & | roiStr | ||
) |
update chainRois map
Creating new matching lookup table for newChainRoiName
m_matches is now ready to be updated with new entries for the maps...
Definition at line 561 of file TrackAnalysisCollections.cxx.
|
mutableprivateinherited |
Messaging initialized (initMessaging)
Definition at line 141 of file AthMessaging.h.
|
private |
TrackAnalysis properties.
Definition at line 169 of file TrackAnalysisCollections.h.
|
private |
Definition at line 192 of file TrackAnalysisCollections.h.
|
mutableprivateinherited |
MessageSvc pointer.
Definition at line 135 of file AthMessaging.h.
|
mutableprivateinherited |
Current logging level.
Definition at line 138 of file AthMessaging.h.
|
private |
Lookup table for test-reference matching.
Definition at line 188 of file TrackAnalysisCollections.h.
|
mutableprivateinherited |
MsgStream instance (a std::cout like with print-out levels)
Definition at line 132 of file AthMessaging.h.
|
privateinherited |
Message source name.
Definition at line 129 of file AthMessaging.h.
|
private |
null vectors
Definition at line 184 of file TrackAnalysisCollections.h.
|
private |
Definition at line 185 of file TrackAnalysisCollections.h.
|
private |
Definition at line 175 of file TrackAnalysisCollections.h.
|
private |
Definition at line 180 of file TrackAnalysisCollections.h.
|
private |
Definition at line 176 of file TrackAnalysisCollections.h.
|
private |
Definition at line 181 of file TrackAnalysisCollections.h.
|
private |
Definition at line 170 of file TrackAnalysisCollections.h.
|
private |
— Collections class variables — Full collections
Definition at line 174 of file TrackAnalysisCollections.h.
|
private |
vectors of track/truth particles at different stages of the selection/workflow
Definition at line 179 of file TrackAnalysisCollections.h.