17 m_PRDTruthNamePixel(
"PRD_MultiTruthPixel"),
18 m_PRDTruthNameSCT(
"PRD_MultiTruthSCT"),
19 m_PRDTruthNameTRT(
"PRD_MultiTruthTRT"),
20 m_trackCollectionName(
"Tracks"),
21 m_detailedTrackTruthName(
"DetailedTrackTruth"),
22 m_truthTool(
"Trk::DetailedTrackTruthBuilder")
41 return StatusCode::FAILURE;
56 return StatusCode::SUCCESS;
63 return StatusCode::SUCCESS;
76 return StatusCode::FAILURE;
83 std::vector<SG::ReadHandle<PRD_MultiTruthCollection> > read_handle;
84 read_handle.reserve(3);
86 std::vector<const PRD_MultiTruthCollection*> prdCollectionVector;
87 prdCollectionVector.reserve(3);
91 if (!read_handle.back().isValid()) {
96 prdCollectionVector.push_back( &(*read_handle.back()) );
102 if (!read_handle.back().isValid()) {
106 prdCollectionVector.push_back( &(*read_handle.back()) );
112 if (!read_handle.back().isValid()) {
116 prdCollectionVector.push_back( &(*read_handle.back()) );
123 if (dttc.
record(std::make_unique<DetailedTrackTruthCollection>(&(*tracks))).isFailure()) {
125 return StatusCode::FAILURE;
129 m_truthTool->buildDetailedTrackTruth(&(*dttc), *tracks, prdCollectionVector, ctx);
130 return StatusCode::SUCCESS;