14 ISvcLocator* pSvcLocator) :
26 ATH_MSG_INFO(
"DCS conditions data folders to be read as AthenaAttributeList (single channel)");
27 for (std::vector<std::string>::const_iterator itr=
m_par_atrlist.begin();
29 ATH_MSG_INFO(
"DCS conditions data folders to be read as CondAttrListCollection (multichannel)");
33 return StatusCode::SUCCESS;
38 int time=ctx.eventID().time_stamp();
39 ATH_MSG_INFO(
"In run/event [" << ctx.eventID().run_number() <<
40 "," << ctx.eventID().event_number() <<
"] timestamp " << time);
42 time_t ttime=
static_cast<time_t
>(time);
45 ATH_MSG_INFO(
"Timestamp UTC: " << asctime_r(gmtime_r(&ttime, &tm), tmbuf));
49 for (std::vector<std::string>::const_iterator itr=
m_par_atrlist.begin();
51 if (StatusCode::SUCCESS==
detStore()->retrieve(atrlist,*itr)) {
56 std::ostringstream atrstring;
57 atrlist->
print(atrstring);
69 if (StatusCode::SUCCESS==
detStore()->retrieve(atrlistcol,*itr)) {
72 citr!=atrlistcol->
end();++citr) {
77 std::ostringstream atrstring;
78 (*citr).second.toOutputStream(atrstring);
83 ATH_MSG_INFO(
"Could not retrieve CondAttrListCollection " << *itr);
86 return StatusCode::SUCCESS;
91 return StatusCode::SUCCESS;
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
const ServiceHandle< StoreGateSvc > & detStore() const
An algorithm that can be simultaneously executed in multiple threads.
An AttributeList represents a logical row of attributes in a metadata table.
void print(std::ostream &os) const
print to simulate function provided by old POOL AttributeList
This class is a collection of AttributeLists where each one is associated with a channel number.
const_iterator end() const
const_iterator begin() const
Access to Chan/AttributeList pairs via iterators.
ChanAttrListMap::const_iterator const_iterator
virtual StatusCode finalize() override
virtual StatusCode execute(const EventContext &ctx) const override
std::vector< std::string > m_par_atrcollist
virtual ~IOVDbTestCoolDCS()
IOVDbTestCoolDCS(const std::string &name, ISvcLocator *pSvcLocator)
virtual StatusCode initialize() override
std::vector< std::string > m_par_atrlist