23 return StatusCode::SUCCESS;
28 ATH_MSG_INFO (
"Event " << ctx.eventID().event_number() <<
29 " LBN " << ctx.eventID().lumi_block());
32 auto it =
m_cmd.find(ctx.eventID().lumi_block());
33 if (it !=
m_cmd.end()) {
35 if ( system(it->second.c_str()) != 0 ) {
37 return StatusCode::FAILURE;
47 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
virtual StatusCode execute(const EventContext &ctx) override
Execute method.
CondWriterExtAlg(const std::string &name, ISvcLocator *pSvcLocator)
Gaudi::Property< std::string > m_attrListKey
ServiceHandle< IIOVSvc > m_iovSvc
Gaudi::Property< std::map< int, std::string > > m_cmd