ATLAS Offline Software
Loading...
Searching...
No Matches
L1CaloCTPMonitorAlgorithm.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4#ifndef TRIGT1CALOMONITORING_L1CALOCTPMONITORALGORITHM_H
5#define TRIGT1CALOMONITORING_L1CALOCTPMONITORALGORITHM_H
6
10
14
19
25#include "TrigConfL1Data/Menu.h"
26#include "TrigConfL1Data/TIP.h"
28#include "TrigConfData/L1Menu.h"
29#include "TrigConfL1Data/PIT.h"
31
32
37
39public:L1CaloCTPMonitorAlgorithm( const std::string& name, ISvcLocator* pSvcLocator );
40 virtual ~L1CaloCTPMonitorAlgorithm()=default;
41 virtual StatusCode initialize() override;
42 virtual StatusCode fillHistograms( const EventContext& ctx ) const override;
43
44private:
45
46 // to deal with L1 menu
47 ServiceHandle<TrigConf::ITrigConfigSvc> m_configSvc{this, "TrigConfigSvc", "TrigConf::xAODConfigSvc/xAODConfigSvc"};
48 //ServiceHandle<TrigConf::ITrigConfigSvc> m_configSvc{this, "TrigConfigSvc", "TrigConf::TrigConfigSvc/TrigConfigSvc"};
49 const TrigConf::L1Menu* getL1Menu(const EventContext& ctx) const;
50
52 enum L1CaloCTPHitTypes { EM1Type, EM2Type, // EM1, EM2 cables
53 Tau1Type, Tau2Type, // TAU1, TAU2 cables
54 Jet3BitType, Jet2BitType, // JET1, JET2 cables
57
59 void compare(const CTP_BC& bunch, int hits, int totalBits, int offset, L1CaloCTPHitTypes type, const EventContext& ctx) const;
60
62 //void setLabels(LWHist* hist, bool xAxis = true);
63
64 StringProperty m_packageName{this,"PackageName","L1CaloCTPMonitor","group name for histograming"};
65
66 // container keys including steering parameter and description
67 SG::ReadHandleKey<CTP_RDO> m_ctpRdoKey {this, "CTPRDOLocation", LVL1CTP::DEFAULT_RDOOutputLocation,"Key of the CTP RDO object"};
71
72 SG::ReadHandleKey<TrigConf::L1Menu> m_L1MenuKey { this, "L1TriggerMenu", "DetectorStore+L1TriggerMenu", "L1 Menu" };
73
74 // Event veto error tool
75 ToolHandle<LVL1::ITrigT1CaloMonErrorTool> m_errorTool;
76
77};
78#endif
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.
virtual StatusCode fillHistograms(const EventContext &ctx) const override
adds event to the monitoring histograms
SG::ReadHandleKey< TrigConf::L1Menu > m_L1MenuKey
virtual ~L1CaloCTPMonitorAlgorithm()=default
SG::ReadHandleKey< CTP_RDO > m_ctpRdoKey
L1CaloCTPHitTypes
Hit types for binning.
SG::ReadHandleKey< xAOD::CMXEtSumsContainer > m_cmxEtSumsLocation
SG::ReadHandleKey< xAOD::CMXJetHitsContainer > m_cmxJetHitsLocation
SG::ReadHandleKey< xAOD::CMXCPHitsContainer > m_cmxCpHitsLocation
ServiceHandle< TrigConf::ITrigConfigSvc > m_configSvc
ToolHandle< LVL1::ITrigT1CaloMonErrorTool > m_errorTool
StringProperty m_packageName
Bin labels for summary plots.
static const std::string CMXJetHitsLocation
static const std::string CMXEtSumsLocation
static const std::string CMXCPHitsLocation
Property holding a SG store/key/clid from which a ReadHandle is made.
L1 menu configuration.
Definition L1Menu.h:28
static const std::string DEFAULT_RDOOutputLocation
location of CTP RDO output in StoreGate
void initialize()