ATLAS Offline Software
CaloCellCalcEnergyCorr.h
Go to the documentation of this file.
1 
3 /*
4  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 #ifndef CALOCONDPHYSALGS_CALOCELLCALCENERGYCORR_H
8 #define CALOCONDPHYSALGS_CALOCELLCALCENERGYCORR_H 1
9 // FrameWork includes
11 
21 
22 
24 {
25 
27  // Public methods:
29  public:
30 
31  // Copy constructor:
32 
34  CaloCellCalcEnergyCorr( const std::string& name, ISvcLocator* pSvcLocator );
35 
38 
39  // Athena algorithm's Hooks
40  virtual StatusCode initialize() override;
41  virtual StatusCode execute() override;
42  virtual StatusCode finalize() override;
43  virtual StatusCode stop() override;
44 
45 private:
46  struct HVData;
47 
48  // Properties
49  std::string m_folder;
50  std::vector<int> m_calosample; // which CaloSamples to be filled (numbers from CaloSample enum in CaloCell_Base_ID
51  std::vector<float> m_value; // value to fill for every sample
52  std::vector<int> m_hvlines; // which hvlines should be changed in addition
53  std::vector<float> m_hvvalue; // value to fill for every hvline
54 
56  {this, "LArHVIdMapping", "LArHVIdMap", "SG key for HV ID mapping"};
58  { this, "DCSFolderNames", {"/LAR/DCS/HV/BARREl/I16", "/LAR/DCS/HV/BARREL/I8"},
59  "DCS folders with HV values"};
61  {this, "CaloDetDescrManager", "CaloDetDescrManager", "SG Key for CaloDetDescrManager in the Condition Store" };
62 
63  // Private members
67 
68  std::vector<int> GetHVLines(const HVData& hvdata, const Identifier& id, const CaloDetDescrManager* caloMgr) ;
69 };
70 
71 #endif //> !CALOCONDPHYSALGS_CALOCELLCALCENERGYCORR_H
CaloCellCalcEnergyCorr::execute
virtual StatusCode execute() override
Definition: CaloCellCalcEnergyCorr.cxx:125
LArEM_ID.h
CondAttrListCollection.h
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
CaloCellCalcEnergyCorr::m_folder
std::string m_folder
Definition: CaloCellCalcEnergyCorr.h:46
LArHEC_ID
Helper class for LArHEC offline identifiers.
Definition: LArHEC_ID.h:85
CaloCellCalcEnergyCorr::initialize
virtual StatusCode initialize() override
Definition: CaloCellCalcEnergyCorr.cxx:93
SG::HandleKeyArray
Definition: StoreGate/StoreGate/HandleKeyArray.h:38
CaloCellCalcEnergyCorr::m_hvlines
std::vector< int > m_hvlines
Definition: CaloCellCalcEnergyCorr.h:52
LArHEC_ID.h
CaloCellCalcEnergyCorr::m_hvvalue
std::vector< float > m_hvvalue
Definition: CaloCellCalcEnergyCorr.h:53
CaloDetDescrManager.h
Definition of CaloDetDescrManager.
CaloCellCalcEnergyCorr::m_hvCablingKey
SG::ReadCondHandleKey< LArHVIdMapping > m_hvCablingKey
Definition: CaloCellCalcEnergyCorr.h:56
CaloCellCalcEnergyCorr::m_value
std::vector< float > m_value
Definition: CaloCellCalcEnergyCorr.h:51
AthAlgorithm.h
CaloCellCalcEnergyCorr::m_larfcal_id
const LArFCAL_ID * m_larfcal_id
Definition: CaloCellCalcEnergyCorr.h:66
CaloCellCalcEnergyCorr::stop
virtual StatusCode stop() override
Definition: CaloCellCalcEnergyCorr.cxx:130
CaloCellCalcEnergyCorr::~CaloCellCalcEnergyCorr
virtual ~CaloCellCalcEnergyCorr()
Destructor:
Identifier
Definition: DetectorDescription/Identifier/Identifier/Identifier.h:32
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
LArHVIdMapping.h
CondHandleKeyArray.h
AthAlgorithm
Definition: AthAlgorithm.h:47
ReadCondHandleKey.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
CaloCellCalcEnergyCorr::m_DCSFolderKeys
SG::ReadCondHandleKeyArray< CondAttrListCollection > m_DCSFolderKeys
Definition: CaloCellCalcEnergyCorr.h:58
CaloCellCalcEnergyCorr::HVData
Definition: CaloCellCalcEnergyCorr.cxx:42
SG::ReadCondHandleKey< LArHVIdMapping >
LArFCAL_ID.h
CaloCellCalcEnergyCorr::m_calosample
std::vector< int > m_calosample
Definition: CaloCellCalcEnergyCorr.h:50
CaloDetDescrManager
This class provides the client interface for accessing the detector description information common to...
Definition: CaloDetDescrManager.h:473
CaloCellCalcEnergyCorr::m_caloMgrKey
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey
Definition: CaloCellCalcEnergyCorr.h:61
CaloIdManager.h
CaloCellCalcEnergyCorr::finalize
virtual StatusCode finalize() override
Definition: CaloCellCalcEnergyCorr.cxx:120
LArEM_ID
Helper class for LArEM offline identifiers.
Definition: LArEM_ID.h:118
CaloCellCalcEnergyCorr
Definition: CaloCellCalcEnergyCorr.h:24
CaloCellCalcEnergyCorr::GetHVLines
std::vector< int > GetHVLines(const HVData &hvdata, const Identifier &id, const CaloDetDescrManager *caloMgr)
Definition: CaloCellCalcEnergyCorr.cxx:238
LArFCAL_ID
Helper class for LArFCAL offline identifiers.
Definition: LArFCAL_ID.h:60
CaloCellCalcEnergyCorr::CaloCellCalcEnergyCorr
CaloCellCalcEnergyCorr(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Definition: CaloCellCalcEnergyCorr.cxx:70
CaloCellCalcEnergyCorr::m_larhec_id
const LArHEC_ID * m_larhec_id
Definition: CaloCellCalcEnergyCorr.h:65
CaloCellCalcEnergyCorr::m_larem_id
const LArEM_ID * m_larem_id
Definition: CaloCellCalcEnergyCorr.h:64