ATLAS Offline Software
L1CaloCTPMonitorAlgorithm.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 #ifndef TRIGT1CALOMONITORING_L1CALOCTPMONITORALGORITHM_H
5 #define TRIGT1CALOMONITORING_L1CALOCTPMONITORALGORITHM_H
6 
10 
14 
15 #include "TrigT1Result/CTP_RDO.h"
19 
25 #include "TrigConfL1Data/Menu.h"
26 #include "TrigConfL1Data/TIP.h"
28 #include "TrigConfData/L1Menu.h"
29 #include "TrigConfL1Data/PIT.h"
30 
31 
38 public:L1CaloCTPMonitorAlgorithm( const std::string& name, ISvcLocator* pSvcLocator );
39  virtual ~L1CaloCTPMonitorAlgorithm()=default;
40  virtual StatusCode initialize() override;
41  virtual StatusCode fillHistograms( const EventContext& ctx ) const override;
42 
43 private:
44 
45  // to deal with L1 menu
46  ServiceHandle<TrigConf::ITrigConfigSvc> m_configSvc{this, "TrigConfigSvc", "TrigConf::xAODConfigSvc/xAODConfigSvc"};
47  //ServiceHandle<TrigConf::ITrigConfigSvc> m_configSvc{this, "TrigConfigSvc", "TrigConf::TrigConfigSvc/TrigConfigSvc"};
48  const TrigConf::L1Menu* getL1Menu(const EventContext& ctx) const;
49 
51  enum L1CaloCTPHitTypes { EM1Type, EM2Type, // EM1, EM2 cables
52  Tau1Type, Tau2Type, // TAU1, TAU2 cables
53  Jet3BitType, Jet2BitType, // JET1, JET2 cables
56 
58  void compare(const CTP_BC& bunch, int hits, int totalBits, int offset, L1CaloCTPHitTypes type, const EventContext& ctx) const;
59 
61  //void setLabels(LWHist* hist, bool xAxis = true);
62 
63  StringProperty m_packageName{this,"PackageName","L1CaloCTPMonitor","group name for histograming"};
64 
65  // container keys including steering parameter and description
66  SG::ReadHandleKey<CTP_RDO> m_ctpRdoKey {this, "CTPRDOLocation", LVL1CTP::DEFAULT_RDOOutputLocation,"Key of the CTP RDO object"};
70 
71  SG::ReadHandleKey<TrigConf::L1Menu> m_L1MenuKey { this, "L1TriggerMenu", "DetectorStore+L1TriggerMenu", "L1 Menu" };
72 
73  // Event veto error tool
74  ToolHandle<LVL1::ITrigT1CaloMonErrorTool> m_errorTool;
75 
76 };
77 #endif
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
CTPConfig.h
CTP_Decoder.h
TRTCalib_Extractor.hits
hits
Definition: TRTCalib_Extractor.py:35
L1CaloCTPMonitorAlgorithm::m_cmxCpHitsLocation
SG::ReadHandleKey< xAOD::CMXCPHitsContainer > m_cmxCpHitsLocation
Definition: L1CaloCTPMonitorAlgorithm.h:69
L1CaloCTPMonitorAlgorithm::m_L1MenuKey
SG::ReadHandleKey< TrigConf::L1Menu > m_L1MenuKey
Definition: L1CaloCTPMonitorAlgorithm.h:71
L1CaloCTPMonitorAlgorithm::m_cmxJetHitsLocation
SG::ReadHandleKey< xAOD::CMXJetHitsContainer > m_cmxJetHitsLocation
Definition: L1CaloCTPMonitorAlgorithm.h:67
L1CaloCTPMonitorAlgorithm::TERestrictedEtaType
@ TERestrictedEtaType
Definition: L1CaloCTPMonitorAlgorithm.h:55
L1CaloCTPMonitorAlgorithm::XSType
@ XSType
Definition: L1CaloCTPMonitorAlgorithm.h:54
L1CaloCTPMonitorAlgorithm::m_ctpRdoKey
SG::ReadHandleKey< CTP_RDO > m_ctpRdoKey
Definition: L1CaloCTPMonitorAlgorithm.h:66
LVL1::TrigT1CaloDefs::CMXJetHitsLocation
static const std::string CMXJetHitsLocation
Definition: TrigT1CaloDefs.h:56
Menu.h
TrigConf::L1Menu
L1 menu configuration.
Definition: L1Menu.h:28
ITrigT1CaloMonErrorTool.h
SG::ReadHandleKey< CTP_RDO >
L1CaloCTPMonitorAlgorithm::compare
void compare(const CTP_BC &bunch, int hits, int totalBits, int offset, L1CaloCTPHitTypes type, const EventContext &ctx) const
Compare L1Calo hits with corresponding TIP hits.
Definition: L1CaloCTPMonitorAlgorithm.cxx:302
L1CaloCTPMonitorAlgorithm::Jet2BitType
@ Jet2BitType
Definition: L1CaloCTPMonitorAlgorithm.h:53
L1CaloCTPMonitorAlgorithm::TEFullEtaType
@ TEFullEtaType
Definition: L1CaloCTPMonitorAlgorithm.h:54
CMXJetHitsContainer.h
TrigT1StoreGateKeys.h
L1CaloCTPMonitorAlgorithm::Tau2Type
@ Tau2Type
Definition: L1CaloCTPMonitorAlgorithm.h:52
L1CaloCTPMonitorAlgorithm::XERestrictedEtaType
@ XERestrictedEtaType
Definition: L1CaloCTPMonitorAlgorithm.h:55
AthMonitorAlgorithm
Base class for Athena Monitoring Algorithms.
Definition: AthMonitorAlgorithm.h:36
CMXCPHitsContainer.h
FrontPanelCTP.h
L1CaloCTPMonitorAlgorithm::initialize
virtual StatusCode initialize() override
initialize
Definition: L1CaloCTPMonitorAlgorithm.cxx:21
MCTruthPartClassifier::totalBits
@ totalBits
Definition: TruthClassifiers.h:148
ILVL1ConfigSvc.h
L1CaloCTPMonitorAlgorithm::~L1CaloCTPMonitorAlgorithm
virtual ~L1CaloCTPMonitorAlgorithm()=default
LVL1::TrigT1CaloDefs::CMXEtSumsLocation
static const std::string CMXEtSumsLocation
Definition: TrigT1CaloDefs.h:57
L1CaloCTPMonitorAlgorithm::m_configSvc
ServiceHandle< TrigConf::ITrigConfigSvc > m_configSvc
Definition: L1CaloCTPMonitorAlgorithm.h:46
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthMonitorAlgorithm.h
CTP_BC
Definition: CTP_Decoder.h:17
L1CaloCTPMonitorAlgorithm::getL1Menu
const TrigConf::L1Menu * getL1Menu(const EventContext &ctx) const
Definition: L1CaloCTPMonitorAlgorithm.cxx:464
L1CaloCTPMonitorAlgorithm::NumberOfHitTypes
@ NumberOfHitTypes
Definition: L1CaloCTPMonitorAlgorithm.h:55
CMXEtSumsContainer.h
L1CaloCTPMonitorAlgorithm::fillHistograms
virtual StatusCode fillHistograms(const EventContext &ctx) const override
adds event to the monitoring histograms
Definition: L1CaloCTPMonitorAlgorithm.cxx:41
TriggerThreshold.h
L1CaloCTPMonitorAlgorithm::m_cmxEtSumsLocation
SG::ReadHandleKey< xAOD::CMXEtSumsContainer > m_cmxEtSumsLocation
Definition: L1CaloCTPMonitorAlgorithm.h:68
Monitored.h
Header file to be included by clients of the Monitored infrastructure.
L1CaloCTPMonitorAlgorithm::EM2Type
@ EM2Type
Definition: L1CaloCTPMonitorAlgorithm.h:51
L1CaloCTPMonitorAlgorithm::EM1Type
@ EM1Type
Definition: L1CaloCTPMonitorAlgorithm.h:51
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
TIP.h
L1CaloCTPMonitorAlgorithm::Tau1Type
@ Tau1Type
Definition: L1CaloCTPMonitorAlgorithm.h:52
L1CaloCTPMonitorAlgorithm::Jet3BitType
@ Jet3BitType
Definition: L1CaloCTPMonitorAlgorithm.h:53
L1CaloCTPMonitorAlgorithm::m_packageName
StringProperty m_packageName
Bin labels for summary plots.
Definition: L1CaloCTPMonitorAlgorithm.h:63
L1CaloCTPMonitorAlgorithm
Definition: L1CaloCTPMonitorAlgorithm.py:1
TrigT1CaloDefs.h
L1DataDef.h
CTP_RDO.h
PIT.h
L1CaloCTPMonitorAlgorithm::L1CaloCTPMonitorAlgorithm
L1CaloCTPMonitorAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Definition: L1CaloCTPMonitorAlgorithm.cxx:15
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
L1CaloCTPMonitorAlgorithm::L1CaloCTPHitTypes
L1CaloCTPHitTypes
Hit types for binning.
Definition: L1CaloCTPMonitorAlgorithm.h:51
convertTimingResiduals.offset
offset
Definition: convertTimingResiduals.py:71
L1Menu.h
L1CaloCTPMonitorAlgorithm::XEFullEtaType
@ XEFullEtaType
Definition: L1CaloCTPMonitorAlgorithm.h:54
L1CaloCTPMonitorAlgorithm::m_errorTool
ToolHandle< LVL1::ITrigT1CaloMonErrorTool > m_errorTool
Definition: L1CaloCTPMonitorAlgorithm.h:74
LVL1::TrigT1CaloDefs::CMXCPHitsLocation
static const std::string CMXCPHitsLocation
Definition: TrigT1CaloDefs.h:59
ServiceHandle< TrigConf::ITrigConfigSvc >