Go to the source code of this file.
◆ ATLAS_NOT_THREAD_SAFE() [1/2]
template<class T >
StatusCode FixLArElecCalib::update_EM_HEC ATLAS_NOT_THREAD_SAFE |
( |
const std::string & |
em_filename, |
|
|
const std::string & |
hec_filename, |
|
|
const LArOnOffIdMapping * |
cabling, |
|
|
bool |
withGain, |
|
|
int |
nvar |
|
) |
| |
Definition at line 147 of file FixLArElecCalib.h.
151 const T * container_c =
nullptr;
154 T* container =
const_cast<T*
>(container_c);
156 typedef typename T::LArCondObj CONDOBJ ;
158 for (
int i=0;
i<2;++
i)
162 if ( em_filename ==
"") continue ;
168 if ( hec_filename ==
"") continue ;
175 if (withGain)
ngain=3;
185 const CONDOBJ&
u = container->get(hid,
igain);
191 set_object(
t,(*it).second) ;
192 container->setPdata(hid,
t,
igain);
196 print_object(
" Old object = ",
u);
198 CONDOBJ& u2 =
const_cast<CONDOBJ&
>(
u);
199 set_object(u2,(*it).second) ;
202 const CONDOBJ& u3 = container->get(hid,
igain);
203 print_object(
" New object = ",u3);
212 ATH_MSG_INFO(
" done with EM "<<em_filename<<
" and HEC" <<hec_filename );
213 return StatusCode::SUCCESS;
◆ ATLAS_NOT_THREAD_SAFE() [2/2]
template<class T >
StatusCode FixLArElecCalib::update_All ATLAS_NOT_THREAD_SAFE |
( |
const std::string & |
filename, |
|
|
const LArOnOffIdMapping * |
cabling, |
|
|
bool |
withGain, |
|
|
int |
nvar |
|
) |
| |
Definition at line 218 of file FixLArElecCalib.h.
222 const T * container_c =
nullptr;
225 T* container =
const_cast<T*
>(container_c);
227 typedef typename T::LArCondObj CONDOBJ ;
233 if (withGain)
ngain=3;
239 for( ;
it!=it_e;++
it) {
247 const CONDOBJ&
u = container->get(hid,
igain);
252 set_object(
t,(*it).second) ;
253 container->setPdata(hid,
t,
igain);
255 print_object(
" Old object = ",
u);
257 CONDOBJ& u2 =
const_cast<CONDOBJ&
>(
u);
258 set_object(u2,(*it).second) ;
261 const CONDOBJ& u3 = container->get(hid,
igain);
262 print_object(
" New object = ",u3);
271 return StatusCode::SUCCESS;