ATLAS Offline Software
Loading...
Searching...
No Matches
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
15std::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
39{
40 std::pair< HepMcParticleLink , float> d_pair;
41}
42
43
44#endif
std::pair< HepMcParticleLink, float > d_pair
std::vector< Identifier > identifiers(const InDetSimDataCollection &coll)
const InDetSimData * getData(const InDetSimDataCollection &coll, const Identifier &id)