137{
138
139
140 const T * container_c = nullptr;
141 ATH_CHECK( detStore()->retrieve(container_c) );
142
143 T*
container =
const_cast<T*
>(container_c);
144
145 typedef typename T::LArCondObj CONDOBJ ;
146
147 for (
int i=0;
i<2;++
i)
148 {
149 if( i==0 )
150 {
151 if ( em_filename == "") continue ;
153 ATH_CHECK( ReadFile(em_filename,cabling,EM,withGain,nvar) );
154 }
155 if( i==1 )
156 {
157 if ( hec_filename == "") continue ;
159 ATH_CHECK( ReadFile(hec_filename,cabling,EM,withGain,nvar) );
160 }
161
162
164 if (withGain)
ngain=3;
168
171 {
173
175
177 {
180 set_object(t,(*it).second) ;
182 }
183 else
184 {
185 print_object(" Old object = ",u);
186
187 CONDOBJ& u2 =
const_cast<CONDOBJ&
>(
u);
188 set_object(u2,(*it).second) ;
189 }
190
191 const CONDOBJ& u3 =
container->get(hid,igain);
192 print_object(" New object = ",u3);
193
195 }
196 ATH_MSG_INFO(
" done for gain ="<<igain<<
" with "<<n<<
" objects");
197
198 }
199 }
200
201 ATH_MSG_INFO(
" done with EM "<<em_filename<<
" and HEC" <<hec_filename );
202 return StatusCode::SUCCESS;
203}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_WARNING(x)
const SG::AuxVectorData * container() const
Return the container holding this element.
@ u
Enums for curvilinear frames.
std::unique_ptr< IIntersectionCache > m_cache