ATLAS Offline Software
L1CaloLevel2Mon.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 // ********************************************************************
6 //
7 // NAME: L1CaloLevel2Mon.h
8 // PACKAGE: TrigT1CaloMonitoring
9 //
10 // AUTHOR: Johanna Fleckner (Johanna.Fleckner@uni-mainz.de)
11 //
12 // DESCRIPTION: Monitoring of transmission L1Calo-->Level2
13 //
14 // ********************************************************************
15 
16 #ifndef L1CaloLevel2Mon_H
17 #define L1CaloLevel2Mon_H
18 
19 #include <string>
20 #include <vector>
21 
22 #include "GaudiKernel/ToolHandle.h"
23 
26 
27 class StatusCode;
28 class LWHist;
29 class TH1F_LW;
30 class TH2F_LW;
31 class TH2I_LW;
32 
33 
34 namespace ROIB {
35  class EMTauResult;
36  class EMTauRoI;
37  class JetEnergyResult;
38  class JetEnergyRoI;
39 }
40 // ============================================================================
41 namespace LVL1 {
42 // ============================================================================
43 // Forward declarations:
44 // ============================================================================
45 class CPMRoI;
46 class JEMRoI;
47 class ITrigT1CaloMonErrorTool;
48 class TrigT1CaloLWHistogramToolV1;
49 // ============================================================================
118 {
119 public:
120 
121  L1CaloLevel2Mon( const std::string & type, const std::string & name,
122  const IInterface* parent );
123 
124  virtual ~L1CaloLevel2Mon();
125 
126  virtual StatusCode initialize();
128  virtual StatusCode fillHistograms();
129  virtual StatusCode procHistograms();
130 
131 private:
132 
137 
140  typedef std::vector<ROIB::EMTauResult> EMTauResultCollection;
141  typedef std::vector<ROIB::EMTauRoI> EMTauRoICollection;
142  typedef std::vector<ROIB::JetEnergyResult> JetEnergyResultCollection;
143  typedef std::vector<ROIB::JetEnergyRoI> JetEnergyRoICollection;
144 
146  void setLabels(LWHist* hist, bool xAxis = true);
147 
149  ToolHandle<ITrigT1CaloMonErrorTool> m_errorTool;
151  ToolHandle<TrigT1CaloLWHistogramToolV1> m_histTool;
152 
153  // Location of data
162 
164  std::string m_PathInRootFile;
167 
169  // Data transmission checks
176 };
177 // ============================================================================
178 } // end namespace
179 // ============================================================================
180 
181 #endif
LWHist
Definition: LWHist.h:26
LVL1::L1CaloLevel2Mon::NumberOfRoiTypes
@ NumberOfRoiTypes
Definition: L1CaloLevel2Mon.h:136
ManagedMonitorToolBase
Provides functionality for users to implement and save histograms, ntuples, and summary data,...
Definition: ManagedMonitorToolBase.h:74
plotmaker.hist
hist
Definition: plotmaker.py:148
LVL1::L1CaloLevel2Mon::EMTauRoICollection
std::vector< ROIB::EMTauRoI > EMTauRoICollection
Definition: L1CaloLevel2Mon.h:141
LVL1::L1CaloLevel2Mon::m_h_l2_2d_MismatchEvents
TH2I_LW * m_h_l2_2d_MismatchEvents
Transmission Errors between L1Calo and Level2 Event Numbers.
Definition: L1CaloLevel2Mon.h:175
LVL1::L1CaloLevel2Mon
Monitoring of L1Calo --> Level2 transmission.
Definition: L1CaloLevel2Mon.h:118
LVL1::L1CaloLevel2Mon::m_histBooked
bool m_histBooked
Histograms booked flag.
Definition: L1CaloLevel2Mon.h:166
LVL1::L1CaloLevel2Mon::MissingEtType
@ MissingEtType
Definition: L1CaloLevel2Mon.h:135
LVL1::L1CaloLevel2Mon::EMTauType
@ EMTauType
Definition: L1CaloLevel2Mon.h:134
LVL1::L1CaloLevel2Mon::m_L1Calo_CMMRoILocation
std::string m_L1Calo_CMMRoILocation
CMMRoI StoreGate key.
Definition: L1CaloLevel2Mon.h:157
LVL1::L1CaloLevel2Mon::bookHistogramsRecurrent
virtual StatusCode bookHistogramsRecurrent()
An inheriting class should either override this function, bookHists() or bookHistograms().
Definition: L1CaloLevel2Mon.cxx:112
ROIB
Namespace of the LVL1 RoIB simulation.
Definition: ILvl1ResultAccessTool.h:19
LVL1::L1CaloLevel2Mon::~L1CaloLevel2Mon
virtual ~L1CaloLevel2Mon()
Definition: L1CaloLevel2Mon.cxx:80
LVL1
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
Definition: ICMMCPHitsCnvTool.h:18
LVL1::L1CaloLevel2Mon::JemRoiCollection
DataVector< LVL1::JEMRoI > JemRoiCollection
Definition: L1CaloLevel2Mon.h:139
LVL1::L1CaloLevel2Mon::m_h_l2_2d_CPMRoIErrorsEM
TH2F_LW * m_h_l2_2d_CPMRoIErrorsEM
Transmission Errors between CPMs and Level2 EM.
Definition: L1CaloLevel2Mon.h:173
LVL1::L1CaloLevel2Mon::procHistograms
virtual StatusCode procHistograms()
An inheriting class should either override this function or finalHists().
Definition: L1CaloLevel2Mon.cxx:570
ManagedMonitorToolBase.h
LVL1::L1CaloLevel2Mon::EnergyType
@ EnergyType
Definition: L1CaloLevel2Mon.h:134
TH1F_LW
Definition: TH1F_LW.h:23
LVL1::L1CaloLevel2Mon::JetEtType
@ JetEtType
Definition: L1CaloLevel2Mon.h:134
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
LVL1::L1CaloLevel2Mon::JetType
@ JetType
Definition: L1CaloLevel2Mon.h:134
LVL1::L1CaloLevel2Mon::L1CaloLevel2Mon
L1CaloLevel2Mon(const std::string &type, const std::string &name, const IInterface *parent)
Definition: L1CaloLevel2Mon.cxx:48
test_pyathena.parent
parent
Definition: test_pyathena.py:15
LVL1::L1CaloLevel2Mon::m_histTool
ToolHandle< TrigT1CaloLWHistogramToolV1 > m_histTool
Histogramming utilities.
Definition: L1CaloLevel2Mon.h:151
LVL1::L1CaloLevel2Mon::EMType
@ EMType
Definition: L1CaloLevel2Mon.h:134
LVL1::L1CaloLevel2Mon::m_L2_RoIBResultLocation
std::string m_L2_RoIBResultLocation
RoIBResult StoreGate key.
Definition: L1CaloLevel2Mon.h:161
LVL1::L1CaloLevel2Mon::setLabels
void setLabels(LWHist *hist, bool xAxis=true)
Set histogram bin labels for summary plots.
Definition: L1CaloLevel2Mon.cxx:580
DataVector
Derived DataVector<T>.
Definition: DataVector.h:581
TrigConf::name
Definition: HLTChainList.h:35
LVL1::L1CaloLevel2Mon::fillHistograms
virtual StatusCode fillHistograms()
An inheriting class should either override this function or fillHists().
Definition: L1CaloLevel2Mon.cxx:173
LVL1::L1CaloLevel2Mon::initialize
virtual StatusCode initialize()
Definition: L1CaloLevel2Mon.cxx:86
TH2I_LW
Definition: TH2I_LW.h:23
LVL1::L1CaloLevel2Mon::m_L1Calo_CPMRoILocation
std::string m_L1Calo_CPMRoILocation
CPMRoI collection StoreGate key.
Definition: L1CaloLevel2Mon.h:159
LVL1::L1CaloLevel2Mon::CpmRoiCollection
DataVector< LVL1::CPMRoI > CpmRoiCollection
Definition: L1CaloLevel2Mon.h:138
LVL1::L1CaloLevel2Mon::m_errorTool
ToolHandle< ITrigT1CaloMonErrorTool > m_errorTool
Corrupt events tool.
Definition: L1CaloLevel2Mon.h:149
LVL1::L1CaloLevel2Mon::EMTauResultCollection
std::vector< ROIB::EMTauResult > EMTauResultCollection
Definition: L1CaloLevel2Mon.h:140
DataVector.h
An STL vector of pointers that by default owns its pointed-to elements.
LVL1::L1CaloLevel2Mon::m_h_l2_2d_CPMRoIErrorsEMTau
TH2F_LW * m_h_l2_2d_CPMRoIErrorsEMTau
Transmission Errors between CPMs and Level2 EMTau.
Definition: L1CaloLevel2Mon.h:174
LVL1::L1CaloLevel2Mon::m_h_l2_1d_L1EqL2Summary
TH1F_LW * m_h_l2_1d_L1EqL2Summary
Transmission Matches between L1Calo and Level2.
Definition: L1CaloLevel2Mon.h:171
LVL1::L1CaloLevel2Mon::SumEtType
@ SumEtType
Definition: L1CaloLevel2Mon.h:135
LVL1::L1CaloLevel2Mon::JetEnergyResultCollection
std::vector< ROIB::JetEnergyResult > JetEnergyResultCollection
Definition: L1CaloLevel2Mon.h:142
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
LVL1::L1CaloLevel2Mon::m_L1Calo_JEMRoILocation
std::string m_L1Calo_JEMRoILocation
JEMRoI collection StoreGate key.
Definition: L1CaloLevel2Mon.h:155
LVL1::L1CaloLevel2Mon::m_h_l2_1d_L1NeL2Summary
TH1F_LW * m_h_l2_1d_L1NeL2Summary
Histos.
Definition: L1CaloLevel2Mon.h:170
LVL1::L1CaloLevel2Mon::m_h_l2_2d_JEMRoIErrors
TH2F_LW * m_h_l2_2d_JEMRoIErrors
Transmission Errors between JEMs and Level2.
Definition: L1CaloLevel2Mon.h:172
LVL1::L1CaloLevel2Mon::m_PathInRootFile
std::string m_PathInRootFile
Root histogram directory.
Definition: L1CaloLevel2Mon.h:164
TH2F_LW
Definition: TH2F_LW.h:23
LVL1::L1CaloLevel2Mon::L1CaloL2RoiTypes
L1CaloL2RoiTypes
Threshold types for binning.
Definition: L1CaloLevel2Mon.h:134
LVL1::L1CaloLevel2Mon::MissingEtSigType
@ MissingEtSigType
Definition: L1CaloLevel2Mon.h:135
xAOD::CPMRoI
CPMRoI_v1 CPMRoI
Define the latest version of the CPMRoI class.
Definition: Event/xAOD/xAODTrigL1Calo/xAODTrigL1Calo/CPMRoI.h:14
LVL1::L1CaloLevel2Mon::JetEnergyRoICollection
std::vector< ROIB::JetEnergyRoI > JetEnergyRoICollection
Definition: L1CaloLevel2Mon.h:143
xAOD::JEMRoI
JEMRoI_v1 JEMRoI
Define the latest version of the JEMRoI class.
Definition: Event/xAOD/xAODTrigL1Calo/xAODTrigL1Calo/JEMRoI.h:14