|
ATLAS Offline Software
|
Go to the documentation of this file.
21 return StatusCode::FAILURE;
25 return StatusCode::SUCCESS;
31 ATH_CHECK(prdTruth.record(std::make_unique<PRD_MultiTruthCollection>()));
35 if (!readHandle.isPresent()) {
37 return StatusCode::FAILURE;
41 if (!truthHit || !truthHit->genParticleLink().isValid()){
48 std::pair<truthiter, truthiter>
r = prdTruth->equal_range(prdId);
49 if (
r.second == std::find_if(
r.first,
r.second,
50 [pl](
const PRD_MultiTruthCollection::value_type& prd_to_truth) {
51 return prd_to_truth.second == pl;
53 prdTruth->insert(std::make_pair(prdId, pl));
57 return StatusCode::SUCCESS;
JetConstituentVector::iterator iterator
Identifier identify(const UncalibratedMeasurement *meas)
Returns the associated identifier.
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
::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
Handle class for reading from StoreGate.
Gaudi::Property< std::string > m_simLinkDecor