ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigT1
TrigT1CaloCalibTools
TrigT1CaloCalibTools
L1CaloMonitoringCaloTool.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
6
// ********************************************************************
7
//
8
// NAME: L1CaloMonitoringCaloTool.h
9
// PACKAGE: TrigT1CaloCalibTools
10
//
11
// AUTHOR: Peter Faulkner
12
//
13
// ********************************************************************
14
#ifndef TRIGT1CALOCALIBTOOLS_L1CALOMONITORINGCALOTOOL_H
15
#define TRIGT1CALOCALIBTOOLS_L1CALOMONITORINGCALOTOOL_H
16
17
#include <string>
18
#include <vector>
19
20
#include "
AsgTools/AsgTool.h
"
21
#include "GaudiKernel/ToolHandle.h"
22
#include "
StoreGate/ReadCondHandleKey.h
"
23
24
#include "
TrigT1CaloCalibToolInterfaces/IL1CaloMonitoringCaloTool.h
"
25
#include "
TrigT1CaloCalibToolInterfaces/IL1CaloMatchCell2Tower.h
"
26
#include "
LArCabling/LArOnOffIdMapping.h
"
27
28
class
IInterface;
29
class
StatusCode
;
30
31
class
Identifier
;
32
class
CaloLVL1_ID
;
33
34
namespace
LVL1
{
35
36
class
L1CaloMonitoringCaloTool
:
public
IL1CaloMonitoringCaloTool
,
public
asg::AsgTool
37
{
39
ASG_TOOL_CLASS
(
L1CaloMonitoringCaloTool
,
LVL1::IL1CaloMonitoringCaloTool
)
40
41
public
:
43
L1CaloMonitoringCaloTool
(
const
std::string&
name
);
45
virtual
~L1CaloMonitoringCaloTool
(){}
47
L1CaloMonitoringCaloTool
() =
delete
;
48
L1CaloMonitoringCaloTool
(
const
L1CaloMonitoringCaloTool
& rhs) =
delete
;
49
L1CaloMonitoringCaloTool
(
L1CaloMonitoringCaloTool
&& rhs) =
delete
;
50
L1CaloMonitoringCaloTool
&
operator=
(
const
L1CaloMonitoringCaloTool
& rhs) =
delete
;
51
52
virtual
StatusCode
initialize
();
53
virtual
StatusCode
finalize
();
54
55
StatusCode
loadCaloCells
();
56
float
et
(
const
Identifier
& ttid)
const
;
57
float
caloQuality
(
const
Identifier
& ttid)
const
;
58
59
private
:
60
61
int
towerIndex
(
const
Identifier
& ttId)
const
;
62
int
region
(
const
int
index
)
const
;
63
int
etaBin
(
const
int
index
)
const
;
64
65
SG::ReadCondHandleKey<LArOnOffIdMapping>
m_cablingKey
66
{
this
,
"CablingKey"
,
"LArOnOffIdMap"
,
"SG Key of LArOnOffIdMapping object"
};
67
68
ToolHandle<LVL1::IL1CaloMatchCell2Tower>
m_cellMatch
69
{
this
,
"L1CaloMatchCell2Tower"
,
"LVL1::L1CaloMatchCell2Tower"
,
"L1CaloMatchCell2Tower"
};
70
const
CaloLVL1_ID
*
m_lvl1Helper
;
71
72
std::string
m_caloCellContainerName
;
73
74
std::vector<float>
m_energySums
;
75
std::vector<float>
m_quality
;
76
std::vector<float>
m_denom
;
77
std::vector<float>
m_sinTh
;
78
std::vector<unsigned int>
m_cellIds
;
79
std::vector<int>
m_ttIdx
;
80
unsigned
int
m_maxCells
;
81
82
int
m_events
;
83
int
m_lastRun
;
84
int
m_lastEvent
;
85
int
m_sideOffset
;
86
int
m_layerOffset
;
87
std::vector<int>
m_binOffset
;
88
std::vector<int>
m_indexOffset
;
89
std::vector<int>
m_etaShift
;
90
91
static
const
int
s_maxTowers
= 7168;
92
static
const
int
s_nregions
= 4;
93
static
const
int
s_nsinThBins
= 33;
94
};
95
96
}
// end namespace
97
98
#endif
ASG_TOOL_CLASS
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
Definition
AsgToolMacros.h:68
AsgTool.h
IL1CaloMatchCell2Tower.h
Map from calo cells to trigger towers.
IL1CaloMonitoringCaloTool.h
LArOnOffIdMapping.h
ReadCondHandleKey.h
CaloLVL1_ID
Helper class for offline TT identifiers.
Definition
CaloLVL1_ID.h:66
LVL1::IL1CaloMonitoringCaloTool
Definition
IL1CaloMonitoringCaloTool.h:23
LVL1::L1CaloMonitoringCaloTool::m_layerOffset
int m_layerOffset
Definition
L1CaloMonitoringCaloTool.h:86
LVL1::L1CaloMonitoringCaloTool::m_maxCells
unsigned int m_maxCells
Definition
L1CaloMonitoringCaloTool.h:80
LVL1::L1CaloMonitoringCaloTool::m_caloCellContainerName
std::string m_caloCellContainerName
Definition
L1CaloMonitoringCaloTool.h:72
LVL1::L1CaloMonitoringCaloTool::operator=
L1CaloMonitoringCaloTool & operator=(const L1CaloMonitoringCaloTool &rhs)=delete
LVL1::L1CaloMonitoringCaloTool::~L1CaloMonitoringCaloTool
virtual ~L1CaloMonitoringCaloTool()
destructor
Definition
L1CaloMonitoringCaloTool.h:45
LVL1::L1CaloMonitoringCaloTool::L1CaloMonitoringCaloTool
L1CaloMonitoringCaloTool()=delete
delete the big 4
LVL1::L1CaloMonitoringCaloTool::m_cellMatch
ToolHandle< LVL1::IL1CaloMatchCell2Tower > m_cellMatch
Definition
L1CaloMonitoringCaloTool.h:69
LVL1::L1CaloMonitoringCaloTool::initialize
virtual StatusCode initialize()
Dummy implementation of the initialisation function.
Definition
L1CaloMonitoringCaloTool.cxx:61
LVL1::L1CaloMonitoringCaloTool::m_lastRun
int m_lastRun
Definition
L1CaloMonitoringCaloTool.h:83
LVL1::L1CaloMonitoringCaloTool::s_maxTowers
static const int s_maxTowers
Definition
L1CaloMonitoringCaloTool.h:91
LVL1::L1CaloMonitoringCaloTool::m_indexOffset
std::vector< int > m_indexOffset
Definition
L1CaloMonitoringCaloTool.h:88
LVL1::L1CaloMonitoringCaloTool::finalize
virtual StatusCode finalize()
Definition
L1CaloMonitoringCaloTool.cxx:129
LVL1::L1CaloMonitoringCaloTool::L1CaloMonitoringCaloTool
L1CaloMonitoringCaloTool(const std::string &name)
Create a proper constructor for Athena.
Definition
L1CaloMonitoringCaloTool.cxx:42
LVL1::L1CaloMonitoringCaloTool::etaBin
int etaBin(const int index) const
Definition
L1CaloMonitoringCaloTool.cxx:325
LVL1::L1CaloMonitoringCaloTool::m_binOffset
std::vector< int > m_binOffset
Definition
L1CaloMonitoringCaloTool.h:87
LVL1::L1CaloMonitoringCaloTool::m_lastEvent
int m_lastEvent
Definition
L1CaloMonitoringCaloTool.h:84
LVL1::L1CaloMonitoringCaloTool::m_quality
std::vector< float > m_quality
Definition
L1CaloMonitoringCaloTool.h:75
LVL1::L1CaloMonitoringCaloTool::L1CaloMonitoringCaloTool
L1CaloMonitoringCaloTool(const L1CaloMonitoringCaloTool &rhs)=delete
LVL1::L1CaloMonitoringCaloTool::region
int region(const int index) const
Definition
L1CaloMonitoringCaloTool.cxx:308
LVL1::L1CaloMonitoringCaloTool::m_cablingKey
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
Definition
L1CaloMonitoringCaloTool.h:66
LVL1::L1CaloMonitoringCaloTool::m_lvl1Helper
const CaloLVL1_ID * m_lvl1Helper
Definition
L1CaloMonitoringCaloTool.h:70
LVL1::L1CaloMonitoringCaloTool::loadCaloCells
StatusCode loadCaloCells()
Declare the interface that the class provides.
Definition
L1CaloMonitoringCaloTool.cxx:136
LVL1::L1CaloMonitoringCaloTool::m_etaShift
std::vector< int > m_etaShift
Definition
L1CaloMonitoringCaloTool.h:89
LVL1::L1CaloMonitoringCaloTool::m_ttIdx
std::vector< int > m_ttIdx
Definition
L1CaloMonitoringCaloTool.h:79
LVL1::L1CaloMonitoringCaloTool::L1CaloMonitoringCaloTool
L1CaloMonitoringCaloTool(L1CaloMonitoringCaloTool &&rhs)=delete
LVL1::L1CaloMonitoringCaloTool::m_sideOffset
int m_sideOffset
Definition
L1CaloMonitoringCaloTool.h:85
LVL1::L1CaloMonitoringCaloTool::m_denom
std::vector< float > m_denom
Definition
L1CaloMonitoringCaloTool.h:76
LVL1::L1CaloMonitoringCaloTool::m_energySums
std::vector< float > m_energySums
Definition
L1CaloMonitoringCaloTool.h:74
LVL1::L1CaloMonitoringCaloTool::s_nregions
static const int s_nregions
Definition
L1CaloMonitoringCaloTool.h:92
LVL1::L1CaloMonitoringCaloTool::m_events
int m_events
Definition
L1CaloMonitoringCaloTool.h:82
LVL1::L1CaloMonitoringCaloTool::et
float et(const Identifier &ttid) const
Definition
L1CaloMonitoringCaloTool.cxx:272
LVL1::L1CaloMonitoringCaloTool::m_sinTh
std::vector< float > m_sinTh
Definition
L1CaloMonitoringCaloTool.h:77
LVL1::L1CaloMonitoringCaloTool::s_nsinThBins
static const int s_nsinThBins
Definition
L1CaloMonitoringCaloTool.h:93
LVL1::L1CaloMonitoringCaloTool::m_cellIds
std::vector< unsigned int > m_cellIds
Definition
L1CaloMonitoringCaloTool.h:78
LVL1::L1CaloMonitoringCaloTool::caloQuality
float caloQuality(const Identifier &ttid) const
Definition
L1CaloMonitoringCaloTool.cxx:282
LVL1::L1CaloMonitoringCaloTool::towerIndex
int towerIndex(const Identifier &ttId) const
Definition
L1CaloMonitoringCaloTool.cxx:292
SG::ReadCondHandleKey
Definition
ReadCondHandleKey.h:21
asg::AsgTool
Base class for the dual-use tool implementation classes.
Definition
AsgTool.h:47
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
Identifier
Definition
IdentifierFieldParser.cxx:14
LVL1
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
Definition
IZdcDataAccess.h:13
index
Definition
index.py:1
TrigConf::name
Definition
HLTChainList.h:35
Generated on
for ATLAS Offline Software by
1.17.0