 |
ATLAS Offline Software
|
Go to the documentation of this file.
20 return StatusCode::FAILURE;
24 return StatusCode::SUCCESS;
30 ATH_CHECK(prdTruth.record(std::make_unique<PRD_MultiTruthCollection>()));
37 if (!truthHit || !truthHit->genParticleLink().isValid()){
44 std::pair<truthiter, truthiter>
r = prdTruth->equal_range(prdId);
45 if (
r.second == std::find_if(
r.first,
r.second,
46 [pl](
const PRD_MultiTruthCollection::value_type& prd_to_truth) {
47 return prd_to_truth.second == pl;
49 prdTruth->insert(std::make_pair(prdId, pl));
53 return StatusCode::SUCCESS;
JetConstituentVector::iterator iterator
const Identifier & identify(const UncalibratedMeasurement *meas)
Returns the associated identifier from the muon measurement.
Property holding a SG store/key/clid from which a ReadHandle is made.
virtual StatusCode initialize() override final
Handle class for recording to StoreGate.
const HepMcParticleLink & genParticleLink() const
Returns the link to the HepMC particle producing this hit.
SG::ReadHandleKeyArray< xAODPrdCont_t > m_xAODPrdKeys
const T * get(const ReadCondHandleKey< T > &key, const EventContext &ctx)
Convenience function to retrieve an object given a ReadCondHandleKey.
::StatusCode StatusCode
StatusCode definition for legacy code.
SG::ReadDecorHandleKeyArray< xAODPrdCont_t > m_simHitDecorKeys
SG::WriteHandleKey< PRD_MultiTruthCollection > m_writeKey
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
This header ties the generic definitions in this package.
const xAOD::MuonSimHit * getTruthMatchedHit(const xAOD::UncalibratedMeasurement &prdHit)
Returns the MuonSimHit, if there's any, matched to the uncalibrated muon measurement.
virtual StatusCode execute(const EventContext &ctx) const override final
Gaudi::Property< std::string > m_simLinkDecor