ATLAS Offline Software
Loading...
Searching...
No Matches
InDetSimDataHelpers Namespace Reference

Functions

std::vector< Identifieridentifiers (const InDetSimDataCollection &coll)
const InDetSimDatagetData (const InDetSimDataCollection &coll, const Identifier &id)

Function Documentation

◆ getData()

const InDetSimData * InDetSimDataHelpers::getData ( const InDetSimDataCollection & coll,
const Identifier & id )

Definition at line 24 of file InDetSimDataDict.h.

26{
27 auto it = coll.find (id);
28 if (it != coll.end()) {
29 return &it->second;
30 }
31 return nullptr;
32}

◆ identifiers()

std::vector< Identifier > InDetSimDataHelpers::identifiers ( const InDetSimDataCollection & coll)

Definition at line 15 of file InDetSimDataDict.h.

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}