145{
146
147
148 const T * container_c = nullptr;
150
151 T*
container =
const_cast<T*
>(container_c);
152
153 typedef typename T::LArCondObj CONDOBJ ;
154
155 for (
int i=0;
i<2;++
i)
156 {
157 if( i==0 )
158 {
159 if ( em_filename == "") continue ;
161 ATH_CHECK( ReadFile(em_filename,cabling,EM,withGain,nvar) );
162 }
163 if( i==1 )
164 {
165 if ( hec_filename == "") continue ;
167 ATH_CHECK( ReadFile(hec_filename,cabling,EM,withGain,nvar) );
168 }
169
170
172 if (withGain)
ngain=3;
174 VROW_t::iterator
it = m_cache[
igain].begin();
175 VROW_t::iterator it_e = m_cache[
igain].end();
176
179 {
181
183
185 {
188 set_object(t,(*it).second) ;
190 }
191 else
192 {
193 print_object(" Old object = ",u);
194
195 CONDOBJ& u2 =
const_cast<CONDOBJ&
>(
u);
196 set_object(u2,(*it).second) ;
197 }
198
199 const CONDOBJ& u3 =
container->get(hid,igain);
200 print_object(" New object = ",u3);
201
203 }
204 ATH_MSG_INFO(
" done for gain ="<<igain<<
" with "<<n<<
" objects");
205
206 }
207 }
208
209 ATH_MSG_INFO(
" done with EM "<<em_filename<<
" and HEC" <<hec_filename );
210 return StatusCode::SUCCESS;
211}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_WARNING(x)
@ u
Enums for curvilinear frames.
retrieve(aClass, aKey=None)