Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
TrackAnalysisCollections.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef INDETTRACKPERFMON_TRACKANALYSISCOLLECTIONS_H
6 #define INDETTRACKPERFMON_TRACKANALYSISCOLLECTIONS_H
7 
19 #include "GaudiKernel/ISvcLocator.h"
20 #include "GaudiKernel/Service.h"
22 #include "StoreGate/ReadHandle.h"
23 
31 
34 #include "ITrackMatchingLookup.h"
35 
37 #include <string>
38 #include <vector>
39 #include <memory>
40 #include <unordered_map>
41 #include <utility>
42 
43 
44 namespace IDTPM {
45 
47 
48  public:
49 
54  enum Stage : size_t { FULL, FS, InRoI, NStages };
55 
57  enum Counter : size_t { ALL, SELECTED, INROI, MATCHED, NCOUNTERS };
58 
60  TrackAnalysisCollections( const std::string& anaTag );
61 
64 
67 
70 
72 
75  const SG::ReadHandleKey<xAOD::EventInfo>& eventInfoHandleKey,
76  const SG::ReadHandleKey< xAOD::TruthEventContainer >& truthEventHandleKey,
77  const SG::ReadHandleKey< xAOD::TruthPileupEventContainer >& truthPUEventHandleKey );
78 
81  const SG::ReadHandleKey< xAOD::TruthParticleContainer >& truthPartHandleKey );
82 
85 
88 
91  const std::vector< const xAOD::TruthParticle* >& vec,
92  Stage stage = FULL );
93 
95  const std::vector< const xAOD::TrackParticle* >& vec,
96  Stage stage = FULL );
97 
100  const std::vector< const xAOD::TruthParticle* >& vec,
101  Stage stage = FULL );
102 
104  const std::vector< const xAOD::TrackParticle* >& vec,
105  Stage stage = FULL );
106 
109  const std::vector< const xAOD::TruthParticle* >& vec,
110  Stage stage = FULL );
111 
113  const std::vector< const xAOD::TrackParticle* >& vec,
114  Stage stage = FULL );
115 
117  const std::vector< const xAOD::TrackParticle* >& vec,
118  Stage stage = FULL );
119 
122  const SG::ReadHandleKey< xAOD::TruthVertexContainer >& truthVertexHandleKey );
123 
126 
129 
132  const std::vector< const xAOD::TruthVertex* >& vec,
133  Stage stage = FULL );
134 
136  const std::vector< const xAOD::Vertex* >& vec,
137  Stage stage = FULL );
138 
141  const std::vector< const xAOD::TruthVertex* >& vec,
142  Stage stage = FULL );
143 
145  const std::vector< const xAOD::Vertex* >& vec,
146  Stage stage = FULL );
147 
150  const std::vector< const xAOD::TruthVertex* >& vec,
151  Stage stage = FULL );
152 
154  const std::vector< const xAOD::Vertex* >& vec,
155  Stage stage = FULL );
156 
158  const std::vector< const xAOD::Vertex* >& vec,
159  Stage stage = FULL );
160 
162 
165  bool isNewEvent() { return ( m_newChain && m_newRoi ); }
166 
168  bool isNewChain() { return m_newChain; }
169 
171  void newChain() { m_newChain = false; m_newRoi = true; }
172 
174  bool isNewRoI() { return m_newRoi; }
175 
177  void newRoI() { m_newRoi = false; }
178 
180  bool empty( Stage stage = FULL );
181 
183  void clear( Stage stage = FULL );
184 
186  void copyFS();
187 
189  std::string printInfo( Stage stage = FULL, bool printVertex = true ) const;
190 
192  std::string printVertexInfo( Stage stage = FULL ) const;
193 
195 
197  const std::string& anaTag() { return m_anaTag; }
198 
200  const xAOD::EventInfo* eventInfo() { return m_eventInfo; }
203 
207 
211 
214  return m_truthPartContainer; }
216  return m_offlTrackContainer; }
218  return m_trigTrackContainer; }
219 
221  const std::vector< const xAOD::TruthParticle* >& testTruthVec( Stage stage = FULL );
222  const std::vector< const xAOD::TrackParticle* >& testTrackVec( Stage stage = FULL );
223 
225  const std::vector< const xAOD::TruthParticle* >& refTruthVec( Stage stage = FULL );
226  const std::vector< const xAOD::TrackParticle* >& refTrackVec( Stage stage = FULL );
227 
229  const std::vector< const xAOD::TruthParticle* >& truthPartVec( Stage stage = FULL ) {
230  return m_truthPartVec[ stage ]; }
231  const std::vector< const xAOD::TrackParticle* >& offlTrackVec( Stage stage = FULL ) {
232  return m_offlTrackVec[ stage ]; }
233  const std::vector< const xAOD::TrackParticle* >& trigTrackVec( Stage stage = FULL ) {
234  return m_trigTrackVec[ stage ]; }
235 
237  std::vector< size_t > testTrackCounts();
238  std::vector< size_t > refTrackCounts();
239 
243 
247 
250  return m_truthVertexContainer; }
252  return m_offlVertexContainer; }
254  return m_trigVertexContainer; }
255 
257  const std::vector< const xAOD::TruthVertex* >& testTruthVertexVec( Stage stage = FULL );
258  const std::vector< const xAOD::Vertex* >& testRecoVertexVec( Stage stage = FULL );
259 
261  const std::vector< const xAOD::TruthVertex* >& refTruthVertexVec( Stage stage = FULL );
262  const std::vector< const xAOD::Vertex* >& refRecoVertexVec( Stage stage = FULL );
263 
265  const std::vector< const xAOD::TruthVertex* >& truthVertexVec( Stage stage = FULL ) {
266  return m_truthVertexVec[ stage ]; }
267  const std::vector< const xAOD::Vertex* >& offlVertexVec( Stage stage = FULL ) {
268  return m_offlVertexVec[ stage ]; }
269  const std::vector< const xAOD::Vertex* >& trigVertexVec( Stage stage = FULL ) {
270  return m_trigVertexVec[ stage ]; }
271 
273  std::vector< size_t > testVertexCounts();
274  std::vector< size_t > refVertexCounts();
275 
278 
280  std::string printMatchInfo();
281 
283  bool updateChainRois( const std::string& chainRoi, const std::string& roiStr );
284 
285  private:
286 
288  std::string m_anaTag;
289  SmartIF< ITrackAnalysisDefinitionSvc > m_trkAnaDefSvc;
291 
294  const xAOD::EventInfo* m_eventInfo{nullptr};
297 
302 
304  std::vector<std::vector< const xAOD::TruthParticle* >> m_truthPartVec{};
305  std::vector<std::vector< const xAOD::TrackParticle* >> m_offlTrackVec{};
306  std::vector<std::vector< const xAOD::TrackParticle* >> m_trigTrackVec{};
307 
312 
314  std::vector<std::vector< const xAOD::TruthVertex* >> m_truthVertexVec{};
315  std::vector<std::vector< const xAOD::Vertex* >> m_offlVertexVec{};
316  std::vector<std::vector< const xAOD::Vertex* >> m_trigVertexVec{};
317 
319  std::vector< const xAOD::TrackParticle* > m_nullTrackVec{};
320  std::vector< const xAOD::TruthParticle* > m_nullTruthVec{};
321  std::vector< const xAOD::TruthVertex* > m_nullTruthVertVec{};
322  std::vector< const xAOD::Vertex* > m_nullRecoVertVec{};
323 
325  std::unique_ptr< ITrackMatchingLookup > m_matches;
326 
328  typedef std::unordered_map< std::string, std::string > mapChainRoi_t;
330 
331  }; // class TrackAnalysisCollections
332 
333 } // namespace IDTPM
334 
335 #endif // > !INDETTRACKPERFMON_TRACKANALYSISCOLLECTIONS_H
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
IDTPM::TrackAnalysisCollections::printInfo
std::string printInfo(Stage stage=FULL, bool printVertex=true) const
print information about tracks in the collection(s)
Definition: TrackAnalysisCollections.cxx:1034
IDTPM::TrackAnalysisCollections::fillTrigTrackVec
StatusCode fillTrigTrackVec(const std::vector< const xAOD::TrackParticle * > &vec, Stage stage=FULL)
Trigger tracks.
Definition: TrackAnalysisCollections.cxx:353
IDTPM::TrackAnalysisCollections::fillOfflVertexContainer
StatusCode fillOfflVertexContainer(const SG::ReadHandleKey< xAOD::VertexContainer > &handleKey)
Offline vertices.
Definition: TrackAnalysisCollections.cxx:404
IDTPM::TrackAnalysisCollections::printVertexInfo
std::string printVertexInfo(Stage stage=FULL) const
print information about vertices in the collection(s)
Definition: TrackAnalysisCollections.cxx:1089
IDTPM::TrackAnalysisCollections::m_matches
std::unique_ptr< ITrackMatchingLookup > m_matches
Lookup table for test-reference matching.
Definition: TrackAnalysisCollections.h:325
IDTPM::TrackAnalysisCollections::fillTruthVertexContainer
StatusCode fillTruthVertexContainer(const SG::ReadHandleKey< xAOD::TruthVertexContainer > &truthVertexHandleKey)
fill FULL vertex collections and vectors
Definition: TrackAnalysisCollections.cxx:373
ITrackAnalysisDefinitionSvc.h
IDTPM::TrackAnalysisCollections::Counter
Counter
Enum for counting objects at various stages.
Definition: TrackAnalysisCollections.h:57
python.FPGATrackSimAnalysisConfig.stage
stage
Definition: FPGATrackSimAnalysisConfig.py:717
IDTPM::TrackAnalysisCollections::NStages
@ NStages
Definition: TrackAnalysisCollections.h:54
IDTPM::TrackAnalysisCollections
Definition: TrackAnalysisCollections.h:46
IDTPM::TrackAnalysisCollections::ALL
@ ALL
Definition: TrackAnalysisCollections.h:57
AthCheckMacros.h
AthMsgStreamMacros.h
IDTPM::TrackAnalysisCollections::m_nullTruthVertVec
std::vector< const xAOD::TruthVertex * > m_nullTruthVertVec
Definition: TrackAnalysisCollections.h:321
IDTPM::TrackAnalysisCollections::testTruthVertexContainer
const xAOD::TruthVertexContainer * testTruthVertexContainer()
get full TEST vertex containers
Definition: TrackAnalysisCollections.cxx:878
IDTPM::TrackAnalysisCollections::updateChainRois
bool updateChainRois(const std::string &chainRoi, const std::string &roiStr)
update chainRois map
Definition: TrackAnalysisCollections.cxx:1155
IDTPM::TrackAnalysisCollections::isNewEvent
bool isNewEvent()
— Utility methods —
Definition: TrackAnalysisCollections.h:165
IDTPM::TrackAnalysisCollections::m_offlTrackVec
std::vector< std::vector< const xAOD::TrackParticle * > > m_offlTrackVec
Definition: TrackAnalysisCollections.h:305
IDTPM::TrackAnalysisCollections::m_trigTrackVec
std::vector< std::vector< const xAOD::TrackParticle * > > m_trigTrackVec
Definition: TrackAnalysisCollections.h:306
IDTPM::TrackAnalysisCollections::m_nullTrackVec
std::vector< const xAOD::TrackParticle * > m_nullTrackVec
null vectors
Definition: TrackAnalysisCollections.h:319
IDTPM::TrackAnalysisCollections::m_trigVertexVec
std::vector< std::vector< const xAOD::Vertex * > > m_trigVertexVec
Definition: TrackAnalysisCollections.h:316
IDTPM::TrackAnalysisCollections::refRecoVertexContainer
const xAOD::VertexContainer * refRecoVertexContainer()
REFERENCE = Reco.
Definition: TrackAnalysisCollections.cxx:915
TruthParticleContainer.h
IDTPM::TrackAnalysisCollections::refTruthVertexContainer
const xAOD::TruthVertexContainer * refTruthVertexContainer()
get full REFERENCE vertex containers
Definition: TrackAnalysisCollections.cxx:904
IDTPM::TrackAnalysisCollections::mapChainRoi_t
std::unordered_map< std::string, std::string > mapChainRoi_t
map of chainRoiNames for caching
Definition: TrackAnalysisCollections.h:328
IDTPM::TrackAnalysisCollections::m_offlTrackContainer
const xAOD::TrackParticleContainer * m_offlTrackContainer
Definition: TrackAnalysisCollections.h:300
IDTPM::TrackAnalysisCollections::fillRefTrackVec
StatusCode fillRefTrackVec(const std::vector< const xAOD::TrackParticle * > &vec, Stage stage=FULL)
REFERENCE = tracks.
Definition: TrackAnalysisCollections.cxx:291
IDTPM::TrackAnalysisCollections::truthPartContainer
const xAOD::TruthParticleContainer * truthPartContainer()
get truth/offline/trigger track containers (TEST or REFERENCE)
Definition: TrackAnalysisCollections.h:213
IDTPM::TrackAnalysisCollections::testVertexCounts
std::vector< size_t > testVertexCounts()
get counts vectors for TEST/REFERENCE vertex vectors at all stages
Definition: TrackAnalysisCollections.cxx:996
IDTPM::TrackAnalysisCollections::eventInfo
const xAOD::EventInfo * eventInfo()
get event info
Definition: TrackAnalysisCollections.h:200
IDTPM::TrackAnalysisCollections::fillTruthVertexVec
StatusCode fillTruthVertexVec(const std::vector< const xAOD::TruthVertex * > &vec, Stage stage=FULL)
fill truth/offline/trigger vertex vector (TEST or REFERENCE)
Definition: TrackAnalysisCollections.cxx:553
IDTPM::TrackAnalysisCollections::refTruthVertexVec
const std::vector< const xAOD::TruthVertex * > & refTruthVertexVec(Stage stage=FULL)
get REFERENCE vertex vectors
Definition: TrackAnalysisCollections.cxx:963
IDTPM::TrackAnalysisCollections::TrackAnalysisCollections
TrackAnalysisCollections(const std::string &anaTag)
Constructor.
Definition: TrackAnalysisCollections.cxx:22
vec
std::vector< size_t > vec
Definition: CombinationsGeneratorTest.cxx:9
IDTPM::TrackAnalysisCollections::isNewChain
bool isNewChain()
check if this is a new chain
Definition: TrackAnalysisCollections.h:168
IDTPM::TrackAnalysisCollections::m_nullTruthVec
std::vector< const xAOD::TruthParticle * > m_nullTruthVec
Definition: TrackAnalysisCollections.h:320
IDTPM::TrackAnalysisCollections::trigTrackVec
const std::vector< const xAOD::TrackParticle * > & trigTrackVec(Stage stage=FULL)
Definition: TrackAnalysisCollections.h:233
IDTPM::TrackAnalysisCollections::SELECTED
@ SELECTED
Definition: TrackAnalysisCollections.h:57
SG::ReadHandleKey< xAOD::EventInfo >
IDTPM::TrackAnalysisCollections::m_trigVertexContainer
const xAOD::VertexContainer * m_trigVertexContainer
Definition: TrackAnalysisCollections.h:311
IDTPM::TrackAnalysisCollections::m_truthVertexContainer
const xAOD::TruthVertexContainer * m_truthVertexContainer
Full vertex collections.
Definition: TrackAnalysisCollections.h:309
TruthPileupEventContainer.h
IDTPM::TrackAnalysisCollections::testTruthContainer
const xAOD::TruthParticleContainer * testTruthContainer()
get full TEST track containers
Definition: TrackAnalysisCollections.cxx:721
IDTPM::TrackAnalysisCollections::testRecoVertexContainer
const xAOD::VertexContainer * testRecoVertexContainer()
TEST = Reco.
Definition: TrackAnalysisCollections.cxx:889
IDTPM::TrackAnalysisCollections::MATCHED
@ MATCHED
Definition: TrackAnalysisCollections.h:57
IDTPM::TrackAnalysisCollections::fillTrigVertexVec
StatusCode fillTrigVertexVec(const std::vector< const xAOD::Vertex * > &vec, Stage stage=FULL)
Trigger tracks.
Definition: TrackAnalysisCollections.cxx:587
IDTPM::TrackAnalysisCollections::fillOfflTrackVec
StatusCode fillOfflTrackVec(const std::vector< const xAOD::TrackParticle * > &vec, Stage stage=FULL)
Offline tracks.
Definition: TrackAnalysisCollections.cxx:336
IDTPM::TrackAnalysisCollections::fillTrigVertexContainer
StatusCode fillTrigVertexContainer(const SG::ReadHandleKey< xAOD::VertexContainer > &handleKey)
Trigger vertices.
Definition: TrackAnalysisCollections.cxx:433
IDTPM::TrackAnalysisCollections::printMatchInfo
std::string printMatchInfo()
print track matching information
Definition: TrackAnalysisCollections.cxx:1137
IDTPM::TrackAnalysisCollections::fillRefTruthVertexVec
StatusCode fillRefTruthVertexVec(const std::vector< const xAOD::TruthVertex * > &vec, Stage stage=FULL)
fill REFERENCE vertex vectors
Definition: TrackAnalysisCollections.cxx:509
IDTPM::TrackAnalysisCollections::testTrackVec
const std::vector< const xAOD::TrackParticle * > & testTrackVec(Stage stage=FULL)
TEST = Track.
Definition: TrackAnalysisCollections.cxx:789
IDTPM::TrackAnalysisCollections::fillTruthPartVec
StatusCode fillTruthPartVec(const std::vector< const xAOD::TruthParticle * > &vec, Stage stage=FULL)
fill truth/offline/trigger track vector (TEST or REFERENCE)
Definition: TrackAnalysisCollections.cxx:319
IDTPM::TrackAnalysisCollections::m_trkAnaDefSvc
SmartIF< ITrackAnalysisDefinitionSvc > m_trkAnaDefSvc
Definition: TrackAnalysisCollections.h:289
IDTPM::TrackAnalysisCollections::m_trigTrackContainer
const xAOD::TrackParticleContainer * m_trigTrackContainer
Definition: TrackAnalysisCollections.h:301
IDTPM::TrackAnalysisCollections::clear
void clear(Stage stage=FULL)
Clear vectors.
Definition: TrackAnalysisCollections.cxx:628
IDTPM::TrackAnalysisCollections::m_truthEventContainer
const xAOD::TruthEventContainer * m_truthEventContainer
Definition: TrackAnalysisCollections.h:295
IDTPM::TrackAnalysisCollections::fillTruthPartContainer
StatusCode fillTruthPartContainer(const SG::ReadHandleKey< xAOD::TruthParticleContainer > &truthPartHandleKey)
fill FULL track collections and vectors
Definition: TrackAnalysisCollections.cxx:108
IDTPM::TrackAnalysisCollections::INROI
@ INROI
Definition: TrackAnalysisCollections.h:57
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
IDTPM::TrackAnalysisCollections::offlTrackContainer
const xAOD::TrackParticleContainer * offlTrackContainer()
Definition: TrackAnalysisCollections.h:215
IDTPM::TrackAnalysisCollections::FS
@ FS
Definition: TrackAnalysisCollections.h:54
IDTPM::TrackAnalysisCollections::testRecoVertexVec
const std::vector< const xAOD::Vertex * > & testRecoVertexVec(Stage stage=FULL)
TEST = Reco.
Definition: TrackAnalysisCollections.cxx:946
IDTPM::TrackAnalysisCollections::truthPileupEventContainer
const xAOD::TruthPileupEventContainer * truthPileupEventContainer()
Definition: TrackAnalysisCollections.h:202
IDTPM::TrackAnalysisCollections::m_truthVertexVec
std::vector< std::vector< const xAOD::TruthVertex * > > m_truthVertexVec
vectors of reco/truth vertices at different stages of the selection/workflow
Definition: TrackAnalysisCollections.h:314
IDTPM::TrackAnalysisCollections::offlVertexContainer
const xAOD::VertexContainer * offlVertexContainer()
Definition: TrackAnalysisCollections.h:251
IDTPM::TrackAnalysisCollections::newChain
void newChain()
update before running on new chain
Definition: TrackAnalysisCollections.h:171
IDTPM::TrackAnalysisCollections::truthVertexContainer
const xAOD::TruthVertexContainer * truthVertexContainer()
get truth/offline/trigger vertex containers (TEST or REFERENCE)
Definition: TrackAnalysisCollections.h:249
IDTPM::TrackAnalysisCollections::matches
ITrackMatchingLookup & matches()
get track matching information
Definition: TrackAnalysisCollections.h:277
IDTPM::TrackAnalysisCollections::m_nullRecoVertVec
std::vector< const xAOD::Vertex * > m_nullRecoVertVec
Definition: TrackAnalysisCollections.h:322
IDTPM::TrackAnalysisCollections::fillRefRecoVertexVec
StatusCode fillRefRecoVertexVec(const std::vector< const xAOD::Vertex * > &vec, Stage stage=FULL)
REFERENCE = reco.
Definition: TrackAnalysisCollections.cxx:526
AthMessaging
Class to provide easy MsgStream access and capabilities.
Definition: AthMessaging.h:55
IDTPM::TrackAnalysisCollections::testTrackCounts
std::vector< size_t > testTrackCounts()
get counts vectors for TEST/REFERENCE track vectors at all stages
Definition: TrackAnalysisCollections.cxx:839
IDTPM::TrackAnalysisCollections::m_newRoi
bool m_newRoi
Definition: TrackAnalysisCollections.h:290
IDTPM::TrackAnalysisCollections::truthEventContainer
const xAOD::TruthEventContainer * truthEventContainer()
Definition: TrackAnalysisCollections.h:201
ITrackMatchingLookup.h
Interace for TrackMatchingLookup objects (templated)
IDTPM::TrackAnalysisCollections::offlTrackVec
const std::vector< const xAOD::TrackParticle * > & offlTrackVec(Stage stage=FULL)
Definition: TrackAnalysisCollections.h:231
IDTPM::TrackAnalysisCollections::NCOUNTERS
@ NCOUNTERS
Definition: TrackAnalysisCollections.h:57
DataVector
Derived DataVector<T>.
Definition: DataVector.h:794
IDTPM::TrackAnalysisCollections::truthVertexVec
const std::vector< const xAOD::TruthVertex * > & truthVertexVec(Stage stage=FULL)
get truth/offline/trigger vertex vector (TEST or REFERENCE)
Definition: TrackAnalysisCollections.h:265
IDTPM::TrackAnalysisCollections::testTruthVertexVec
const std::vector< const xAOD::TruthVertex * > & testTruthVertexVec(Stage stage=FULL)
get TEST vertex vectors
Definition: TrackAnalysisCollections.cxx:933
IDTPM::TrackAnalysisCollections::fillEventInfo
StatusCode fillEventInfo(const SG::ReadHandleKey< xAOD::EventInfo > &eventInfoHandleKey, const SG::ReadHandleKey< xAOD::TruthEventContainer > &truthEventHandleKey, const SG::ReadHandleKey< xAOD::TruthPileupEventContainer > &truthPUEventHandleKey)
— Setter methods —
Definition: TrackAnalysisCollections.cxx:68
IDTPM::TrackAnalysisCollections::trigVertexVec
const std::vector< const xAOD::Vertex * > & trigVertexVec(Stage stage=FULL)
Definition: TrackAnalysisCollections.h:269
IDTPM::TrackAnalysisCollections::Stage
Stage
Enum for selection stages.
Definition: TrackAnalysisCollections.h:54
IDTPM::TrackAnalysisCollections::refTruthContainer
const xAOD::TruthParticleContainer * refTruthContainer()
get full REFERENCE track containers
Definition: TrackAnalysisCollections.cxx:747
IDTPM::TrackAnalysisCollections::~TrackAnalysisCollections
~TrackAnalysisCollections()=default
Destructor.
IDTPM::TrackAnalysisCollections::offlVertexVec
const std::vector< const xAOD::Vertex * > & offlVertexVec(Stage stage=FULL)
Definition: TrackAnalysisCollections.h:267
IDTPM::TrackAnalysisCollections::testTrackContainer
const xAOD::TrackParticleContainer * testTrackContainer()
TEST = Track.
Definition: TrackAnalysisCollections.cxx:732
IDTPM::TrackAnalysisCollections::m_offlVertexVec
std::vector< std::vector< const xAOD::Vertex * > > m_offlVertexVec
Definition: TrackAnalysisCollections.h:315
IDTPM::TrackAnalysisCollections::m_truthPartContainer
const xAOD::TruthParticleContainer * m_truthPartContainer
Full track collections.
Definition: TrackAnalysisCollections.h:299
EventInfo.h
xAOD::EventInfo_v1
Class describing the basic event information.
Definition: EventInfo_v1.h:43
IDTPM::TrackAnalysisCollections::isNewRoI
bool isNewRoI()
check if this is a new RoI
Definition: TrackAnalysisCollections.h:174
IDTPM::TrackAnalysisCollections::refTrackCounts
std::vector< size_t > refTrackCounts()
REFERENCE.
Definition: TrackAnalysisCollections.cxx:857
IDTPM::TrackAnalysisCollections::fillTestTruthVertexVec
StatusCode fillTestTruthVertexVec(const std::vector< const xAOD::TruthVertex * > &vec, Stage stage=FULL)
fill TEST vertex vectors
Definition: TrackAnalysisCollections.cxx:465
IDTPM::TrackAnalysisCollections::newRoI
void newRoI()
update before running on new RoI
Definition: TrackAnalysisCollections.h:177
IDTPM::TrackAnalysisCollections::initialize
StatusCode initialize()
initialize
Definition: TrackAnalysisCollections.cxx:41
IDTPM::TrackAnalysisCollections::refTrackVec
const std::vector< const xAOD::TrackParticle * > & refTrackVec(Stage stage=FULL)
TEST = Track.
Definition: TrackAnalysisCollections.cxx:819
VertexContainer.h
IDTPM::TrackAnalysisCollections::refVertexCounts
std::vector< size_t > refVertexCounts()
REFERENCE.
Definition: TrackAnalysisCollections.cxx:1014
IDTPM::TrackAnalysisCollections::InRoI
@ InRoI
Definition: TrackAnalysisCollections.h:54
IDTPM::TrackAnalysisCollections::fillTestRecoVertexVec
StatusCode fillTestRecoVertexVec(const std::vector< const xAOD::Vertex * > &vec, Stage stage=FULL)
TEST = reco.
Definition: TrackAnalysisCollections.cxx:482
AthMessaging.h
IDTPM::TrackAnalysisCollections::truthPartVec
const std::vector< const xAOD::TruthParticle * > & truthPartVec(Stage stage=FULL)
get truth/offline/trigger track vector (TEST or REFERENCE)
Definition: TrackAnalysisCollections.h:229
IDTPM::TrackAnalysisCollections::testTruthVec
const std::vector< const xAOD::TruthParticle * > & testTruthVec(Stage stage=FULL)
get TEST track vectors
Definition: TrackAnalysisCollections.cxx:776
IDTPM::TrackAnalysisCollections::empty
bool empty(Stage stage=FULL)
check if collection are empty
Definition: TrackAnalysisCollections.cxx:607
IDTPM::TrackAnalysisCollections::m_truthPUEventContainer
const xAOD::TruthPileupEventContainer * m_truthPUEventContainer
Definition: TrackAnalysisCollections.h:296
IDTPM::TrackAnalysisCollections::m_anaTag
std::string m_anaTag
TrackAnalysis properties.
Definition: TrackAnalysisCollections.h:288
IDTPM::ITrackMatchingLookup
Definition: ITrackMatchingLookup.h:30
IDTPM::TrackAnalysisCollections::fillTrigTrackContainer
StatusCode fillTrigTrackContainer(const SG::ReadHandleKey< xAOD::TrackParticleContainer > &handleKey)
Trigger track particles.
Definition: TrackAnalysisCollections.cxx:196
ReadHandle.h
Handle class for reading from StoreGate.
IDTPM::TrackAnalysisCollections::FULL
@ FULL
Definition: TrackAnalysisCollections.h:54
IDTPM::TrackAnalysisCollections::copyFS
void copyFS()
copy content of FS vectors to InRoI vectors
Definition: TrackAnalysisCollections.cxx:664
IDTPM
Athena include(s).
Definition: IPlotsDefinitionSvc.h:25
IDTPM::TrackAnalysisCollections::refRecoVertexVec
const std::vector< const xAOD::Vertex * > & refRecoVertexVec(Stage stage=FULL)
REFERENCE = Reco.
Definition: TrackAnalysisCollections.cxx:976
TruthEventContainer.h
IDTPM::TrackAnalysisCollections::operator=
TrackAnalysisCollections & operator=(const TrackAnalysisCollections &)=delete
= operator
IDTPM::TrackAnalysisCollections::refTrackContainer
const xAOD::TrackParticleContainer * refTrackContainer()
REFERENCE = Track.
Definition: TrackAnalysisCollections.cxx:758
IDTPM::TrackAnalysisCollections::anaTag
const std::string & anaTag()
— Getter methods —
Definition: TrackAnalysisCollections.h:197
IDTPM::TrackAnalysisCollections::fillTestTrackVec
StatusCode fillTestTrackVec(const std::vector< const xAOD::TrackParticle * > &vec, Stage stage=FULL)
TEST = tracks.
Definition: TrackAnalysisCollections.cxx:246
IDTPM::TrackAnalysisCollections::m_chainRois
mapChainRoi_t m_chainRois
Definition: TrackAnalysisCollections.h:329
IDTPM::TrackAnalysisCollections::trigTrackContainer
const xAOD::TrackParticleContainer * trigTrackContainer()
Definition: TrackAnalysisCollections.h:217
IDTPM::TrackAnalysisCollections::m_newChain
bool m_newChain
Definition: TrackAnalysisCollections.h:290
TrackParticleContainer.h
IDTPM::TrackAnalysisCollections::m_truthPartVec
std::vector< std::vector< const xAOD::TruthParticle * > > m_truthPartVec
vectors of track/truth particles at different stages of the selection/workflow
Definition: TrackAnalysisCollections.h:304
IDTPM::TrackAnalysisCollections::trigVertexContainer
const xAOD::VertexContainer * trigVertexContainer()
Definition: TrackAnalysisCollections.h:253
IDTPM::TrackAnalysisCollections::m_offlVertexContainer
const xAOD::VertexContainer * m_offlVertexContainer
Definition: TrackAnalysisCollections.h:310
IDTPM::TrackAnalysisCollections::fillOfflVertexVec
StatusCode fillOfflVertexVec(const std::vector< const xAOD::Vertex * > &vec, Stage stage=FULL)
Offline tracks.
Definition: TrackAnalysisCollections.cxx:570
IDTPM::TrackAnalysisCollections::m_eventInfo
const xAOD::EventInfo * m_eventInfo
— Collections class variables — EventInfo, TruthEvent, and TruthPUEvent
Definition: TrackAnalysisCollections.h:294
IDTPM::TrackAnalysisCollections::refTruthVec
const std::vector< const xAOD::TruthParticle * > & refTruthVec(Stage stage=FULL)
get REFERENCE track vectors
Definition: TrackAnalysisCollections.cxx:806
IDTPM::TrackAnalysisCollections::fillRefTruthVec
StatusCode fillRefTruthVec(const std::vector< const xAOD::TruthParticle * > &vec, Stage stage=FULL)
fill REFERENCE track vectors
Definition: TrackAnalysisCollections.cxx:274
IDTPM::TrackAnalysisCollections::fillOfflTrackContainer
StatusCode fillOfflTrackContainer(const SG::ReadHandleKey< xAOD::TrackParticleContainer > &handleKey)
Offline track particles.
Definition: TrackAnalysisCollections.cxx:166
IDTPM::TrackAnalysisCollections::fillTestTruthVec
StatusCode fillTestTruthVec(const std::vector< const xAOD::TruthParticle * > &vec, Stage stage=FULL)
fill TEST track vectors
Definition: TrackAnalysisCollections.cxx:229