ATLAS Offline Software
InDetSimDataDict.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 INDETSIMEVENT_INDETSIMDATADICT_H
6 #define INDETSIMEVENT_INDETSIMDATADICT_H
7 
9 
10 
11 // Helpers for use from python.
13 
14 
15 std::vector<Identifier> identifiers (const InDetSimDataCollection& coll)
16 {
17  std::vector<Identifier> v;
18  v.reserve (coll.size());
19  for (const auto& p : coll)
20  v.push_back (p.first);
21  return v;
22 }
23 
25  const Identifier& id)
26 {
27  auto it = coll.find (id);
28  if (it != coll.end()) {
29  return &it->second;
30  }
31  return nullptr;
32 }
33 
34 
35 } // namespace InDetSimDataHelpers
36 
37 
38 namespace AthenaPoolTestDataDict
39 {
40  std::pair< HepMcParticleLink , float> d_pair;
41 }
42 
43 
44 #endif
InDetSimDataHelpers::getData
const InDetSimData * getData(const InDetSimDataCollection &coll, const Identifier &id)
Definition: InDetSimDataDict.h:24
AthenaPoolTestDataDict::d_pair
std::pair< HepMcParticleLink, float > d_pair
Definition: InDetSimDataDict.h:40
skel.it
it
Definition: skel.GENtoEVGEN.py:396
InDetSimDataCollection
Definition: InDetSimDataCollection.h:25
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
AthenaPoolTestDataDict
Definition: AthenaPoolTestDataDict.h:47
InDetSimData
Definition: InDetSimData.h:42
python.PyAthena.v
v
Definition: PyAthena.py:154
InDetSimDataHelpers::identifiers
std::vector< Identifier > identifiers(const InDetSimDataCollection &coll)
Definition: InDetSimDataDict.h:15
InDetSimDataCollection.h
InDetSimDataHelpers
Definition: InDetSimDataDict.h:12
Identifier
Definition: IdentifierFieldParser.cxx:14