23 return StatusCode::SUCCESS;
28 const EventContext& context = getContext();
29 ATH_MSG_INFO (
"Event " << context.eventID().event_number() <<
30 " LBN " << context.eventID().lumi_block());
33 auto it =
m_cmd.find(context.eventID().lumi_block());
34 if (it !=
m_cmd.end()) {
36 if ( system(it->second.c_str()) != 0 ) {
38 return StatusCode::FAILURE;
48 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
Handle class for reading from StoreGate.
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
const ServiceHandle< StoreGateSvc > & detStore() const
virtual StatusCode initialize() override
CondWriterExtAlg(const std::string &name, ISvcLocator *pSvcLocator)
virtual StatusCode execute() override
Gaudi::Property< std::string > m_attrListKey
ServiceHandle< IIOVSvc > m_iovSvc
Gaudi::Property< std::map< int, std::string > > m_cmd