ATLAS Offline Software
Loading...
Searching...
No Matches
Tracking
TrkEvent
TrkTruthData
src
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
"
9
#include "
TrkTrack/TrackCollection.h
"
10
#include "
TrkTruthData/TrackTruthKey.h
"
11
#include "
TrkTruthData/TrackTruth.h
"
12
#include "
TrkTruthData/DetailedTrackTruth.h
"
13
#include "
TrkTruthData/TrackTruthCollection.h
"
14
#include "
TrkTruthData/PRD_MultiTruthCollection.h
"
15
#include "
TrkTruthData/DetailedTrackTruthCollection.h
"
16
#include "
GeneratorObjects/HepMcParticleLink.h
"
17
#include "AthLinks/DataLink.h"
18
#include <utility>
19
20
21
// Helpers for use from python.
22
namespace
TrkTruthDataHelpers
{
23
24
25
std::vector<std::pair<Identifier, HepMcParticleLink> >
26
getData
(
const
PRD_MultiTruthCollection
& prd)
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
DetailedTrackTruthCollection.h
DetailedTrackTruth.h
HepMcParticleLink.h
PRD_MultiTruthCollection.h
TrackCollection.h
TrackTruthCollection.h
TrackTruthKey.h
TrackTruth.h
Track.h
PRD_MultiTruthCollection
A PRD is mapped onto all contributing particles.
Definition
PRD_MultiTruthCollection.h:24
TrkTruthDataHelpers
Definition
TrkTruthDataDict.h:22
TrkTruthDataHelpers::getData
std::vector< std::pair< Identifier, HepMcParticleLink > > getData(const PRD_MultiTruthCollection &prd)
Definition
TrkTruthDataDict.h:26
Generated on
for ATLAS Offline Software by
1.14.0