ATLAS Offline Software
Loading...
Searching...
No Matches
GfexMonitorAlgorithm.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4#ifndef TRIGT1CALOMONITORING_GFEXMONITORALGORITHM_H
5#define TRIGT1CALOMONITORING_GFEXMONITORALGORITHM_H
6
14
16public:GfexMonitorAlgorithm( const std::string& name, ISvcLocator* pSvcLocator );
17 virtual ~GfexMonitorAlgorithm()=default;
18 virtual StatusCode initialize() override;
19 virtual StatusCode fillHistograms( const EventContext& ctx ) const override;
20
21private:
22 // Private members
23 enum class FPGAType {FPGAa, FPGAb, FPGAc, None};
24 std::map<std::string, std::pair<std::string, std::string>> m_globTobVarMap;
25 StringProperty m_packageName{this,"PackageName","gfexMonitor","group name for histograming"};
26 FloatArrayProperty m_ptCutValuesgLJ{this, "ptCutValuesgLJ", { 0., 30., 400.}, "List of lower pt cut values, -1. for not cut applied."};
27 FloatArrayProperty m_ptCutValuesgJ{this, "ptCutValuesgJ", { 0., 100.}, "List of lower pt cut values, -1. for not cut applied."};
28 // Define read handles
29 SG::ReadHandleKeyArray<xAOD::gFexJetRoIContainer> m_gFexJetTobKeyList{this,"gFexJetTobKeyList",{"L1_gFexLRJetRoI", "L1_gFexSRJetRoI"},"Array of gFEX jet ReadHandleKeys to fill histograms for"};
30 SG::ReadHandleKeyArray<xAOD::gFexJetRoIContainer> m_gFexRhoTobKeyList{this,"gFexRhoTobKeyList",{"L1_gFexRhoRoI"},"Array of gFEX rho ReadHandleKeys to fill histograms for"};
31 SG::ReadHandleKeyArray<xAOD::gFexGlobalRoIContainer> m_gFexGlobalTobKeyList{this,"gFexGlobalTobKeyList", {"L1_gScalarEJwoj","L1_gMETComponentsJwoj","L1_gMHTComponentsJwoj","L1_gMSTComponentsJwoj"},"Array of gFEX global TOBs ReadHandleKeys to fill histograms for"};
32 // Define private methods
33 StatusCode fillJetHistograms(const std::string& handleKey, const xAOD::gFexJetRoIContainer* container, const float& ptCutValue, const auto& lbn) const;
34 StatusCode fillRhoHistograms(const std::string& handleKey, const xAOD::gFexJetRoIContainer* container) const;
35 StatusCode fillGlobalTobHistograms(const std::string& handleKey, const xAOD::gFexGlobalRoIContainer* container) const;
36 FPGAType getFPGAType(const float& eta) const;
37 int getBinNumberJet (float ,float , int , int ) const;
38};
39#endif
Scalar eta() const
pseudorapidity method
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.
SG::ReadHandleKeyArray< xAOD::gFexJetRoIContainer > m_gFexRhoTobKeyList
virtual StatusCode fillHistograms(const EventContext &ctx) const override
adds event to the monitoring histograms
std::map< std::string, std::pair< std::string, std::string > > m_globTobVarMap
FloatArrayProperty m_ptCutValuesgLJ
FloatArrayProperty m_ptCutValuesgJ
virtual ~GfexMonitorAlgorithm()=default
SG::ReadHandleKeyArray< xAOD::gFexGlobalRoIContainer > m_gFexGlobalTobKeyList
SG::ReadHandleKeyArray< xAOD::gFexJetRoIContainer > m_gFexJetTobKeyList
HandleKeyArray< ReadHandle< T >, ReadHandleKey< T >, Gaudi::DataHandle::Reader > ReadHandleKeyArray
gFexGlobalRoIContainer_v1 gFexGlobalRoIContainer
gFexJetRoIContainer_v1 gFexJetRoIContainer
void initialize()