|
ATLAS Offline Software
|
Go to the documentation of this file.
8 #include "GaudiKernel/SmartDataPtr.h"
14 static const InterfaceID
15 IID_TBCONDRUNPAR_TBCondRunParTool(
"TBCondRunParTool",1,0);
18 const std::string&
name,
const IInterface*
parent)
20 m_crun(-1),m_cevent(-1),m_runpfolder(
"")
22 declareInterface<TBCondRunParTool>(
this);
30 {
return IID_TBCONDRUNPAR_TBCondRunParTool; }
36 "RunParams will be read from folder: " <<
m_runpfolder <<
37 " in COOL database" );
39 return StatusCode::SUCCESS;
44 return StatusCode::SUCCESS;
49 const EventContext& ctx = Gaudi::Hive::currentContext();
50 int run = ctx.eventID().run_number();
51 int event = ctx.eventID().event_number();
73 int& ncol,
int& nrow, std::vector<std::string>&
names,
74 std::vector<std::string>&
rows)
const {
82 bool iret =
extractCoolTest(std::string(
"/TILE/DCS/TILE_LV_62/BEAM"), 0);
85 ATH_MSG_DEBUG (
"extractCoolTest: /TILE/DCS/TILE_LV_62/BEAM failed !" );
86 return StatusCode::SUCCESS;
90 const std::vector<std::string>&
names,
91 const std::vector<std::string>&
rows,
92 const std::string&
name,
int&
ival)
const {
98 found=StatusCode::SUCCESS;
106 const std::vector<std::string>&
names,
107 const std::vector<std::string>&
rows,
108 const std::string&
name,
float& fval)
const {
114 found=StatusCode::SUCCESS;
122 const std::vector<std::string>&
names,
123 const std::vector<std::string>&
rows,
124 const std::string&
name,std::string& sval)
const {
130 found=StatusCode::SUCCESS;
138 const std::vector<std::string>&
rows)
const {
149 for (;
it != last; ++
it) {
150 if(chnum == (*it).first) {
152 fval = (*it).second[0].data<
float>();
153 found = StatusCode::SUCCESS;
154 ATH_MSG_DEBUG (
"chnum: "<<chnum<<
" chan, attr: " << (*it).first <<
" fval: "<<fval);
176 m_det_mask=(*atrlist)[
"detector_mask"].data<
int>();
179 m_file_tag=(*atrlist)[
"filename_tag"].data<std::string>();
181 ldata=(*atrlist)[
"timeSOR"].data<
int>();
182 std::ostringstream timeSOR;
def retrieve(aClass, aKey=None)
const_iterator end() const
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 > &t)
int run(int argc, char *argv[])
const_iterator begin() const
Access to Chan/AttributeList pairs via iterators.
This class is a collection of AttributeLists where each one is associated with a channel number....
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
void dump() const
Dump our contents to std::cout.
POOL::TEvent event(POOL::TEvent::kClassAccess)
::StatusCode StatusCode
StatusCode definition for legacy code.
An AttributeList represents a logical row of attributes in a metadata table. The name and type of eac...
double atof(std::string_view str)
Converts a string into a double / float.
ChanAttrListMap::const_iterator const_iterator
int atoi(std::string_view str)
Helper functions to unpack numbers decoded in string into integers and doubles The strings are requir...