ATLAS Offline Software
TileDigitsFlxMonitorAlgorithm.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TILEMONITORING_TILEDIGITSFLXALGORITHM_H
6 #define TILEMONITORING_TILEDIGITSFLXALGORITHM_H
7 
8 // Tile includes
10 
11 
12 // Atlas includes
16 
17 class TileHWID;
18 
20 
21  public:
22 
24  virtual ~TileDigitsFlxMonitorAlgorithm() = default;
25  virtual StatusCode initialize() override;
26  virtual StatusCode fillHistograms( const EventContext& ctx ) const override;
27 
28  private:
29 
31  "TileDigitsContainerLegacy", "TileDigitsCnt", "Tile digits container"};
32 
34  "TileDigitsContainerFlx", "TileDigitsFlxCnt", "Tile digits container for Felix"};
35 
36  const TileHWID* m_tileHWID{nullptr};
37 
38  Gaudi::Property<std::vector<int>> m_fragIDsToCompare{this, "TileFragIDsToCompare", {0x201, 0x402}, "Tile Frag IDs of modules to compare."};
39 
40  Gaudi::Property<unsigned int> m_firstSample{this, "FirstSample", 0, "First sample to put into histogram"};
41  Gaudi::Property<unsigned int> m_lastSample{this, "LastSample", 15, "Last sample to put into histogram (inclusive)"};
42  Gaudi::Property<unsigned int> m_felixOffset{this, "FelixOffset", 0, "Offset for comparison of Felix samples w.r.t. Legacy samples"};
43  Gaudi::Property<unsigned int> m_felixScale{this, "FelixScale", 1, "Scale factor between Felix and Legacy ADC counts"}; // 1 for pedestal run or 4 for physics run
44 
45  unsigned int m_firstFelix;
46  unsigned int m_nSamples;
47 
48 };
49 #endif // TILEMONITORING_TILEDIGITSFLXALGORITHM_H
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
TileDigitsFlxMonitorAlgorithm::m_nSamples
unsigned int m_nSamples
Definition: TileDigitsFlxMonitorAlgorithm.h:46
TileDigitsFlxMonitorAlgorithm::fillHistograms
virtual StatusCode fillHistograms(const EventContext &ctx) const override
adds event to the monitoring histograms
Definition: TileDigitsFlxMonitorAlgorithm.cxx:49
TileDigitsFlxMonitorAlgorithm::m_firstFelix
unsigned int m_firstFelix
Definition: TileDigitsFlxMonitorAlgorithm.h:45
TileDigitsFlxMonitorAlgorithm::m_lastSample
Gaudi::Property< unsigned int > m_lastSample
Definition: TileDigitsFlxMonitorAlgorithm.h:41
SG::ReadHandleKey< TileDigitsContainer >
AthMonitorAlgorithm
Base class for Athena Monitoring Algorithms.
Definition: AthMonitorAlgorithm.h:36
TileHWID
Helper class for TileCal online (hardware) identifiers.
Definition: TileHWID.h:49
TileDigitsFlxMonitorAlgorithm::m_fragIDsToCompare
Gaudi::Property< std::vector< int > > m_fragIDsToCompare
Definition: TileDigitsFlxMonitorAlgorithm.h:38
TileDigitsContainer.h
TileDigitsFlxMonitorAlgorithm::m_digitsContainerKeyLegacy
SG::ReadHandleKey< TileDigitsContainer > m_digitsContainerKeyLegacy
Definition: TileDigitsFlxMonitorAlgorithm.h:30
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthMonitorAlgorithm.h
TileDigitsFlxMonitorAlgorithm
Definition: TileDigitsFlxMonitorAlgorithm.py:1
TileDigitsFlxMonitorAlgorithm::initialize
virtual StatusCode initialize() override
initialize
Definition: TileDigitsFlxMonitorAlgorithm.cxx:17
Monitored.h
Header file to be included by clients of the Monitored infrastructure.
TileDigitsFlxMonitorAlgorithm::~TileDigitsFlxMonitorAlgorithm
virtual ~TileDigitsFlxMonitorAlgorithm()=default
TileDigitsFlxMonitorAlgorithm::m_tileHWID
const TileHWID * m_tileHWID
Definition: TileDigitsFlxMonitorAlgorithm.h:36
TileDigitsFlxMonitorAlgorithm::m_firstSample
Gaudi::Property< unsigned int > m_firstSample
Definition: TileDigitsFlxMonitorAlgorithm.h:40
TileDigitsFlxMonitorAlgorithm::m_felixOffset
Gaudi::Property< unsigned int > m_felixOffset
Definition: TileDigitsFlxMonitorAlgorithm.h:42
AthMonitorAlgorithm::AthMonitorAlgorithm
AthMonitorAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition: AthMonitorAlgorithm.cxx:7
TileDigitsFlxMonitorAlgorithm::m_digitsContainerKeyFlx
SG::ReadHandleKey< TileDigitsContainer > m_digitsContainerKeyFlx
Definition: TileDigitsFlxMonitorAlgorithm.h:33
TileDigitsFlxMonitorAlgorithm::m_felixScale
Gaudi::Property< unsigned int > m_felixScale
Definition: TileDigitsFlxMonitorAlgorithm.h:43