 |
ATLAS Offline Software
|
Go to the documentation of this file.
17 #include "GaudiKernel/MsgStream.h"
28 const std::string&
name,
32 declareInterface<AthTileTripReader>(
this);
35 m_tripFile=
"/cvmfs/atlas.cern.ch/repo/sw/database/GroupData/TileTripReader/CompleteTripList_2015-2018.root",
36 "Path to the trip list file");
44 if(m_tripReader)
delete m_tripReader;
51 if(m_tripFile[0] ==
'/' || m_tripFile[0] ==
'$' ||
52 m_tripFile[0] ==
'.' || m_tripFile.find(
":")!=string::npos){
53 fname = gSystem->ExpandPathName( m_tripFile.c_str() );
57 if ( m_tripFile.empty() )
59 fname=m_tripFile.data();
62 if(!m_tripReader->setTripFile(
fname)){
64 return StatusCode::FAILURE;
68 m_tripReader->setVerbosity(1);
69 else m_tripReader->setVerbosity(0);
70 m_tripReader->initialize();
71 return StatusCode::SUCCESS;
75 if(!m_tripReader->finalize()){
77 return StatusCode::FAILURE;
79 return StatusCode::SUCCESS;
86 ATH_MSG_ERROR (
"ERROR! Could not retrieve event info from store gate!");
89 if(!
part)
return m_tripReader->accept(
evt->runNumber(),
95 return m_tripReader->accept(
evt->runNumber(),
108 ATH_MSG_ERROR (
"ERROR! Could not retrieve event info from store gate!");
114 return m_tripReader->calculate(
evt->runNumber(),
127 ATH_MSG_ERROR (
"ERROR! Could not retrieve event info from store gate!");
131 return m_tripReader->checkEvent(
evt->runNumber(),
EventInfo_v1 EventInfo
Definition of the latest event info version.
virtual StatusCode finalize() override
float calculate(const INavigable4Momentum *part)
virtual StatusCode initialize() override
msgSvc
Provide convenience handles for various services.
Root::TTileTripReader * m_tripReader
::StatusCode StatusCode
StatusCode definition for legacy code.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
std::string PathResolverFindXMLFile(const std::string &logical_file_name)
virtual ~AthTileTripReader()
AthTileTripReader(const std::string &type, const std::string &name, const IInterface *parent)
Helpers for checking error return status codes and reporting errors.
This class provides general information about an event. Event information is provided by the accessor...
#define ATH_MSG_WARNING(x)
asg::AcceptData accept(const INavigable4Momentum *part=0)