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 144 of file FixLArElecCalib.h.
148 const T * container_c =
nullptr;
151 T* container =
const_cast<T*
>(container_c);
153 typedef typename T::LArCondObj CONDOBJ ;
155 for (
int i=0;
i<2;++
i)
159 if ( em_filename ==
"") continue ;
165 if ( hec_filename ==
"") continue ;
172 if (withGain)
ngain=3;
182 const CONDOBJ&
u = container->get(hid,
igain);
188 set_object(
t,(*it).second) ;
189 container->setPdata(hid,
t,
igain);
193 print_object(
" Old object = ",
u);
195 CONDOBJ& u2 =
const_cast<CONDOBJ&
>(
u);
196 set_object(u2,(*it).second) ;
199 const CONDOBJ& u3 = container->get(hid,
igain);
200 print_object(
" New object = ",u3);
209 ATH_MSG_INFO(
" done with EM "<<em_filename<<
" and HEC" <<hec_filename );
210 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 215 of file FixLArElecCalib.h.
219 const T * container_c =
nullptr;
222 T* container =
const_cast<T*
>(container_c);
224 typedef typename T::LArCondObj CONDOBJ ;
230 if (withGain)
ngain=3;
236 for( ;
it!=it_e;++
it) {
244 const CONDOBJ&
u = container->get(hid,
igain);
249 set_object(
t,(*it).second) ;
250 container->setPdata(hid,
t,
igain);
252 print_object(
" Old object = ",
u);
254 CONDOBJ& u2 =
const_cast<CONDOBJ&
>(
u);
255 set_object(u2,(*it).second) ;
258 const CONDOBJ& u3 = container->get(hid,
igain);
259 print_object(
" New object = ",u3);
268 return StatusCode::SUCCESS;