ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigT1
TrigT1CaloMonitoring
src
JfexMonitorAlgorithm.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
#ifndef TRIGT1CALOMONITORING_JFEXMONITORALGORITHM_H
5
#define TRIGT1CALOMONITORING_JFEXMONITORALGORITHM_H
6
7
#include "
AthenaMonitoring/AthMonitorAlgorithm.h
"
8
#include "
AthenaMonitoringKernel/Monitored.h
"
9
#include "
StoreGate/ReadHandleKey.h
"
10
11
#include "
xAODTrigger/jFexLRJetRoIContainer.h
"
12
#include "
xAODTrigger/jFexLRJetRoI.h
"
13
#include "
xAODTrigger/jFexSRJetRoIContainer.h
"
14
#include "
xAODTrigger/jFexSRJetRoI.h
"
15
#include "
xAODTrigger/jFexTauRoIContainer.h
"
16
#include "
xAODTrigger/jFexTauRoI.h
"
17
#include "
xAODTrigger/jFexFwdElRoIContainer.h
"
18
#include "
xAODTrigger/jFexFwdElRoI.h
"
19
#include "
xAODTrigger/jFexMETRoIContainer.h
"
20
#include "
xAODTrigger/jFexMETRoI.h
"
21
#include "
xAODTrigger/jFexSumETRoIContainer.h
"
22
#include "
xAODTrigger/jFexSumETRoI.h
"
23
24
#include <mutex>
25
26
class
JfexMonitorAlgorithm
:
public
AthMonitorAlgorithm
{
27
public
:
28
JfexMonitorAlgorithm
(
const
std::string& name, ISvcLocator* pSvcLocator );
29
virtual
~JfexMonitorAlgorithm
()=
default
;
30
virtual
StatusCode
initialize
()
override
;
31
virtual
StatusCode
fillHistograms
(
const
EventContext& ctx )
const override
;
32
33
private
:
34
mutable
std::once_flag
m_initOnce
;
35
36
StringProperty
m_Grouphist
{
this
,
"Grouphist"
,
"JfexMonitor"
,
"group name for histograming"
};
37
StringProperty
m_Groupmaps
{
this
,
"Groupmaps"
,
"jFEXMaps"
,
"group name for jFEX TOB maps"
};
38
StringProperty
m_GroupmapsHighPt
{
this
,
"GroupmapsHighPt"
,
"jFEXMapsHighPt"
,
"group name for jFEX TOB maps with higher energy thresholds"
};
39
Gaudi::Property<std::vector<float>>
m_jJEtaBins
{
this
,
"jJEtaBins"
};
40
Gaudi::Property<std::vector<float>>
m_jTauEtaBins
{
this
,
"jTauEtaBins"
};
41
Gaudi::Property<std::vector<float>>
m_jEMEtaBins
{
this
,
"jEMEtaBins"
};
42
43
44
// container keys including this, steering parameter, default value and help description
45
SG::ReadHandleKey< xAOD::jFexSRJetRoIContainer >
m_jFexSRJetContainerKey
{
this
,
"jFexSRJetRoIContainer"
,
"L1_jFexSRJetRoI"
,
"SG key of the input jFex SR Jet Roi container"
};
46
SG::ReadHandleKey< xAOD::jFexLRJetRoIContainer >
m_jFexLRJetContainerKey
{
this
,
"jFexLRJetRoIContainer"
,
"L1_jFexLRJetRoI"
,
"SG key of the input jFex LR Jet Roi container"
};
47
SG::ReadHandleKey< xAOD::jFexTauRoIContainer >
m_jFexTauContainerKey
{
this
,
"jFexTauRoIContainer"
,
"L1_jFexTauRoI"
,
"SG key of the input jFex Tau Roi container"
};
48
SG::ReadHandleKey< xAOD::jFexFwdElRoIContainer >
m_jFexFwdElContainerKey
{
this
,
"jFexFwdElRoIContainer"
,
"L1_jFexFwdElRoI"
,
"SG key of the input jFex EM Roi container"
};
49
SG::ReadHandleKey< xAOD::jFexMETRoIContainer >
m_jFexMETContainerKey
{
this
,
"jFexMETRoIContainer"
,
"L1_jFexMETRoI"
,
"SG key of the input jFex MET Roi container"
};
50
SG::ReadHandleKey< xAOD::jFexSumETRoIContainer >
m_jFexSumEtContainerKey
{
this
,
"jFexSumETRoIContainer"
,
"L1_jFexSumETRoI"
,
"SG key of the input jFex SumEt Roi container"
};
51
52
int
binNumberFromCoordinates(
float
eta
,
float
phi
,
const
std::vector<float>& etaBinBorders)
const
;
53
54
StatusCode fillJetMaps(
const
xAOD::jFexSRJetRoI
*tob,
55
Monitored::Scalar<float>
&
eta
,
56
Monitored::Scalar<float>
&
phi
,
57
Monitored::Scalar<int>
&binNumber,
58
Monitored::Scalar<int>
&lbn,
59
Monitored::Scalar<float>
&weight)
const
;
60
StatusCode fillEMMaps(
const
xAOD::jFexFwdElRoI
*tob,
61
Monitored::Scalar<float>
&
eta
,
62
Monitored::Scalar<float>
&
phi
,
63
Monitored::Scalar<int>
&binNumber,
64
Monitored::Scalar<int>
&lbn,
65
Monitored::Scalar<float>
&weight)
const
;
66
// for filling maps where phi binning is ~0.1
67
template
<
typename
TOB>
68
StatusCode fillMapsCentralAndFCAL(TOB tob,
69
Monitored::Scalar<float>
&
eta
,
70
Monitored::Scalar<float>
&
phi
,
71
Monitored::Scalar<int>
&binNumber,
72
Monitored::Scalar<int>
&lbn,
73
const
std::vector<float>& etaBinBorders,
74
Monitored::Scalar<float>
&weight)
const
;
75
// for faking ~0.2 phi binning in endcap
76
template
<
typename
TOB>
77
StatusCode fillMapsEndcap(TOB tob,
78
Monitored::Scalar<float>
&
eta
,
79
Monitored::Scalar<float>
&
phi
,
80
Monitored::Scalar<int>
&binNumber,
81
Monitored::Scalar<int>
&lbn,
82
const
std::vector<float>& etaBinBorders,
83
Monitored::Scalar<float>
&weight)
const
;
84
// special handling for jets in endcap/FCAL overlap
85
StatusCode fillMapsOverlap(
const
xAOD::jFexSRJetRoI
* tob,
86
Monitored::Scalar<float>
&
eta
,
87
Monitored::Scalar<float>
&
phi
,
88
Monitored::Scalar<int>
&binNumber,
89
Monitored::Scalar<int>
&lbn,
90
const
std::vector<float>& etaBinBorders,
91
Monitored::Scalar<float>
&weight)
const
;
92
93
bool
passesEnergyCut(
const
xAOD::jFexSRJetRoI
*tob)
const
;
94
bool
passesEnergyCut(
const
xAOD::jFexFwdElRoI
*tob)
const
;
95
bool
passesEnergyCut(
const
xAOD::jFexTauRoI
*tob)
const
;
96
};
97
#endif
eta
Scalar eta() const
pseudorapidity method
Definition
AmgMatrixBasePlugin.h:83
phi
Scalar phi() const
phi method
Definition
AmgMatrixBasePlugin.h:67
AthMonitorAlgorithm.h
Monitored.h
Header file to be included by clients of the Monitored infrastructure.
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
AthMonitorAlgorithm::AthMonitorAlgorithm
AthMonitorAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
AthMonitorAlgorithm.cxx:8
JfexMonitorAlgorithm::m_GroupmapsHighPt
StringProperty m_GroupmapsHighPt
Definition
JfexMonitorAlgorithm.h:38
JfexMonitorAlgorithm::m_jFexTauContainerKey
SG::ReadHandleKey< xAOD::jFexTauRoIContainer > m_jFexTauContainerKey
Definition
JfexMonitorAlgorithm.h:47
JfexMonitorAlgorithm::m_jFexFwdElContainerKey
SG::ReadHandleKey< xAOD::jFexFwdElRoIContainer > m_jFexFwdElContainerKey
Definition
JfexMonitorAlgorithm.h:48
JfexMonitorAlgorithm::m_jEMEtaBins
Gaudi::Property< std::vector< float > > m_jEMEtaBins
Definition
JfexMonitorAlgorithm.h:41
JfexMonitorAlgorithm::m_Grouphist
StringProperty m_Grouphist
Definition
JfexMonitorAlgorithm.h:36
JfexMonitorAlgorithm::m_jFexSumEtContainerKey
SG::ReadHandleKey< xAOD::jFexSumETRoIContainer > m_jFexSumEtContainerKey
Definition
JfexMonitorAlgorithm.h:50
JfexMonitorAlgorithm::m_jJEtaBins
Gaudi::Property< std::vector< float > > m_jJEtaBins
Definition
JfexMonitorAlgorithm.h:39
JfexMonitorAlgorithm::m_initOnce
std::once_flag m_initOnce
Definition
JfexMonitorAlgorithm.h:34
JfexMonitorAlgorithm::m_jFexMETContainerKey
SG::ReadHandleKey< xAOD::jFexMETRoIContainer > m_jFexMETContainerKey
Definition
JfexMonitorAlgorithm.h:49
JfexMonitorAlgorithm::m_jTauEtaBins
Gaudi::Property< std::vector< float > > m_jTauEtaBins
Definition
JfexMonitorAlgorithm.h:40
JfexMonitorAlgorithm::m_Groupmaps
StringProperty m_Groupmaps
Definition
JfexMonitorAlgorithm.h:37
JfexMonitorAlgorithm::m_jFexSRJetContainerKey
SG::ReadHandleKey< xAOD::jFexSRJetRoIContainer > m_jFexSRJetContainerKey
Definition
JfexMonitorAlgorithm.h:45
JfexMonitorAlgorithm::~JfexMonitorAlgorithm
virtual ~JfexMonitorAlgorithm()=default
JfexMonitorAlgorithm::fillHistograms
virtual StatusCode fillHistograms(const EventContext &ctx) const override
adds event to the monitoring histograms
Definition
JfexMonitorAlgorithm.cxx:39
JfexMonitorAlgorithm::m_jFexLRJetContainerKey
SG::ReadHandleKey< xAOD::jFexLRJetRoIContainer > m_jFexLRJetContainerKey
Definition
JfexMonitorAlgorithm.h:46
Monitored::Scalar
Declare a monitored scalar variable.
Definition
MonitoredScalar.h:34
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
jFexFwdElRoIContainer.h
jFexFwdElRoI.h
jFexLRJetRoIContainer.h
jFexLRJetRoI.h
jFexMETRoIContainer.h
jFexMETRoI.h
jFexSRJetRoIContainer.h
jFexSRJetRoI.h
jFexSumETRoIContainer.h
jFexSumETRoI.h
jFexTauRoIContainer.h
jFexTauRoI.h
JfexMonitorAlgorithm
Definition
JfexMonitorAlgorithm.py:1
xAOD::jFexFwdElRoI
jFexFwdElRoI_v1 jFexFwdElRoI
Define the latest version of the jFexFwdElJetRoI class.
Definition
jFexFwdElRoI.h:13
xAOD::jFexTauRoI
jFexTauRoI_v1 jFexTauRoI
Define the latest version of the jFexSRJetRoI class.
Definition
jFexTauRoI.h:13
xAOD::jFexSRJetRoI
jFexSRJetRoI_v1 jFexSRJetRoI
Define the latest version of the jFexSRJetRoI class.
Definition
jFexSRJetRoI.h:14
initialize
void initialize()
Definition
run_EoverP.cxx:894
Generated on
for ATLAS Offline Software by
1.17.0