ATLAS Offline Software
Loading...
Searching...
No Matches
InnerDetector
InDetRawEvent
InDetSimData
InDetSimData
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
8
#include "
InDetSimData/InDetSimDataCollection.h
"
9
10
11
// Helpers for use from python.
12
namespace
InDetSimDataHelpers
{
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
24
const
InDetSimData
*
getData
(
const
InDetSimDataCollection
& coll,
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
InDetSimDataCollection.h
InDetSimDataCollection
Definition
InDetSimDataCollection.h:25
InDetSimData
Definition
InDetSimData.h:42
AthenaPoolTestDataDict
Definition
AthenaPoolTestDataDict.h:47
AthenaPoolTestDataDict::d_pair
std::pair< HepMcParticleLink, float > d_pair
Definition
InDetSimDataDict.h:40
Identifier
Definition
IdentifierFieldParser.cxx:14
InDetSimDataHelpers
Definition
InDetSimDataDict.h:12
InDetSimDataHelpers::identifiers
std::vector< Identifier > identifiers(const InDetSimDataCollection &coll)
Definition
InDetSimDataDict.h:15
InDetSimDataHelpers::getData
const InDetSimData * getData(const InDetSimDataCollection &coll, const Identifier &id)
Definition
InDetSimDataDict.h:24
Generated on
for ATLAS Offline Software by
1.14.0