ATLAS Offline Software
TrkTruthDataDict.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TRKTRUTHDATA_TRKTRUTHDATADICT_H
6 #define TRKTRUTHDATA_TRKTRUTHDATADICT_H
7 
8 #include "TrkTrack/Track.h"
17 #include "AthLinks/DataLink.h"
18 #include <utility>
19 
20 
21 // Helpers for use from python.
23 
24 
25 std::vector<std::pair<Identifier, HepMcParticleLink> >
27 {
28  std::vector<std::pair<Identifier, HepMcParticleLink> > v;
29  v.reserve (prd.size());
30  for (const auto& p : prd) {
31  v.emplace_back (p.first, p.second);
32  }
33  return v;
34 }
35 
36 
37 } // namespace TrkTruthDataHelpers
38 
39 
40 namespace
41 {
42  struct temp_TrkTruthData
43  {
44  std::pair<Trk::TrackTruthKey,TrackTruth> m_2;
45  std::pair<Trk::TrackTruthKey, DetailedTrackTruth > m_4;
46  std::pair<const Trk::TrackTruthKey, DetailedTrackTruth > m_4c;
47  };
48 }
49 
50 #endif
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
PRD_MultiTruthCollection
A PRD is mapped onto all contributing particles.
Definition: PRD_MultiTruthCollection.h:24
TrkTruthDataHelpers
Definition: TrkTruthDataDict.h:22
TrackTruthKey.h
Track.h
DetailedTrackTruthCollection.h
TrackTruthCollection.h
TrackCollection.h
DetailedTrackTruth.h
TrkTruthDataHelpers::getData
std::vector< std::pair< Identifier, HepMcParticleLink > > getData(const PRD_MultiTruthCollection &prd)
Definition: TrkTruthDataDict.h:26
TrackTruth.h
python.PyAthena.v
v
Definition: PyAthena.py:157
PRD_MultiTruthCollection.h