ATLAS Offline Software
CaloMonAlgBase.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef CALOMONITORING_CALOMONALGBASE
6 #define CALOMONITORING_CALOMONALGBASE
7 
12 
14  public:
15 
16  CaloMonAlgBase(const std::string& name, ISvcLocator* pSvcLocator);
17 
18  virtual ~CaloMonAlgBase(){};
19 
20  virtual StatusCode initialize();
21 
22  StatusCode checkFilters(bool &ifPass, bool &passBeamBackgroundRemoval, const std::string &MonGroupName, const EventContext &ctx) const;
23 
24  private:
25  // LArCollisionTime name
26  SG::ReadHandleKey<LArCollisionTime> m_LArCollisionTimeKey{this,"LArCollisionTimeKey","LArCollisionTime"};
27  SG::ReadHandleKey<BeamBackgroundData> m_beamBackgroundKey{this,"BeamBackgroundKey","CSCBackgroundForCaloMon"};
28 
29  // Handles on filtering tools
31  ToolHandle<IDQFilterTool> m_BadLBTool;
33  ToolHandle<IDQFilterTool> m_ReadyFilterTool;
34 
36  //bool m_useTriggerFilter;
39 
40 protected:
41 
42  // Common methods for LArCell-oriented histograms
43  const CaloCell_ID* m_calo_id{nullptr};
44 
45  void getHistoCoordinates(const CaloDetDescrElement* dde, float& celleta, float& cellphi, unsigned& iLyr, unsigned& iLyrNS) const;
46  //enums to help with the conversion of Layer, partitions and such:
47  //Enumerate layers
52 
53  //Enumerate layer-types, ignoring sides. Useful for configuration that is per-definition symmetric
56 
57 
58 
59  //Mapping of CaloCell nomencature to CaloCellMonitoring nomencature
60  const std::map<unsigned,LayerEnumNoSides> m_caloSamplingToLyrNS{
65  };
66 
67 
68 
69 
70 };
71 
72 
73 #endif
CaloMonAlgBase::checkFilters
StatusCode checkFilters(bool &ifPass, bool &passBeamBackgroundRemoval, const std::string &MonGroupName, const EventContext &ctx) const
Definition: CaloMonAlgBase.cxx:61
CaloMonAlgBase::EMB1A
@ EMB1A
Definition: CaloMonAlgBase.h:48
CaloMonAlgBase::FCAL3C
@ FCAL3C
Definition: CaloMonAlgBase.h:51
CaloMonAlgBase::FCAL2A
@ FCAL2A
Definition: CaloMonAlgBase.h:51
constants.EMB1
int EMB1
Definition: Calorimeter/CaloClusterCorrection/python/constants.py:53
CaloMonAlgBase::EMB2A
@ EMB2A
Definition: CaloMonAlgBase.h:48
CaloMonAlgBase::m_LArCollisionTimeKey
SG::ReadHandleKey< LArCollisionTime > m_LArCollisionTimeKey
Definition: CaloMonAlgBase.h:26
CaloMonAlgBase::MAXLAYER
@ MAXLAYER
Definition: CaloMonAlgBase.h:51
CaloMonAlgBase::HEC0A
@ HEC0A
Definition: CaloMonAlgBase.h:49
CaloMonAlgBase::HEC1NS
@ HEC1NS
Definition: CaloMonAlgBase.h:54
CaloMonAlgBase::FCAL1NS
@ FCAL1NS
Definition: CaloMonAlgBase.h:55
CaloMonAlgBase::EMBPA
@ EMBPA
Definition: CaloMonAlgBase.h:48
CaloDetDescrElement
This class groups all DetDescr information related to a CaloCell. Provides a generic interface for al...
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:66
CaloMonAlgBase::EMEC2NS
@ EMEC2NS
Definition: CaloMonAlgBase.h:55
CaloMonAlgBase::m_useCollisionFilterTool
bool m_useCollisionFilterTool
Definition: CaloMonAlgBase.h:37
CaloMonAlgBase::HEC1A
@ HEC1A
Definition: CaloMonAlgBase.h:49
CaloMonAlgBase::EMEC1NS
@ EMEC1NS
Definition: CaloMonAlgBase.h:55
CaloMonAlgBase::EMB1NS
@ EMB1NS
Definition: CaloMonAlgBase.h:54
CaloMonAlgBase::m_useBeamBackgroundRemoval
bool m_useBeamBackgroundRemoval
Definition: CaloMonAlgBase.h:38
CaloCell_ID_FCS::FCAL1
@ FCAL1
Definition: FastCaloSim_CaloCell_ID.h:41
CaloMonAlgBase::EMECPC
@ EMECPC
Definition: CaloMonAlgBase.h:50
CaloMonAlgBase::EMEC1C
@ EMEC1C
Definition: CaloMonAlgBase.h:50
CaloMonAlgBase::EMBPNS
@ EMBPNS
Definition: CaloMonAlgBase.h:54
CaloMonAlgBase::HEC1C
@ HEC1C
Definition: CaloMonAlgBase.h:49
CaloMonAlgBase::FCAL3A
@ FCAL3A
Definition: CaloMonAlgBase.h:51
CaloMonAlgBase::EMECPNS
@ EMECPNS
Definition: CaloMonAlgBase.h:55
CaloCell_ID_FCS::HEC2
@ HEC2
Definition: FastCaloSim_CaloCell_ID.h:29
CaloMonAlgBase::EMEC2A
@ EMEC2A
Definition: CaloMonAlgBase.h:50
CaloMonAlgBase::HEC2C
@ HEC2C
Definition: CaloMonAlgBase.h:49
SG::ReadHandleKey< LArCollisionTime >
CaloMonAlgBase::EMEC2C
@ EMEC2C
Definition: CaloMonAlgBase.h:50
CaloMonAlgBase::initialize
virtual StatusCode initialize()
initialize
Definition: CaloMonAlgBase.cxx:25
CaloMonAlgBase::m_caloSamplingToLyrNS
const std::map< unsigned, LayerEnumNoSides > m_caloSamplingToLyrNS
Definition: CaloMonAlgBase.h:60
CaloMonAlgBase::EMEC3A
@ EMEC3A
Definition: CaloMonAlgBase.h:50
AthMonitorAlgorithm
Base class for Athena Monitoring Algorithms.
Definition: AthMonitorAlgorithm.h:36
CaloMonAlgBase::HEC2NS
@ HEC2NS
Definition: CaloMonAlgBase.h:54
CaloMonAlgBase::EMECPA
@ EMECPA
Definition: CaloMonAlgBase.h:50
CaloMonAlgBase::LayerEnum
LayerEnum
Definition: CaloMonAlgBase.h:48
CaloCell_ID_FCS::HEC1
@ HEC1
Definition: FastCaloSim_CaloCell_ID.h:28
constants.EMB2
int EMB2
Definition: Calorimeter/CaloClusterCorrection/python/constants.py:54
CaloMonAlgBase::HEC0NS
@ HEC0NS
Definition: CaloMonAlgBase.h:54
CaloMonAlgBase::CaloMonAlgBase
CaloMonAlgBase(const std::string &name, ISvcLocator *pSvcLocator)
Definition: CaloMonAlgBase.cxx:7
CaloMonAlgBase::m_useBadLBTool
bool m_useBadLBTool
Definition: CaloMonAlgBase.h:30
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthMonitorAlgorithm.h
CaloMonAlgBase::FCAL2C
@ FCAL2C
Definition: CaloMonAlgBase.h:51
CaloMonAlgBase::HEC3A
@ HEC3A
Definition: CaloMonAlgBase.h:49
BeamBackgroundData.h
constants.EME1
int EME1
Definition: Calorimeter/CaloClusterCorrection/python/constants.py:55
CaloMonAlgBase::EMBPC
@ EMBPC
Definition: CaloMonAlgBase.h:48
CaloMonAlgBase::m_calo_id
const CaloCell_ID * m_calo_id
Definition: CaloMonAlgBase.h:43
CaloCell_ID
Helper class for offline cell identifiers.
Definition: CaloCell_ID.h:34
CaloMonAlgBase::EMEC3C
@ EMEC3C
Definition: CaloMonAlgBase.h:50
CaloMonAlgBase::m_BadLBTool
ToolHandle< IDQFilterTool > m_BadLBTool
Definition: CaloMonAlgBase.h:31
CaloMonAlgBase::EMB3NS
@ EMB3NS
Definition: CaloMonAlgBase.h:54
CaloMonAlgBase::EMEC3NS
@ EMEC3NS
Definition: CaloMonAlgBase.h:55
CaloMonAlgBase::getHistoCoordinates
void getHistoCoordinates(const CaloDetDescrElement *dde, float &celleta, float &cellphi, unsigned &iLyr, unsigned &iLyrNS) const
Definition: CaloMonAlgBase.cxx:176
CaloMonAlgBase::FCAL3NS
@ FCAL3NS
Definition: CaloMonAlgBase.h:55
CaloMonAlgBase::EMB1C
@ EMB1C
Definition: CaloMonAlgBase.h:48
CaloMonAlgBase::EMB2C
@ EMB2C
Definition: CaloMonAlgBase.h:48
CaloMonAlgBase::LayerEnumNoSides
LayerEnumNoSides
Definition: CaloMonAlgBase.h:54
CaloMonAlgBase::MAXLYRNS
@ MAXLYRNS
Definition: CaloMonAlgBase.h:55
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
CaloCell_ID_FCS::EME3
@ EME3
Definition: FastCaloSim_CaloCell_ID.h:26
CaloMonAlgBase::HEC0C
@ HEC0C
Definition: CaloMonAlgBase.h:49
CaloMonAlgBase::~CaloMonAlgBase
virtual ~CaloMonAlgBase()
Definition: CaloMonAlgBase.h:18
CaloCell_ID_FCS::HEC0
@ HEC0
Definition: FastCaloSim_CaloCell_ID.h:27
CaloMonAlgBase::m_useLArNoisyAlg
bool m_useLArNoisyAlg
Definition: CaloMonAlgBase.h:35
CaloCell_ID_FCS::PreSamplerE
@ PreSamplerE
Definition: FastCaloSim_CaloCell_ID.h:23
CaloCell_ID_FCS::PreSamplerB
@ PreSamplerB
Definition: FastCaloSim_CaloCell_ID.h:19
CaloMonAlgBase::HEC3C
@ HEC3C
Definition: CaloMonAlgBase.h:49
CaloMonAlgBase::EMB3C
@ EMB3C
Definition: CaloMonAlgBase.h:48
CaloCell_ID_FCS::FCAL2
@ FCAL2
Definition: FastCaloSim_CaloCell_ID.h:42
CaloMonAlgBase::FCAL1A
@ FCAL1A
Definition: CaloMonAlgBase.h:51
CaloMonAlgBase::m_useReadyFilterTool
bool m_useReadyFilterTool
Definition: CaloMonAlgBase.h:32
CaloMonAlgBase::m_beamBackgroundKey
SG::ReadHandleKey< BeamBackgroundData > m_beamBackgroundKey
Definition: CaloMonAlgBase.h:27
LArCollisionTime.h
CaloMonAlgBase::m_ReadyFilterTool
ToolHandle< IDQFilterTool > m_ReadyFilterTool
Definition: CaloMonAlgBase.h:33
CaloMonAlgBase::EMEC1A
@ EMEC1A
Definition: CaloMonAlgBase.h:50
IDQFilterTool.h
CaloMonAlgBase
Definition: CaloMonAlgBase.py:1
CaloCell_ID_FCS::HEC3
@ HEC3
Definition: FastCaloSim_CaloCell_ID.h:30
CaloCell_ID_FCS::FCAL0
@ FCAL0
Definition: FastCaloSim_CaloCell_ID.h:40
CaloCell_ID_FCS::EMB3
@ EMB3
Definition: FastCaloSim_CaloCell_ID.h:22
CaloMonAlgBase::EMB2NS
@ EMB2NS
Definition: CaloMonAlgBase.h:54
CaloMonAlgBase::FCAL1C
@ FCAL1C
Definition: CaloMonAlgBase.h:51
CaloMonAlgBase::FCAL2NS
@ FCAL2NS
Definition: CaloMonAlgBase.h:55
CaloMonAlgBase::EMB3A
@ EMB3A
Definition: CaloMonAlgBase.h:48
constants.EME2
int EME2
Definition: Calorimeter/CaloClusterCorrection/python/constants.py:56
CaloMonAlgBase::HEC2A
@ HEC2A
Definition: CaloMonAlgBase.h:49
CaloMonAlgBase::HEC3NS
@ HEC3NS
Definition: CaloMonAlgBase.h:54