29 return StatusCode::SUCCESS;
36 if (!trackColl.isPresent()) {
37 ATH_MSG_DEBUG(
"track collection " << trackColl.key() <<
" not present");
40 if (!trackColl.isValid()) {
41 ATH_MSG_WARNING(
"track collection " << trackColl.key() <<
" not valid!");
42 return StatusCode::FAILURE;
48 if (!truthMap.isPresent()) {
49 ATH_MSG_DEBUG(
"truth map " << truthMap.key() <<
" not present");
52 if (!truthMap.isValid()) {
54 return StatusCode::FAILURE;
59 return StatusCode::SUCCESS;
74 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_WARNING(x)
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
virtual StatusCode execute() override
std::string m_fileName
name of external file to write statistics
SG::ReadHandleKeyArray< DetailedTrackTruthCollection > m_truthKeys
void storeTruthTracks(void)
std::ofstream m_fileOutput
output file
SG::ReadHandleKeyArray< TrackCollection > m_trackKeys
virtual StatusCode initialize() override
ToolHandle< MuonTrackStatisticsTool > m_statisticsTool
MuonTrackStatisticsAlg(const std::string &name, ISvcLocator *pSvcLocator)
virtual StatusCode finalize() override
virtual ~MuonTrackStatisticsAlg()