32 m_regSvc (
"IOVRegistrationSvc", name),
33 m_streamer (
"AthenaOutputStreamTool/CondStream", this)
51 return StatusCode::SUCCESS;
57 auto s2 = std::make_unique<DMTest::S2> (
count * 50);
73 return StatusCode::SUCCESS;
80 static const unsigned int bounds[] = { 0, 1, 3, 4, 7, 8, 9 };
82 unsigned int lbn =
count / 3;
83 const unsigned int* pos = std::find (std::begin(bounds),
86 if (pos != std::end(bounds)) {
87 unsigned int niov = pos - std::begin(bounds) + 1;
89 auto attrList = std::make_unique<AthenaAttributeList>();
90 attrList->extend (
"xint",
"int");
91 (*attrList)[
"xint"].setValue(
static_cast<int> (niov));
101 return StatusCode::SUCCESS;
108 static const unsigned int bounds[] = { 0, 3, 6, 7, 10, 17, 19, 22, 26 };
110 const unsigned int* pos = std::find (std::begin(bounds),
113 if (pos != std::end(bounds)) {
114 unsigned int niov = pos - std::begin(bounds) + 1;
116 auto attrList = std::make_unique<AthenaAttributeList>();
117 attrList->extend (
"xint",
"int");
118 (*attrList)[
"xint"].setValue(
static_cast<int> (niov * 100));
124 static_cast<uint64_t
>(
count) * 1000000000,
128 return StatusCode::SUCCESS;
138 unsigned int count = eventInfo->eventNumber() - 1;
140 auto attrList = std::make_unique<AthenaAttributeList>();
141 attrList->extend (
"xint",
"int");
142 (*attrList)[
"xint"].setValue(
static_cast<int> ((
count+1)*10));
159 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
Basic time unit for IOVSvc.
Conditions declarations for S2.
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
const ServiceHandle< StoreGateSvc > & detStore() const
virtual StatusCode execute() override
Algorithm event processing.
StatusCode writeRLTest(unsigned int count)
CondWriterAlg(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
virtual StatusCode initialize() override
Algorithm initialization; called at the beginning of the job.
ToolHandle< IAthenaOutputStreamTool > m_streamer
std::string m_attrListKey
StatusCode writeTSTest(unsigned int count)
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
StatusCode writeSCond(unsigned int count)
ServiceHandle< IIOVRegistrationSvc > m_regSvc
static constexpr uint64_t MAXTIMESTAMP
static constexpr uint32_t MAXRUN
static constexpr uint32_t MAXEVENT
int count(std::string s, const std::string ®x)
count how many occurances of a regx are in a string