|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef FIXLARELECCALIB_H
6 #define FIXLARELECCALIB_H
87 bool withGain,
int nvar);
139 typedef std::pair<HWIdentifier,std::vector<float> >
ROW_t ;
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;
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;
274 #endif // FixLArElecCalib
StatusCode fix6 ATLAS_NOT_THREAD_SAFE(const LArOnOffIdMapping *cabling)
def retrieve(aClass, aKey=None)
JetConstituentVector::iterator iterator
virtual StatusCode finalize() override
StatusCode ReadFileAll(const std::string &filename, const LArOnOffIdMapping *cabling, bool withGain, int nvar)
StatusCode fix9 ATLAS_NOT_THREAD_SAFE(const LArOnOffIdMapping *cabling)
StatusCode fix17 ATLAS_NOT_THREAD_SAFE(const LArOnOffIdMapping *cabling)
StatusCode updateMinBias ATLAS_NOT_THREAD_SAFE(const std::string &filename, const LArOnOffIdMapping *cabling)
StatusCode fix7 ATLAS_NOT_THREAD_SAFE(const LArOnOffIdMapping *cabling)
StatusCode fix16 ATLAS_NOT_THREAD_SAFE()
virtual StatusCode initialize() override
Persistent data for LArRamp Copied from LAr.
Helper class for LArFCAL offline identifiers for supercells.
c-struct reproducing the structure of the persistent data
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)
Helper class for LArHEC offline identifiers.
virtual ~FixLArElecCalib()=default
const LArOnline_SuperCellID * m_sonline_idhelper
StatusCode fix10 ATLAS_NOT_THREAD_SAFE(const LArOnOffIdMapping *cabling)
const LArHEC_ID * m_hec_idhelper
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
const LArFCAL_ID * m_fcal_idhelper
bool is_valid() const
Check if id is in a valid state.
@ u
Enums for curvilinear frames.
const LArHEC_SuperCell_ID * m_shec_idhelper
const LArFCAL_SuperCell_ID * m_sfcal_idhelper
StatusCode updateEMfSampl ATLAS_NOT_THREAD_SAFE(const std::string &filename, const LArOnOffIdMapping *cabling)
Helper class for LArEM offline identifiers for supercells.
fix electronic calibration constants for MC.
StatusCode updateHADfSampl ATLAS_NOT_THREAD_SAFE(const LArOnOffIdMapping *cabling)
const LArEM_ID * m_em_idhelper
Helper class for offline supercell identifiers.
const LArEM_SuperCell_ID * m_sem_idhelper
::StatusCode StatusCode
StatusCode definition for legacy code.
c-struct reproducing the structure of the persistent data
StatusCode fix5 ATLAS_NOT_THREAD_SAFE(const LArOnOffIdMapping *cabling)
StatusCode fix4 ATLAS_NOT_THREAD_SAFE(const LArOnOffIdMapping *cabling)
const LArOnlineID * m_online_idhelper
StatusCode fix15 ATLAS_NOT_THREAD_SAFE()
StatusCode updateEM_DACuAMeV ATLAS_NOT_THREAD_SAFE(const std::string &filename, const LArOnOffIdMapping *cabling)
StatusCode fix14(const LArOnOffIdMapping *cabling)
void set_object(LArNoiseMC::LArCondObj &obj, const std::vector< float > &v)
virtual StatusCode execute() override
StatusCode fix11 ATLAS_NOT_THREAD_SAFE(const LArOnOffIdMapping *cabling)
StatusCode update_EM_HEC ATLAS_NOT_THREAD_SAFE(const std::string &em_filename, const std::string &hec_filename, const LArOnOffIdMapping *cabling, bool withGain, int nvar)
void print_object(const std::string &msg, const LArNoiseMC::LArCondObj &obj)
FixLArElecCalib(const std::string &name, ISvcLocator *pSvcLocator)
virtual StatusCode stop ATLAS_NOT_THREAD_SAFE() override
StatusCode fix3 ATLAS_NOT_THREAD_SAFE(const LArOnOffIdMapping *cabling)
StatusCode fix2(const LArOnOffIdMapping *cabling)
std::string getString() const
Provide a string form of the identifier - hexadecimal.
StatusCode fix13(const LArOnOffIdMapping *cabling)
#define ATH_MSG_WARNING(x)
Helper class for LArHEC offline identifiers for supercells.
StatusCode fix18(const LArCalibLineMapping *clmap)
std::pair< HWIdentifier, std::vector< float > > ROW_t
std::vector< ROW_t > VROW_t
StatusCode fix1(const LArOnOffIdMapping *cabling)
StatusCode ReadFile(const std::string &filename, const LArOnOffIdMapping *cabling, bool EM, bool withGain, int nvar)
StatusCode addMphysOverMcal(const LArOnOffIdMapping *cabling)
StatusCode update_DAC2uA(const std::string &em_filename, const std::string &hec_filename)
Helper class for LArEM offline identifiers.
StatusCode fix12(const LArOnOffIdMapping *cabling)
SG::ReadCondHandleKey< LArCalibLineMapping > m_CLKey
Define macros for attributes used to control the static checker.
Helper class for LArFCAL offline identifiers.
StatusCode fixDACuAMeV ATLAS_NOT_THREAD_SAFE()
StatusCode update_All ATLAS_NOT_THREAD_SAFE(const std::string &filename, const LArOnOffIdMapping *cabling, bool withGain, int nvar)
StatusCode fix8 ATLAS_NOT_THREAD_SAFE(const LArOnOffIdMapping *cabling)
const CaloCell_SuperCell_ID * m_scell_idhelper