17 ATH_MSG_FATAL(
"No PRD truth collections have been configured for processing");
18 return StatusCode::FAILURE;
36 return StatusCode::SUCCESS;
45 std::vector<const PRD_MultiTruthCollection*> prdCollectionVector;
47 prdCollectionVector.emplace_back(
nullptr);
51 ATH_MSG_DEBUG(
"Loaded in total "<<prdCollectionVector.size()<<
" prd truth collections");
65 ATH_CHECK(dttc.
record(std::make_unique<DetailedTrackTruthCollection>()));
66 dttc->setTrackCollection(tcol);
67 m_truthTool->buildDetailedTrackTruth(dttc.
ptr(), *tcol, prdCollectionVector, ctx);
70 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
DataVector< Trk::Track > TrackCollection
This typedef represents a collection of Trk::Track objects.
SG::WriteHandleKeyArray< DetailedTrackTruthCollection > m_detailedTrackTruthNames
ToolHandle< Trk::IDetailedTrackTruthBuilder > m_truthTool
virtual StatusCode initialize() override
SG::ReadHandleKeyArray< PRD_MultiTruthCollection > m_PRD_TruthNames
virtual StatusCode execute(const EventContext &ctx) const override
SG::ReadHandleKeyArray< TrackCollection > m_trackCollectionNames
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
pointer_type ptr()
Dereference the pointer.
const T * get(const ReadCondHandleKey< T > &key, const EventContext &ctx)
Convenience function to retrieve an object given a ReadCondHandleKey.