1#ifndef ACTSTRK_CLUSTERTOTRUTHASSOCIATION_H
2#define ACTSTRK_CLUSTERTOTRUTHASSOCIATION_H 1
11#include <unordered_map>
31 operator bool()
const {
35 if (deposit.first.isValid()) {
37 if (truth_particle_link) {
38 return *truth_particle_link;
44 return deposit.first.eventIndex()==0;
51 if (!truth_particle_links) {
52 throw std::runtime_error(
"Invalid xAODTruthParticleLinkVector.");
61 return "InputTruthParticleLinks";
67 InDetSimDataCollection::const_iterator sim_data_iter_for_identifier) {
68 return sim_data_iter_for_identifier->second.getdeposits();
73 return deposit.second;
84 InDetSimDataCollection,
85 xAODTruthParticleLinkVector,
86 MeasurementToTruthAssociationDebugHistograms>
98 InDetSimDataCollection,
99 xAODTruthParticleLinkVector,
100 MeasurementToTruthAssociationDebugHistograms>
111 InDetSimDataCollection,
112 xAODTruthParticleLinkVector,
113 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.