19 ISvcLocator *pSvcLocator) :
26 ATH_MSG_DEBUG(
"MuonPatternCombinationDetailedTrackTruthMaker::initialize()");
28 return StatusCode::SUCCESS;
33 ATH_MSG_DEBUG(
"MuonPatternCombinationDetailedTrackTruthMaker::execute()");
39 std::vector<const PRD_MultiTruthCollection *> prdCollectionVector;
41 prdCollectionVector.push_back(
nullptr);
42 sc =
evtStore()->retrieve(*prdCollectionVector.rbegin(), *ikey);
43 if (!
sc.isSuccess()) {
58 return StatusCode::FAILURE;
67 return StatusCode::FAILURE;
80 m_truthTool->buildDetailedMuonPatternTruth(dmptc, *muPatternCombinations, prdCollectionVector);
85 <<
"' could not be registered in StoreGate !");
86 return StatusCode::SUCCESS;
89 <<
"' is registered in StoreGate, size=" << dmptc->size());
90 std::cout <<
"Debug 7.0: DetailedTrackTruthCollection is registered in storegate." << std::endl;
93 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_VERBOSE(x)
#define ATH_MSG_WARNING(x)
DataVector< Muon::MuonPatternCombination > MuonPatternCombinationCollection
This typedef represents a collection of MuonPatternCombination objects.
DataVector< Trk::Track > TrackCollection
This typedef represents a collection of Trk::Track objects.
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
ServiceHandle< StoreGateSvc > & evtStore()
virtual StatusCode execute()
Gaudi::Property< std::vector< std::string > > m_PRD_TruthNames
Gaudi::Property< std::string > m_collection
MuonPatternCombinationDetailedTrackTruthMaker(const std::string &name, ISvcLocator *pSvcLocator)
ToolHandle< Trk::IDetailedMuonPatternTruthBuilder > m_truthTool
virtual StatusCode initialize()
Gaudi::Property< std::string > m_trackCollectionName
Gaudi::Property< std::string > m_detailedTrackTruthName
bool contains(const std::string &s, const std::string ®x)
does a string contain the substring