ATLAS Offline Software
Loading...
Searching...
No Matches
LArCoverageAlg.h
Go to the documentation of this file.
1
2/*
3 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
4*/
5
11
12#ifndef LARMONITORING_LARCOVERAGEALG_H
13#define LARMONITORING_LARCOVERAGEALG_H
14
17
18
25
33
34
35class LArEM_ID;
37
38
40{
41 public:
42 LArCoverageAlg( const std::string& name, ISvcLocator* pSvcLocator );
43
45 virtual ~LArCoverageAlg();
46
48 virtual StatusCode initialize() override;
49
51 virtual StatusCode fillHistograms( const EventContext& ctx ) const override;
52
53
54
55 private:
56
58 public:
59 LArChanHelp(int chan=-1,int ft_slot=-100,int sampling=-1,double eta=-100,double phi=-100): m_channelNumber(chan), m_channelFtSlot(ft_slot), m_channelSampling(sampling), m_channelEta(eta), m_channelPhi(phi) {};
61
63 int getChNumber() const { return m_channelNumber; };
64 int getChFtSlot() const { return m_channelFtSlot; };
65 int getChSampling() const { return m_channelSampling; };
66 double getChEta() const { return m_channelEta; };
67 double getChPhi() const { return m_channelPhi; };
68
69 private:
75 };
76
82
83
85 SG::ReadCondHandleKey<LArOnOffIdMapping> m_cablingKey{this,"CablingKey","LArOnOffIdMap","SG Key of LArOnOffIdMapping object"};
86
88 SG::ReadCondHandleKey<CaloNoise> m_noiseCDOKey{this,"CaloNoiseKey","electronicNoiseNoHV","SG Key of CaloNoise data object"};
89
91 Gaudi::Property<std::vector<std::string> > m_problemsToMask{this,"ProblemsToMask",{}, "Bad-Channel categories to mask"};
93
94 SG::ReadHandleKey<LArRawChannelContainer> m_rawChannelsKey{this, "LArRawChannelKey", "LArRawChannels", "SG Key of raw channels"};
95 SG::ReadCondHandleKey<LArBadChannelCont> m_BCKey{this, "BadChanKey", "LArBadChannel", "SG bad channels key"};
96 SG::ReadCondHandleKey<LArBadFebCont> m_BFKey{this, "MFKey", "LArBadFeb", "SG missing FEBs key"};
97 SG::ReadCondHandleKey<CaloDetDescrManager> m_caloMgrKey{this, "CaloDetDescrManager", "CaloDetDescrManager", "SG Key for CaloDetDescrManager in the Condition Store" };
98
99
101 int DBflag(HWIdentifier,const LArBadChannelCont*) const;
102
104 Gaudi::Property<EventContext::ContextEvt_t> m_nevents {this,"Nevents",50};
105 Gaudi::Property<int> m_Nchannels {this,"Nchannels",128};
106 Gaudi::Property<int> m_Nsample {this,"Nsample",4};
107 Gaudi::Property<int> m_NftEMB {this,"NftEMB",32};
108 Gaudi::Property<int> m_NslotEMB {this,"NslotEMB",14};
109 Gaudi::Property<int> m_NftEMEC {this,"NftEMEC",25};
110 Gaudi::Property<int> m_NslotEMEC {this,"NslotEMEC",15};
111 Gaudi::Property<int> m_NftHEC {this,"NftHEC",25};
112 Gaudi::Property<int> m_NslotHEC {this,"NslotHEC",15};
113 Gaudi::Property<int> m_NftFCAL {this,"NftFCAL",25};
114 Gaudi::Property<int> m_NslotFCAL {this,"NslotFCAL",15};
115 Gaudi::Property<int> m_NphiBinsEMB1 {this,"NphiBinsEMB1",256};
116 Gaudi::Property<int> m_NphiBinsEMEC2 {this,"NphiBinsEMEC2",256};
117 Gaudi::Property<std::vector<int> > m_NphiBinsHEC {this,"NphiBinsHEC",{64,64,64,64}};
118
119
120 Gaudi::Property<std::string> m_CaloNoiseToolGroupName {this,"CaloNoiseToolGroupName","CaloNoise"};
121 Gaudi::Property<std::string> m_BadChannelsGroupName {this,"BadChannelsGroupName","BadChannels"};
122 Gaudi::Property<std::string> m_CoverageHWGroupName {this,"CoverageHWGroupName","CoverageHW"};
123 Gaudi::Property< std::vector<std::string> > m_CoverageBarrelPartitions {this, "CoverageBarrelPartitions", {"EMBA","EMBC"}};
124 Gaudi::Property< std::vector<std::string> > m_CoverageEndcapPartitions {this, "CoverageEndcapPartitions", {"EMECA","EMECC","HECA","HECC","FCalA","FCalC"}};
125 Gaudi::Property< std::vector<std::string> > m_Sides {this, "Sides", {"A","C"}};
126 Gaudi::Property< std::vector<int> > m_availableErrorCodes {this, "AvailableErrorCodes", {0, 1, 2, 3, 4}};
127 std::vector<std::pair<int, std::string>> m_availableErrorCodesPairs;
128
129
130
132 std::vector<int> m_CaloNoiseGroupArrEM;
133 std::vector<int> m_CaloNoiseGroupArrHEC;
134 std::vector<int> m_CaloNoiseGroupArrFCAL;
135
136 std::map<std::string,int> m_CoverageToolArrayEMBA;
137 std::map<std::string,int> m_CoverageToolArrayEMECA;
138 std::map<std::string,int> m_CoverageToolArrayHECA;
139 std::map<std::string,int> m_CoverageToolArrayFCalA;
140 std::map<std::string,int> m_CoverageToolArrayEMBC;
141 std::map<std::string,int> m_CoverageToolArrayEMECC;
142 std::map<std::string,int> m_CoverageToolArrayHECC;
143 std::map<std::string,int> m_CoverageToolArrayFCalC;
144
145 std::map<std::string,int> m_BadChannelToolArrayBarrel;
146 std::map<std::string,int> m_BadChannelToolArrayEndcap;
147
148
150 const std::array<CaloGain::CaloGain,CaloCell_Base_ID::NSUBCALO> m_highestGain{
151 CaloGain::LARHIGHGAIN, //LAREM
153 CaloGain::LARHIGHGAIN, //LARFCAL
155 CaloGain::LARHIGHGAIN //LARMINIFCAL
156 };
157};
158
159#endif
Scalar eta() const
pseudorapidity method
Scalar phi() const
phi method
Definition of CaloDetDescrManager.
CaloPhiRange class declaration.
LArBadXCont< LArBadChannel > LArBadChannelCont
Header file to be included by clients of the Monitored infrastructure.
Property holding a SG store/key/clid from which a ReadHandle is made.
AthMonitorAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
This class groups all DetDescr information related to a CaloCell.
This class initializes the Calo (LAr and Tile) offline identifiers.
LArChanHelp(int chan=-1, int ft_slot=-100, int sampling=-1, double eta=-100, double phi=-100)
Gaudi::Property< int > m_NftFCAL
virtual StatusCode fillHistograms(const EventContext &ctx) const override
Called each event.
Gaudi::Property< std::vector< int > > m_availableErrorCodes
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
Handle to LArOnOffIdMapping (former LArCablingService)
std::vector< int > m_CaloNoiseGroupArrEM
for tools array
Gaudi::Property< int > m_Nsample
Gaudi::Property< EventContext::ContextEvt_t > m_nevents
Properties.
Gaudi::Property< int > m_NftHEC
Gaudi::Property< int > m_Nchannels
Gaudi::Property< int > m_NftEMEC
std::map< std::string, int > m_CoverageToolArrayHECC
Gaudi::Property< std::vector< std::string > > m_problemsToMask
Handle to bad-channel tools.
Gaudi::Property< std::string > m_BadChannelsGroupName
std::map< std::string, int > m_CoverageToolArrayEMECC
std::map< std::string, int > m_BadChannelToolArrayEndcap
SG::ReadCondHandleKey< LArBadFebCont > m_BFKey
Gaudi::Property< int > m_NslotEMB
const LArFCAL_ID * m_LArFCAL_IDHelper
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey
Gaudi::Property< std::vector< std::string > > m_Sides
Gaudi::Property< int > m_NslotFCAL
Gaudi::Property< std::vector< std::string > > m_CoverageEndcapPartitions
std::map< std::string, int > m_CoverageToolArrayHECA
std::map< std::string, int > m_CoverageToolArrayEMECA
Gaudi::Property< std::vector< std::string > > m_CoverageBarrelPartitions
SG::ReadHandleKey< LArRawChannelContainer > m_rawChannelsKey
Gaudi::Property< int > m_NphiBinsEMB1
Gaudi::Property< std::vector< int > > m_NphiBinsHEC
const LArHEC_ID * m_LArHEC_IDHelper
std::map< std::string, int > m_CoverageToolArrayFCalA
Gaudi::Property< int > m_NslotHEC
Gaudi::Property< int > m_NftEMB
Gaudi::Property< std::string > m_CoverageHWGroupName
std::vector< int > m_CaloNoiseGroupArrHEC
SG::ReadCondHandleKey< LArBadChannelCont > m_BCKey
SG::ReadCondHandleKey< CaloNoise > m_noiseCDOKey
Key for CaloNoise.
std::map< std::string, int > m_CoverageToolArrayEMBC
const CaloIdManager * m_caloIdMgr
std::map< std::string, int > m_CoverageToolArrayEMBA
Gaudi::Property< int > m_NslotEMEC
LArBadChannelMask m_bcMask
Gaudi::Property< std::string > m_CaloNoiseToolGroupName
const std::array< CaloGain::CaloGain, CaloCell_Base_ID::NSUBCALO > m_highestGain
for CaloNoise
std::map< std::string, int > m_CoverageToolArrayFCalC
std::map< std::string, int > m_BadChannelToolArrayBarrel
const LArEM_ID * m_LArEM_IDHelper
Gaudi::Property< int > m_NphiBinsEMEC2
std::vector< int > m_CaloNoiseGroupArrFCAL
const LArOnlineID * m_LArOnlineIDHelper
std::vector< std::pair< int, std::string > > m_availableErrorCodesPairs
Helper class for LArEM offline identifiers.
Definition LArEM_ID.h:111
Helper class for LArFCAL offline identifiers.
Definition LArFCAL_ID.h:49
Helper class for LArHEC offline identifiers.
Definition LArHEC_ID.h:76
Property holding a SG store/key/clid from which a ReadHandle is made.
@ LARMEDIUMGAIN
Definition CaloGain.h:18
@ TILEHIGHHIGH
Definition CaloGain.h:15
@ LARHIGHGAIN
Definition CaloGain.h:18
void initialize()