|
ATLAS Offline Software
|
Go to the documentation of this file.
22 const std::string&
name,
25 m_DataLocation (
"keyTGC"),
26 m_ASD2PP_DIFF_12(nullptr)
28 declareInterface<ITGCCablingDbTool>(
this);
41 const EventContext& ) {
43 const std::string&
key = tad->
name();
47 return StatusCode::SUCCESS;
51 return StatusCode::FAILURE;
56 return StatusCode::SUCCESS;
66 return StatusCode::SUCCESS;
89 std::list<std::string>::const_iterator itr =
keys.begin();
90 std::list<std::string>::const_iterator itr_e =
keys.end();
91 for(; itr!=itr_e; ++itr) {
92 ATH_MSG_INFO(
"loadParameters " << (*itr) <<
" I=" <<
I <<
" ");
105 ATH_MSG_INFO(
"m_readASD2PP_DIFF_12FromText is true. readASD2PP_DIFF_12FromText() will be executed with m_filename=" <<
m_filename.c_str());
121 ATH_MSG_INFO(
"CondAttrListCollection from DB folder have been obtained with size " << atrc->
size());
132 for(; itr!=itr_e; ++itr) {
135 std::string string_ASD2PP_DIFF_12;
136 string_ASD2PP_DIFF_12 = *(
static_cast<const std::string*
>((atr[
"data"]).addressOfData()));
137 ATH_MSG_DEBUG(
"Sequence load is \n" << string_ASD2PP_DIFF_12);
140 unsigned int length = string_ASD2PP_DIFF_12.length();
142 unsigned int newLine = string_ASD2PP_DIFF_12.find(
'\n');
145 string_ASD2PP_DIFF_12.erase(0, newLine+1);
147 length = string_ASD2PP_DIFF_12.length();
151 return StatusCode::SUCCESS;
161 return StatusCode::FAILURE;
165 std::ifstream inASDToPP;
166 inASDToPP.open(location.c_str());
167 if(inASDToPP.bad()) {
169 return StatusCode::FAILURE;
172 ATH_MSG_INFO(
"readTGCMap found file " << location.c_str());
179 unsigned int nLines = 0;
182 while(getline(inASDToPP, buf)){
188 return StatusCode::SUCCESS;
const_iterator end() const
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
static std::string find_file(const std::string &logical_file_name, const std::string &search_path, SearchType search_type=LocalSearch)
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
const_iterator begin() const
Access to Chan/AttributeList pairs via iterators.
#define IOVSVC_CALLBACK_ARGS_P(I, K)
short hand for IOVSvc call back argument list, to be used when access to formal arguments is needed,...
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.
const std::string & name() const
Get the primary (hashed) SG key.
::StatusCode StatusCode
StatusCode definition for legacy code.
CLID clID() const
Retrieve string key:
uint32_t CLID
The Class ID type.
size_type size() const
number of Chan/AttributeList pairs
ChanAttrListMap::const_iterator const_iterator