ATLAS Offline Software
Loading...
Searching...
No Matches
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
25std::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
40namespace
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
A PRD is mapped onto all contributing particles.
std::vector< std::pair< Identifier, HepMcParticleLink > > getData(const PRD_MultiTruthCollection &prd)