ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
HitTruthMatching Struct Reference
Collaboration diagram for HitTruthMatching:

Public Member Functions

 HitTruthMatching (const xAOD::TruthParticle *_truthPart)
 

Public Attributes

const xAOD::TruthParticletruthPart {nullptr}
 
std::unordered_set< IdentifierassocHits {}
 

Detailed Description

Definition at line 10 of file MuonHoughDataNtuple.cxx.

Constructor & Destructor Documentation

◆ HitTruthMatching()

HitTruthMatching::HitTruthMatching ( const xAOD::TruthParticle _truthPart)
inline

Definition at line 11 of file MuonHoughDataNtuple.cxx.

11  :
12  truthPart{_truthPart}{
13  for (const std::string hitColl : {"truthMdtHits", "truthRpcHits", "truthTgcHits", "truthCscHits"}) {
15  if (!acc.isAvailable(*truthPart)) continue;
16  for (const long long unsigned id : acc(*truthPart)){
17  assocHits.emplace(id);
18  }
19  }
20  }

Member Data Documentation

◆ assocHits

std::unordered_set<Identifier> HitTruthMatching::assocHits {}

Definition at line 22 of file MuonHoughDataNtuple.cxx.

◆ truthPart

const xAOD::TruthParticle* HitTruthMatching::truthPart {nullptr}

Definition at line 21 of file MuonHoughDataNtuple.cxx.


The documentation for this struct was generated from the following file:
HitTruthMatching::assocHits
std::unordered_set< Identifier > assocHits
Definition: MuonHoughDataNtuple.cxx:22
HitTruthMatching::truthPart
const xAOD::TruthParticle * truthPart
Definition: MuonHoughDataNtuple.cxx:21
SG::ConstAccessor
Helper class to provide constant type-safe access to aux data.
Definition: ConstAccessor.h:55
AthenaPoolTestRead.acc
acc
Definition: AthenaPoolTestRead.py:16