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 148 of file FixLArElecCalib.h.
152 const T * container_c =
nullptr;
155 T* container =
const_cast<T*
>(container_c);
157 typedef typename T::LArCondObj CONDOBJ ;
159 for (
int i=0;
i<2;++
i)
163 if ( em_filename ==
"") continue ;
169 if ( hec_filename ==
"") continue ;
176 if (withGain)
ngain=3;
186 const CONDOBJ&
u = container->get(hid,
igain);
192 set_object(
t,(*it).second) ;
193 container->setPdata(hid,
t,
igain);
197 print_object(
" Old object = ",
u);
199 CONDOBJ& u2 =
const_cast<CONDOBJ&
>(
u);
200 set_object(u2,(*it).second) ;
203 const CONDOBJ& u3 = container->get(hid,
igain);
204 print_object(
" New object = ",u3);
213 ATH_MSG_INFO(
" done with EM "<<em_filename<<
" and HEC" <<hec_filename );
214 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 219 of file FixLArElecCalib.h.
223 const T * container_c =
nullptr;
226 T* container =
const_cast<T*
>(container_c);
228 typedef typename T::LArCondObj CONDOBJ ;
234 if (withGain)
ngain=3;
240 for( ;
it!=it_e;++
it) {
248 const CONDOBJ&
u = container->get(hid,
igain);
253 set_object(
t,(*it).second) ;
254 container->setPdata(hid,
t,
igain);
256 print_object(
" Old object = ",
u);
258 CONDOBJ& u2 =
const_cast<CONDOBJ&
>(
u);
259 set_object(u2,(*it).second) ;
262 const CONDOBJ& u3 = container->get(hid,
igain);
263 print_object(
" New object = ",u3);
272 return StatusCode::SUCCESS;