ATLAS Offline Software
TileTMDBRawChannelMonitorAlgorithm.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 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 
18 class TileHWID;
19 
21  public:
22 
25 
26  virtual StatusCode initialize() override;
27  virtual StatusCode fillHistograms( const EventContext& ctx ) const override;
28  private:
29 
30  int tilemodule_to_check(int sector) const;
31  float calc_dR(float dEta, float dPhi) const;
32 
33  Gaudi::Property<std::vector<int>> m_nChannels{this,
34  "NumberOfChannels", {8, 8, 4, 4}, "Number of TMDB channels per module in (LBA, LBC, EBA, EBC)"};
35 
36  Gaudi::Property<float> m_amplitudeThreshold{this,
37  "AmplitudeThresholdForTime", 80, "Amplitude threashold for timing histograms"};
38 
39  Gaudi::Property<bool> m_isDSP{this,
40  "DSP", true, "TMDB Raw Channels container comes from DSP"};
41 
42  Gaudi::Property<bool> m_fillRawChannelHistograms{this,
43  "FillRawChannelHistograms", true, "Fill TMDB raw channel histograms"};
44 
45  Gaudi::Property<bool> m_fillEfficiencyHistograms{this,
46  "FillEfficiencyHistograms", false, "Fill TMDB efficiency histograms"};
47 
48  Gaudi::Property<bool> m_numberOfThresholds{this,
49  "NumberOfThresholds", false, "Number of thresholds to check (Run2: 2, Run3: 1)"};
50 
52  "MuRcvRawChCnt", "MuRcvRawChCnt", "TMDB raw container"};
53 
55  "MuonContainer", "Muons", "Input Muons container key"};
56 
58  "TrigMuonContainer", "LVL1MuonRoIs", "Input LVL1 Muon RoIs container key"};
59 
60  ToolHandle<ITileCondToolTMDB> m_tileCondToolTMDB{this,
61  "TileCondToolTMDB", "TileCondToolTMDB", "Tile TMDB conditions tool"};
62 
67  "TileCablingSvc", "TileCablingSvc", "The Tile cabling service"};
68 
69  const TileHWID* m_tileHWID{nullptr};
70 
71  std::vector<int> m_ampGroups;
72  std::vector<int> m_timeGroups;
73  std::vector<std::vector<int>> m_ampCell;
74  std::vector<std::vector<int>> m_timeCell;
75 
76  std::vector<int> m_tgcSectorGroup;
77  std::vector<std::vector<std::vector<int>>> m_coinThrDGroup;
78 };
79 #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:72
TileTMDBRawChannelMonitorAlgorithm::m_cablingSvc
ServiceHandle< TileCablingSvc > m_cablingSvc
Name of Tile cabling service.
Definition: TileTMDBRawChannelMonitorAlgorithm.h:66
TileTMDBRawChannelMonitorAlgorithm::m_muonContainerKey
SG::ReadHandleKey< xAOD::MuonContainer > m_muonContainerKey
Definition: TileTMDBRawChannelMonitorAlgorithm.h:54
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:69
TileTMDBRawChannelMonitorAlgorithm::m_coinThrDGroup
std::vector< std::vector< std::vector< int > > > m_coinThrDGroup
Definition: TileTMDBRawChannelMonitorAlgorithm.h:77
SG::ReadHandleKey< TileRawChannelContainer >
TileTMDBRawChannelMonitorAlgorithm::tilemodule_to_check
int tilemodule_to_check(int sector) const
Definition: TileTMDBRawChannelMonitorAlgorithm.cxx:251
TileTMDBRawChannelMonitorAlgorithm::m_numberOfThresholds
Gaudi::Property< bool > m_numberOfThresholds
Definition: TileTMDBRawChannelMonitorAlgorithm.h:48
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:33
TileHWID
Helper class for TileCal online (hardware) identifiers.
Definition: TileHWID.h:49
TileTMDBRawChannelMonitorAlgorithm::m_fillRawChannelHistograms
Gaudi::Property< bool > m_fillRawChannelHistograms
Definition: TileTMDBRawChannelMonitorAlgorithm.h:42
TileTMDBRawChannelMonitorAlgorithm::m_timeCell
std::vector< std::vector< int > > m_timeCell
Definition: TileTMDBRawChannelMonitorAlgorithm.h:74
ITileCondToolTMDB.h
TileTMDBRawChannelMonitorAlgorithm::m_amplitudeThreshold
Gaudi::Property< float > m_amplitudeThreshold
Definition: TileTMDBRawChannelMonitorAlgorithm.h:36
TileTMDBRawChannelMonitorAlgorithm::m_isDSP
Gaudi::Property< bool > m_isDSP
Definition: TileTMDBRawChannelMonitorAlgorithm.h:39
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthMonitorAlgorithm.h
TauGNNUtils::Variables::Track::dPhi
bool dPhi(const xAOD::TauJet &tau, const xAOD::TauTrack &track, double &out)
Definition: TauGNNUtils.cxx:530
TileTMDBRawChannelMonitorAlgorithm::m_fillEfficiencyHistograms
Gaudi::Property< bool > m_fillEfficiencyHistograms
Definition: TileTMDBRawChannelMonitorAlgorithm.h:45
TileTMDBRawChannelMonitorAlgorithm::m_ampCell
std::vector< std::vector< int > > m_ampCell
Definition: TileTMDBRawChannelMonitorAlgorithm.h:73
TileTMDBRawChannelMonitorAlgorithm::m_ampGroups
std::vector< int > m_ampGroups
Definition: TileTMDBRawChannelMonitorAlgorithm.h:71
Monitored.h
Header file to be included by clients of the Monitored infrastructure.
TileTMDBRawChannelMonitorAlgorithm::m_tileCondToolTMDB
ToolHandle< ITileCondToolTMDB > m_tileCondToolTMDB
Definition: TileTMDBRawChannelMonitorAlgorithm.h:60
TileTMDBRawChannelMonitorAlgorithm::initialize
virtual StatusCode initialize() override
initialize
Definition: TileTMDBRawChannelMonitorAlgorithm.cxx:20
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:57
TileTMDBRawChannelMonitorAlgorithm::m_rawChannelContainerKey
SG::ReadHandleKey< TileRawChannelContainer > m_rawChannelContainerKey
Definition: TileTMDBRawChannelMonitorAlgorithm.h:51
TauGNNUtils::Variables::Track::dEta
bool dEta(const xAOD::TauJet &tau, const xAOD::TauTrack &track, double &out)
Definition: TauGNNUtils.cxx:525
TileTMDBRawChannelMonitorAlgorithm::m_tgcSectorGroup
std::vector< int > m_tgcSectorGroup
Definition: TileTMDBRawChannelMonitorAlgorithm.h:76
ServiceHandle< TileCablingSvc >