ATLAS Offline Software
TileTMDBRawChannelMonitorAlgorithm.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TILEMONITORING_TILETMDBRAWCHANNELMONITORALGORITHM_H
6 #define TILEMONITORING_TILETMDBRAWCHANNELMONITORALGORITHM_H
7 
8 // Tile includes
12 
13 // Atlas includes
17 #include "xAODMuon/MuonContainer.h"
19 
20 class TileHWID;
21 
23  public:
24 
27 
28  virtual StatusCode initialize() override;
29  virtual StatusCode fillHistograms( const EventContext& ctx ) const override;
30  private:
31 
32  int tilemodule_to_check(int sector) const;
33  float calc_dR(float dEta, float dPhi) const;
34 
35  Gaudi::Property<std::vector<int>> m_nChannels{this,
36  "NumberOfChannels", {8, 8, 4, 4}, "Number of TMDB channels per module in (LBA, LBC, EBA, EBC)"};
37 
38  Gaudi::Property<float> m_amplitudeThreshold{this,
39  "AmplitudeThresholdForTime", 80, "Amplitude threashold for timing histograms"};
40 
41  Gaudi::Property<bool> m_isDSP{this,
42  "DSP", true, "TMDB Raw Channels container comes from DSP"};
43 
44  Gaudi::Property<bool> m_fillRawChannelHistograms{this,
45  "FillRawChannelHistograms", true, "Fill TMDB raw channel histograms"};
46 
47  Gaudi::Property<bool> m_fillEfficiencyHistograms{this,
48  "FillEfficiencyHistograms", false, "Fill TMDB efficiency histograms"};
49 
50  Gaudi::Property<unsigned> m_numberOfThresholds{this,
51  "NumberOfThresholds", 1, "Number of thresholds to check (Run2: 2, Run3: 1)"};
52 
54  "MuRcvRawChCnt", "MuRcvRawChCnt", "TMDB raw container"};
55 
57  "MuonContainer", "Muons", "Input Muons container key"};
58 
60  "TrigMuonContainer", "LVL1MuonRoIs", "Input LVL1 Muon RoIs container key"};
61 
62  ToolHandle<ITileCondToolTMDB> m_tileCondToolTMDB{this,
63  "TileCondToolTMDB", "TileCondToolTMDB", "Tile TMDB conditions tool"};
64 
69  "TileCablingSvc", "TileCablingSvc", "The Tile cabling service"};
70 
71  const TileHWID* m_tileHWID{nullptr};
72 
73  std::vector<int> m_ampGroups;
74  std::vector<int> m_timeGroups;
75  std::vector<std::vector<int>> m_ampCell;
76  std::vector<std::vector<int>> m_timeCell;
77 
78  std::vector<int> m_tgcSectorGroup;
79  std::vector<std::vector<std::vector<int>>> m_coinThrDGroup;
80 };
81 #endif // TILEMONITORING_TILETMDBRAWCHANNELMONITORALGORITHM_H
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
TileCablingSvc.h
TileTMDBRawChannelMonitorAlgorithm
Definition: TileTMDBRawChannelMonitorAlgorithm.py:1
TileTMDBRawChannelMonitorAlgorithm::m_timeGroups
std::vector< int > m_timeGroups
Definition: TileTMDBRawChannelMonitorAlgorithm.h:74
TileTMDBRawChannelMonitorAlgorithm::m_cablingSvc
ServiceHandle< TileCablingSvc > m_cablingSvc
Name of Tile cabling service.
Definition: TileTMDBRawChannelMonitorAlgorithm.h:68
TileTMDBRawChannelMonitorAlgorithm::m_muonContainerKey
SG::ReadHandleKey< xAOD::MuonContainer > m_muonContainerKey
Definition: TileTMDBRawChannelMonitorAlgorithm.h:56
MuonRoIContainer.h
TileTMDBRawChannelMonitorAlgorithm::m_numberOfThresholds
Gaudi::Property< unsigned > m_numberOfThresholds
Definition: TileTMDBRawChannelMonitorAlgorithm.h:50
TileTMDBRawChannelMonitorAlgorithm::fillHistograms
virtual StatusCode fillHistograms(const EventContext &ctx) const override
adds event to the monitoring histograms
Definition: TileTMDBRawChannelMonitorAlgorithm.cxx:66
TileTMDBRawChannelMonitorAlgorithm::~TileTMDBRawChannelMonitorAlgorithm
virtual ~TileTMDBRawChannelMonitorAlgorithm()=default
TileTMDBRawChannelMonitorAlgorithm::m_tileHWID
const TileHWID * m_tileHWID
Definition: TileTMDBRawChannelMonitorAlgorithm.h:71
TileTMDBRawChannelMonitorAlgorithm::m_coinThrDGroup
std::vector< std::vector< std::vector< int > > > m_coinThrDGroup
Definition: TileTMDBRawChannelMonitorAlgorithm.h:79
SG::ReadHandleKey< TileRawChannelContainer >
TauClusterVars::dPhi
bool dPhi(const xAOD::TauJet &tau, const xAOD::CaloVertexedTopoCluster &cluster, float &out)
Definition: ConstituentLoaderTauCluster.cxx:119
TileTMDBRawChannelMonitorAlgorithm::tilemodule_to_check
int tilemodule_to_check(int sector) const
Definition: TileTMDBRawChannelMonitorAlgorithm.cxx:251
TauClusterVars::dEta
bool dEta(const xAOD::TauJet &tau, const xAOD::CaloVertexedTopoCluster &cluster, float &out)
Definition: ConstituentLoaderTauCluster.cxx:114
AthMonitorAlgorithm
Base class for Athena Monitoring Algorithms.
Definition: AthMonitorAlgorithm.h:36
TileRawChannelContainer.h
TileTMDBRawChannelMonitorAlgorithm::m_nChannels
Gaudi::Property< std::vector< int > > m_nChannels
Definition: TileTMDBRawChannelMonitorAlgorithm.h:35
TileHWID
Helper class for TileCal online (hardware) identifiers.
Definition: TileHWID.h:49
TileTMDBRawChannelMonitorAlgorithm::m_fillRawChannelHistograms
Gaudi::Property< bool > m_fillRawChannelHistograms
Definition: TileTMDBRawChannelMonitorAlgorithm.h:44
TileTMDBRawChannelMonitorAlgorithm::m_timeCell
std::vector< std::vector< int > > m_timeCell
Definition: TileTMDBRawChannelMonitorAlgorithm.h:76
ITileCondToolTMDB.h
TileTMDBRawChannelMonitorAlgorithm::m_amplitudeThreshold
Gaudi::Property< float > m_amplitudeThreshold
Definition: TileTMDBRawChannelMonitorAlgorithm.h:38
TileTMDBRawChannelMonitorAlgorithm::m_isDSP
Gaudi::Property< bool > m_isDSP
Definition: TileTMDBRawChannelMonitorAlgorithm.h:41
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthMonitorAlgorithm.h
TileTMDBRawChannelMonitorAlgorithm::m_fillEfficiencyHistograms
Gaudi::Property< bool > m_fillEfficiencyHistograms
Definition: TileTMDBRawChannelMonitorAlgorithm.h:47
TileTMDBRawChannelMonitorAlgorithm::m_ampCell
std::vector< std::vector< int > > m_ampCell
Definition: TileTMDBRawChannelMonitorAlgorithm.h:75
TileTMDBRawChannelMonitorAlgorithm::m_ampGroups
std::vector< int > m_ampGroups
Definition: TileTMDBRawChannelMonitorAlgorithm.h:73
Monitored.h
Header file to be included by clients of the Monitored infrastructure.
TileTMDBRawChannelMonitorAlgorithm::m_tileCondToolTMDB
ToolHandle< ITileCondToolTMDB > m_tileCondToolTMDB
Definition: TileTMDBRawChannelMonitorAlgorithm.h:62
TileTMDBRawChannelMonitorAlgorithm::initialize
virtual StatusCode initialize() override
initialize
Definition: TileTMDBRawChannelMonitorAlgorithm.cxx:20
MuonContainer.h
TileTMDBRawChannelMonitorAlgorithm::calc_dR
float calc_dR(float dEta, float dPhi) const
Definition: TileTMDBRawChannelMonitorAlgorithm.cxx:244
AthMonitorAlgorithm::AthMonitorAlgorithm
AthMonitorAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition: AthMonitorAlgorithm.cxx:7
TileTMDBRawChannelMonitorAlgorithm::m_muonRoIsContainerKey
SG::ReadHandleKey< xAOD::MuonRoIContainer > m_muonRoIsContainerKey
Definition: TileTMDBRawChannelMonitorAlgorithm.h:59
TileTMDBRawChannelMonitorAlgorithm::m_rawChannelContainerKey
SG::ReadHandleKey< TileRawChannelContainer > m_rawChannelContainerKey
Definition: TileTMDBRawChannelMonitorAlgorithm.h:53
TileTMDBRawChannelMonitorAlgorithm::m_tgcSectorGroup
std::vector< int > m_tgcSectorGroup
Definition: TileTMDBRawChannelMonitorAlgorithm.h:78
ServiceHandle< TileCablingSvc >