ATLAS Offline Software
Loading...
Searching...
No Matches
FixLArElecSCCalib.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef FIXLARELECSCCALIB_H
6#define FIXLARELECSCCALIB_H
7
15
16#include <string>
17
20
23
24// class to collect fixes, needed for SuperCells conditions
25// mainly to record, what was done, and as example, if other problems will need a fix
27{
28 public:
29 FixLArElecSCCalib(const std::string& name,ISvcLocator* pSvcLocator);
30 virtual ~FixLArElecSCCalib();
31
32 virtual StatusCode initialize() override;
33 virtual StatusCode execute() override;
34 virtual StatusCode finalize() override {return StatusCode::SUCCESS;}
35 virtual StatusCode stop() override;
36
37 void print (const HWIdentifier& hwid, const LArOnlineID_Base* onlineID, const CaloCell_Base_ID* caloCellID,
38 const Identifier *id = nullptr, std::vector<HWIdentifier>* calibIDs=nullptr,std::ostream& out=std::cout);
39
40 StatusCode fix1();
41 StatusCode fix2(const LArOnOffIdMapping *cabling, const LArCalibLineMapping *cl);
42 StatusCode fix3(const LArOnOffIdMapping *cabling, const LArMCSym *sym);
43
44 private:
45
46 SG::ReadCondHandleKey<LArOnOffIdMapping> m_cablingKeySC{this,"SCCablingKey","LArOnOffIdMapSC","SG Key of SC LArOnOffIdMapping object"};
47 SG::ReadCondHandleKey<LArCalibLineMapping> m_CLKeySC{this, "SCCalibLineKey", "LArCalibLineMapSC", "SG calib line key"};
49 { this, "MCSymKey", "LArMCSym", "SG Key of LArMCSym object" };
50
51
52 DoubleProperty m_fixFactor{this, "FixFactor", 0.0, "which factor to apply"};
53 IntegerProperty m_fixFlag{this, "FixFlag", 1, "which fix to run"} ;
54 StringProperty m_infile{this, "InputFile", "", "which file to read"};
55
61};
62
63#endif // FixLArElecSCCalib
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Helper base class for offline cell identifiers.
Helper class for offline supercell identifiers.
SG::ReadCondHandleKey< LArCalibLineMapping > m_CLKeySC
StatusCode fix2(const LArOnOffIdMapping *cabling, const LArCalibLineMapping *cl)
const LArHEC_SuperCell_ID * m_shec_idhelper
const LArEM_SuperCell_ID * m_sem_idhelper
const LArFCAL_SuperCell_ID * m_sfcal_idhelper
virtual StatusCode initialize() override
DoubleProperty m_fixFactor
virtual StatusCode execute() override
const CaloCell_SuperCell_ID * m_scell_idhelper
IntegerProperty m_fixFlag
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKeySC
virtual StatusCode finalize() override
FixLArElecSCCalib(const std::string &name, ISvcLocator *pSvcLocator)
SG::ReadCondHandleKey< LArMCSym > m_mcSymKey
virtual StatusCode stop() override
void print(const HWIdentifier &hwid, const LArOnlineID_Base *onlineID, const CaloCell_Base_ID *caloCellID, const Identifier *id=nullptr, std::vector< HWIdentifier > *calibIDs=nullptr, std::ostream &out=std::cout)
StatusCode fix3(const LArOnOffIdMapping *cabling, const LArMCSym *sym)
const LArOnline_SuperCellID * m_sonline_idhelper
StringProperty m_infile
Helper class for LArEM offline identifiers for supercells.
Helper class for LArFCAL offline identifiers for supercells.
Helper class for LArHEC offline identifiers for supercells.
Helper class to handle z-phi symmetry of calibration constants in MC.
Definition LArMCSym.h:19
Helper for the Liquid Argon Calorimeter cell identifiers.