ATLAS Offline Software
JfexInputMonitorAlgorithm.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_JFEXINPUTMONITORALGORITHM_H
5 #define TRIGT1CALOMONITORING_JFEXINPUTMONITORALGORITHM_H
6 
9 #include "StoreGate/ReadHandle.h"
13 
16 
18 
19 #include <atomic>
20 
22  public:
23  JfexInputMonitorAlgorithm( const std::string& name, ISvcLocator* pSvcLocator );
24  virtual ~JfexInputMonitorAlgorithm()=default;
25  virtual StatusCode initialize() override;
26  virtual StatusCode fillHistograms( const EventContext& ctx ) const override;
27 
28  private:
29 
30  StringProperty m_Grouphist{this,"Grouphist","JfexInputMonitor","group name for histograming"};
31 
32  ToolHandle<GenericMonitoringTool> m_monTool{this,"jFEXMonTool","","Monitoring tool"};
33  void genError(const std::string& location, const std::string& title) const;
34 
35  // container keys including steering parameter and description
36  SG::ReadHandleKey<xAOD::jFexTowerContainer> m_jFexDataTowerKey {this, "jFexDataTower","L1_jFexDataTowers","SG key of the input jFex Tower container"};
37  SG::ReadHandleKey<xAOD::jFexTowerContainer> m_jFexEmulatedTowerKey{this, "jFexEmulatedTower","L1_jFexEmulatedTowers","SG key of the emulated jFex Tower container"};
38 
39  SG::ReadDecorHandleKey<xAOD::jFexTowerContainer> m_jtowerEtMeVdecorKey{ this, "jtowerEtMeVdecorKey", m_jFexDataTowerKey, "jtowerEtMeV" , "jFex Tower Et information in MeV"};
40  SG::ReadDecorHandleKey<xAOD::jFexTowerContainer> m_SCellEtMeVdecorKey { this, "SCellEtMeVdecorKey" , m_jFexDataTowerKey, "SCellEtMeV" , "SCell Et sum information in MeV"};
41  SG::ReadDecorHandleKey<xAOD::jFexTowerContainer> m_TileEtMeVdecorKey { this, "TileEtMeVdecorKey" , m_jFexDataTowerKey, "TileEtMeV" , "Tile Et information in MeV"};
42  SG::ReadDecorHandleKey<xAOD::jFexTowerContainer> m_jTowerEtdecorKey { this, "jTowerEtdecorKey" , m_jFexDataTowerKey, "emulated_jtowerEt" , "jFex Tower Et information. ENCODED!"};
43 
44 
45  SG::ReadCondHandleKey<LArBadChannelCont> m_bcContKey{this, "LArMaskedChannelKey", "LArMaskedSC", "Key of the OTF-Masked SC" };
46 
47 
48  unsigned int m_InvalidCode = 4095;
49  unsigned int m_EmptyCode = 0;
50 
51  int codedVal(int, int) const;
52 
53  // number of warnings counter
54  mutable std::atomic<int> m_nJFexWarnVar;
55  const int m_nJFexWarnMax = 10;
56 };
57 #endif
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
JfexInputMonitorAlgorithm::m_jFexDataTowerKey
SG::ReadHandleKey< xAOD::jFexTowerContainer > m_jFexDataTowerKey
Definition: JfexInputMonitorAlgorithm.h:36
JfexInputMonitorAlgorithm
Definition: JfexInputMonitorAlgorithm.py:1
jFexTowerContainer.h
JfexInputMonitorAlgorithm::m_SCellEtMeVdecorKey
SG::ReadDecorHandleKey< xAOD::jFexTowerContainer > m_SCellEtMeVdecorKey
Definition: JfexInputMonitorAlgorithm.h:40
JfexInputMonitorAlgorithm::m_nJFexWarnVar
std::atomic< int > m_nJFexWarnVar
Definition: JfexInputMonitorAlgorithm.h:54
ReadDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
JfexInputMonitorAlgorithm::m_InvalidCode
unsigned int m_InvalidCode
Definition: JfexInputMonitorAlgorithm.h:48
JfexInputMonitorAlgorithm::m_jFexEmulatedTowerKey
SG::ReadHandleKey< xAOD::jFexTowerContainer > m_jFexEmulatedTowerKey
Definition: JfexInputMonitorAlgorithm.h:37
JfexInputMonitorAlgorithm::~JfexInputMonitorAlgorithm
virtual ~JfexInputMonitorAlgorithm()=default
JfexInputMonitorAlgorithm::JfexInputMonitorAlgorithm
JfexInputMonitorAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Definition: JfexInputMonitorAlgorithm.cxx:7
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
JfexInputMonitorAlgorithm::m_monTool
ToolHandle< GenericMonitoringTool > m_monTool
Definition: JfexInputMonitorAlgorithm.h:32
JfexInputMonitorAlgorithm::m_EmptyCode
unsigned int m_EmptyCode
Definition: JfexInputMonitorAlgorithm.h:49
AthMonitorAlgorithm
Base class for Athena Monitoring Algorithms.
Definition: AthMonitorAlgorithm.h:36
LArBadChannelCont.h
JfexInputMonitorAlgorithm::genError
void genError(const std::string &location, const std::string &title) const
Definition: JfexInputMonitorAlgorithm.cxx:363
JfexInputMonitorAlgorithm::fillHistograms
virtual StatusCode fillHistograms(const EventContext &ctx) const override
adds event to the monitoring histograms
Definition: JfexInputMonitorAlgorithm.cxx:41
jFexTower.h
JfexInputMonitorAlgorithm::m_jtowerEtMeVdecorKey
SG::ReadDecorHandleKey< xAOD::jFexTowerContainer > m_jtowerEtMeVdecorKey
Definition: JfexInputMonitorAlgorithm.h:39
JfexInputMonitorAlgorithm::codedVal
int codedVal(int, int) const
Definition: JfexInputMonitorAlgorithm.cxx:358
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthMonitorAlgorithm.h
covarianceTool.title
title
Definition: covarianceTool.py:542
Monitored.h
Header file to be included by clients of the Monitored infrastructure.
JfexInputMonitorAlgorithm::m_TileEtMeVdecorKey
SG::ReadDecorHandleKey< xAOD::jFexTowerContainer > m_TileEtMeVdecorKey
Definition: JfexInputMonitorAlgorithm.h:41
JfexInputMonitorAlgorithm::m_jTowerEtdecorKey
SG::ReadDecorHandleKey< xAOD::jFexTowerContainer > m_jTowerEtdecorKey
Definition: JfexInputMonitorAlgorithm.h:42
JfexInputMonitorAlgorithm::m_bcContKey
SG::ReadCondHandleKey< LArBadChannelCont > m_bcContKey
Definition: JfexInputMonitorAlgorithm.h:45
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
SG::ReadCondHandleKey
Definition: ReadCondHandleKey.h:20
JfexInputMonitorAlgorithm::m_Grouphist
StringProperty m_Grouphist
Definition: JfexInputMonitorAlgorithm.h:30
ReadDecorHandle.h
Handle class for reading a decoration on an object.
JfexInputMonitorAlgorithm::m_nJFexWarnMax
const int m_nJFexWarnMax
Definition: JfexInputMonitorAlgorithm.h:55
ReadHandle.h
Handle class for reading from StoreGate.
SG::ReadDecorHandleKey
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
Definition: StoreGate/StoreGate/ReadDecorHandleKey.h:85
JfexInputMonitorAlgorithm::initialize
virtual StatusCode initialize() override
initialize
Definition: JfexInputMonitorAlgorithm.cxx:12