4#ifndef ACTSTRK_CLUSTERTOTRUTHASSOCIATION_H
5#define ACTSTRK_CLUSTERTOTRUTHASSOCIATION_H 1
14#include <unordered_map>
34 operator bool()
const {
38 if (deposit.first.isValid()) {
40 if (truth_particle_link) {
41 return *truth_particle_link;
47 return deposit.first.eventIndex()==0;
54 if (!truth_particle_links) {
55 throw std::runtime_error(
"Invalid xAODTruthParticleLinkVector.");
64 return "InputTruthParticleLinks";
71 InDetSimDataCollection::const_iterator sim_data_iter_for_identifier) {
72 return sim_data_iter_for_identifier->second.getdeposits();
77 return deposit.second;
88 InDetSimDataCollection,
89 xAODTruthParticleLinkVector,
90 MeasurementToTruthAssociationDebugHistograms>
102 InDetSimDataCollection,
103 xAODTruthParticleLinkVector,
104 MeasurementToTruthAssociationDebugHistograms>
115 InDetSimDataCollection,
116 xAODTruthParticleLinkVector,
117 MeasurementToTruthAssociationDebugHistograms>
constexpr bool MeasurementToTruthAssociationDebugHistograms
MeasurementToTruthAssociationAlg(const std::string &name, ISvcLocator *pSvcLocator)
ElementLink implementation for ROOT usage.
HepMcLinkToTruthParticleMap(const xAODTruthParticleLinkVector &truth_particle_links)
bool isHardScatter(const InDetSimData::Deposit &deposit)
const xAOD::TruthParticle * getTruthParticle(const InDetSimData::Deposit &deposit)
const xAODTruthParticleLinkVector * m_truthParticleLinks
std::pair< HepMcParticleLink, float > Deposit
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...
float getDepositedEnergy(const T_Deposit &)
auto getSimDataDeposits(const T_SimDataCollection &sim_data_collection, T_SimDataIterator sim_data_iter_for_identifier)
const char * getInTruthPropertyName()
auto makeDepositToTruthParticleMap(const T_TruthEventCollection *truth_particle_links)
PixelClusterContainer_v1 PixelClusterContainer
Define the version of the pixel cluster container.
HGTDClusterContainer_v1 HGTDClusterContainer
Define the version of the HGTD cluster container.
StripClusterContainer_v1 StripClusterContainer
Define the version of the strip cluster container.
TruthParticle_v1 TruthParticle
Typedef to implementation.