ATLAS Offline Software
LArHVCorrectionMonAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
12 #ifndef LARMONITORING_LARHVCORRECTIONMONALG_H
13 #define LARMONITORING_LARHVCORRECTIONMONALG_H
14 
20 #include "CaloDetDescr/CaloDetDescrElement.h"
23 
28 
29 #include <string>
30 #include <map>
31 #include <mutex>
32 #include <set>
33 
34 class LArOnlineID;
36 
37 
39 {
40  public:
41  LArHVCorrectionMonAlg(const std::string& name, ISvcLocator* pSvcLocator);
42 
44  virtual ~LArHVCorrectionMonAlg() = default;
45 
47  virtual StatusCode initialize() override final;
48 
50  virtual StatusCode fillHistograms(const EventContext& ctx) const override final;
51 
52  private:
53 
54  // Properties
55  Gaudi::Property<std::string> m_MonGroupName {this, "HVCorrMonGroupName","LArHVCorrMonGroup"};
56  Gaudi::Property<float> m_threshold{this, "ErrorThreshold", 0.02};
57  Gaudi::Property<float> m_delta_eta{this, "EtaGranularity", 0.01};
58  Gaudi::Property<float> m_delta_phi{this, "PhiGranularity", 0.01};
59  Gaudi::Property<int> m_nlumi_blocks{this, "NumberOfLBs", 1500};
60 
61  SG::ReadCondHandleKey<LArOnOffIdMapping> m_cablingKey{this,"CablingKey","LArOnOffIdMap","SG Key of LArOnOffIdMapping CDO"};
62  SG::ReadCondHandleKey<ILArHVScaleCorr> m_scaleCorrKey { this, "LArHVScaleCorr", "LArHVScaleCorrRecomputed", "" };
63  SG::ReadCondHandleKey<ILArHVScaleCorr> m_onlineScaleCorrKey { this, "OnlineLArHVScaleCorr", "LArHVScaleCorr", "" };
64  SG::ReadCondHandleKey<CaloDetDescrManager> m_caloMgrKey { this, "CaloDetDescrManager", "CaloDetDescrManager", "SG Key for CaloDetDescrManager in the Condition Store" };
65 
66  // To retrieve bad channel DB keywords
67  int DBflag(HWIdentifier onID);
68 
69  // services
72 
73 };
74 
75 #endif
LArHVCorrectionMonAlg::LArHVCorrectionMonAlg
LArHVCorrectionMonAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: LArHVCorrectionMonAlg.cxx:17
LArHVCorrectionMonAlg::~LArHVCorrectionMonAlg
virtual ~LArHVCorrectionMonAlg()=default
Default destructor.
LArHVCorrectionMonAlg::initialize
virtual StatusCode initialize() override final
Overwrite dummy method from AlgTool.
Definition: LArHVCorrectionMonAlg.cxx:24
CaloDetDescrElement
This class groups all DetDescr information related to a CaloCell. Provides a generic interface for al...
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:66
LArHVCorrectionMonAlg::DBflag
int DBflag(HWIdentifier onID)
LArHVCorrectionMonAlg::m_onlineScaleCorrKey
SG::ReadCondHandleKey< ILArHVScaleCorr > m_onlineScaleCorrKey
Definition: LArHVCorrectionMonAlg.h:63
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:562
LArHVCorrectionMonAlg
Definition: LArHVCorrectionMonAlg.h:39
HWIdentifier
Definition: HWIdentifier.h:13
Property
Support class for PropertyMgr.
Definition: Property.h:23
CaloDetDescrManager.h
Definition of CaloDetDescrManager.
CaloCell_ID.h
LArHVCorrectionMonAlg::m_scaleCorrKey
SG::ReadCondHandleKey< ILArHVScaleCorr > m_scaleCorrKey
Definition: LArHVCorrectionMonAlg.h:62
LArHVCorrectionMonAlg::m_caloIdMgr
const CaloIdManager * m_caloIdMgr
Definition: LArHVCorrectionMonAlg.h:71
AthMonitorAlgorithm
Base class for Athena Monitoring Algorithms.
Definition: AthMonitorAlgorithm.h:36
CaloDetDescriptor.h
Definition of CaloDetDescriptor.
LArOnOffIdMapping.h
CaloIdManager
This class initializes the Calo (LAr and Tile) offline identifiers.
Definition: CaloIdManager.h:45
ILArHVScaleCorr.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthMonitorAlgorithm.h
CaloPhiRange.h
CaloPhiRange class declaration.
LArHVCorrectionMonAlg::m_caloMgrKey
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey
Definition: LArHVCorrectionMonAlg.h:64
LArHVCorrectionMonAlg::m_threshold
Gaudi::Property< float > m_threshold
Definition: LArHVCorrectionMonAlg.h:56
ReadCondHandleKey.h
LArHVCorrectionMonAlg::m_MonGroupName
Gaudi::Property< std::string > m_MonGroupName
Definition: LArHVCorrectionMonAlg.h:55
HWIdentifier.h
private
#define private
Definition: DetDescrConditionsDict_dict_fixes.cxx:13
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
LArHVCorrectionMonAlg::m_cablingKey
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
Definition: LArHVCorrectionMonAlg.h:61
LArOnlineID
Definition: LArOnlineID.h:20
SG::ReadCondHandleKey< LArOnOffIdMapping >
LArHVCorrectionMonAlg::m_LArOnlineIDHelper
const LArOnlineID * m_LArOnlineIDHelper
Definition: LArHVCorrectionMonAlg.h:70
LArHVCorrectionMonAlg::fillHistograms
virtual StatusCode fillHistograms(const EventContext &ctx) const override final
Called each event.
Definition: LArHVCorrectionMonAlg.cxx:47
Gaudi
=============================================================================
Definition: CaloGPUClusterAndCellDataMonitorOptions.h:273
CaloIdManager.h
LArHVCorrectionMonAlg::m_nlumi_blocks
Gaudi::Property< int > m_nlumi_blocks
Definition: LArHVCorrectionMonAlg.h:59
LArOnlineID.h
LArHVCorrectionMonAlg::m_delta_eta
Gaudi::Property< float > m_delta_eta
Definition: LArHVCorrectionMonAlg.h:57
LArHVCorrectionMonAlg::m_delta_phi
Gaudi::Property< float > m_delta_phi
Definition: LArHVCorrectionMonAlg.h:58