|
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)
21 declareInterface<TBCondRunParTool>(
this);
29 {
return IID_TBCONDRUNPAR_TBCondRunParTool; }
35 "RunParams will be read from folder: " <<
m_runpfolder <<
36 " in COOL database" );
38 return StatusCode::SUCCESS;
43 return StatusCode::SUCCESS;
48 const EventContext& ctx = Gaudi::Hive::currentContext();
49 int run = ctx.eventID().run_number();
50 int event = ctx.eventID().event_number();
72 int& ncol,
int& nrow, std::vector<std::string>&
names,
73 std::vector<std::string>&
rows)
const {
81 bool iret =
extractCoolTest(std::string(
"/TILE/DCS/TILE_LV_62/BEAM"), 0);
84 ATH_MSG_DEBUG (
"extractCoolTest: /TILE/DCS/TILE_LV_62/BEAM failed !" );
85 return StatusCode::SUCCESS;
89 const std::vector<std::string>&
names,
90 const std::vector<std::string>&
rows,
91 const std::string&
name,
int&
ival)
const {
97 found=StatusCode::SUCCESS;
105 const std::vector<std::string>&
names,
106 const std::vector<std::string>&
rows,
107 const std::string&
name,
float& fval)
const {
113 found=StatusCode::SUCCESS;
121 const std::vector<std::string>&
names,
122 const std::vector<std::string>&
rows,
123 const std::string&
name,std::string& sval)
const {
129 found=StatusCode::SUCCESS;
137 const std::vector<std::string>&
rows)
const {
148 for (;
it != last; ++
it) {
149 if(chnum == (*it).first) {
151 fval = (*it).second[0].data<
float>();
152 found = StatusCode::SUCCESS;
153 ATH_MSG_DEBUG (
"chnum: "<<chnum<<
" chan, attr: " << (*it).first <<
" fval: "<<fval);
175 m_det_mask=(*atrlist)[
"detector_mask"].data<
int>();
178 m_file_tag=(*atrlist)[
"filename_tag"].data<std::string>();
180 ldata=(*atrlist)[
"timeSOR"].data<
int>();
181 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...