ATLAS Offline Software
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"
23 
27 
28 class IInterface;
29 class StatusCode;
30 
31 class Identifier;
32 class CaloLVL1_ID;
33 
34 namespace LVL1 {
35 
37  {
40 
41  public:
43  L1CaloMonitoringCaloTool( const std::string& name );
51 
52  virtual StatusCode initialize();
53  virtual StatusCode finalize();
54 
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 
66  {this,"CablingKey","LArOnOffIdMap","SG Key of LArOnOffIdMapping object"};
67 
68  ToolHandle<LVL1::IL1CaloMatchCell2Tower> m_cellMatch
69  { this, "L1CaloMatchCell2Tower", "LVL1::L1CaloMatchCell2Tower", "L1CaloMatchCell2Tower" };
71 
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;
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
LVL1::L1CaloMonitoringCaloTool::s_nregions
static const int s_nregions
Definition: L1CaloMonitoringCaloTool.h:92
LVL1::L1CaloMonitoringCaloTool::s_nsinThBins
static const int s_nsinThBins
Definition: L1CaloMonitoringCaloTool.h:93
asg::AsgTool
Base class for the dual-use tool implementation classes.
Definition: AsgTool.h:47
LVL1::L1CaloMonitoringCaloTool::m_cellMatch
ToolHandle< LVL1::IL1CaloMatchCell2Tower > m_cellMatch
Definition: L1CaloMonitoringCaloTool.h:69
LVL1::L1CaloMonitoringCaloTool::m_events
int m_events
Definition: L1CaloMonitoringCaloTool.h:82
LVL1::L1CaloMonitoringCaloTool::m_indexOffset
std::vector< int > m_indexOffset
Definition: L1CaloMonitoringCaloTool.h:88
index
Definition: index.py:1
LVL1::L1CaloMonitoringCaloTool::m_denom
std::vector< float > m_denom
Definition: L1CaloMonitoringCaloTool.h:76
LVL1::L1CaloMonitoringCaloTool::m_lvl1Helper
const CaloLVL1_ID * m_lvl1Helper
Definition: L1CaloMonitoringCaloTool.h:70
LVL1::L1CaloMonitoringCaloTool::m_sinTh
std::vector< float > m_sinTh
Definition: L1CaloMonitoringCaloTool.h:77
LVL1::L1CaloMonitoringCaloTool::initialize
virtual StatusCode initialize()
Dummy implementation of the initialisation function.
Definition: L1CaloMonitoringCaloTool.cxx:61
LVL1::L1CaloMonitoringCaloTool
Definition: L1CaloMonitoringCaloTool.h:37
LVL1::L1CaloMonitoringCaloTool::m_cellIds
std::vector< unsigned int > m_cellIds
Definition: L1CaloMonitoringCaloTool.h:78
IL1CaloMonitoringCaloTool.h
LVL1
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
Definition: ICMMCPHitsCnvTool.h:18
LVL1::L1CaloMonitoringCaloTool::finalize
virtual StatusCode finalize()
Definition: L1CaloMonitoringCaloTool.cxx:130
LVL1::L1CaloMonitoringCaloTool::m_etaShift
std::vector< int > m_etaShift
Definition: L1CaloMonitoringCaloTool.h:89
LVL1::L1CaloMonitoringCaloTool::~L1CaloMonitoringCaloTool
virtual ~L1CaloMonitoringCaloTool()
destructor
Definition: L1CaloMonitoringCaloTool.h:45
LArOnOffIdMapping.h
LVL1::L1CaloMonitoringCaloTool::m_maxCells
unsigned int m_maxCells
Definition: L1CaloMonitoringCaloTool.h:80
LVL1::L1CaloMonitoringCaloTool::m_cablingKey
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
Definition: L1CaloMonitoringCaloTool.h:66
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
LVL1::L1CaloMonitoringCaloTool::L1CaloMonitoringCaloTool
L1CaloMonitoringCaloTool(const L1CaloMonitoringCaloTool &rhs)=delete
LVL1::L1CaloMonitoringCaloTool::m_binOffset
std::vector< int > m_binOffset
Definition: L1CaloMonitoringCaloTool.h:87
LVL1::L1CaloMonitoringCaloTool::m_layerOffset
int m_layerOffset
Definition: L1CaloMonitoringCaloTool.h:86
LVL1::L1CaloMonitoringCaloTool::m_ttIdx
std::vector< int > m_ttIdx
Definition: L1CaloMonitoringCaloTool.h:79
LVL1::L1CaloMonitoringCaloTool::et
float et(const Identifier &ttid) const
Definition: L1CaloMonitoringCaloTool.cxx:273
LVL1::L1CaloMonitoringCaloTool::s_maxTowers
static const int s_maxTowers
Definition: L1CaloMonitoringCaloTool.h:91
LVL1::L1CaloMonitoringCaloTool::m_lastEvent
int m_lastEvent
Definition: L1CaloMonitoringCaloTool.h:84
TrigConf::name
Definition: HLTChainList.h:35
ReadCondHandleKey.h
IL1CaloMatchCell2Tower.h
Map from calo cells to trigger towers.
LVL1::L1CaloMonitoringCaloTool::operator=
L1CaloMonitoringCaloTool & operator=(const L1CaloMonitoringCaloTool &rhs)=delete
CaloLVL1_ID
Helper class for offline TT identifiers.
Definition: CaloLVL1_ID.h:66
LVL1::L1CaloMonitoringCaloTool::m_lastRun
int m_lastRun
Definition: L1CaloMonitoringCaloTool.h:83
SG::ReadCondHandleKey< LArOnOffIdMapping >
LVL1::L1CaloMonitoringCaloTool::m_sideOffset
int m_sideOffset
Definition: L1CaloMonitoringCaloTool.h:85
LVL1::IL1CaloMonitoringCaloTool
Definition: IL1CaloMonitoringCaloTool.h:23
LVL1::L1CaloMonitoringCaloTool::m_caloCellContainerName
std::string m_caloCellContainerName
Definition: L1CaloMonitoringCaloTool.h:72
LVL1::L1CaloMonitoringCaloTool::loadCaloCells
StatusCode loadCaloCells()
Declare the interface that the class provides.
Definition: L1CaloMonitoringCaloTool.cxx:137
ASG_TOOL_CLASS
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
Definition: AsgToolMacros.h:68
LVL1::L1CaloMonitoringCaloTool::region
int region(const int index) const
Definition: L1CaloMonitoringCaloTool.cxx:309
LVL1::L1CaloMonitoringCaloTool::m_quality
std::vector< float > m_quality
Definition: L1CaloMonitoringCaloTool.h:75
LVL1::L1CaloMonitoringCaloTool::towerIndex
int towerIndex(const Identifier &ttId) const
Definition: L1CaloMonitoringCaloTool.cxx:293
LVL1::L1CaloMonitoringCaloTool::m_energySums
std::vector< float > m_energySums
Definition: L1CaloMonitoringCaloTool.h:74
AsgTool.h
LVL1::L1CaloMonitoringCaloTool::L1CaloMonitoringCaloTool
L1CaloMonitoringCaloTool()=delete
delete the big 4
LVL1::L1CaloMonitoringCaloTool::etaBin
int etaBin(const int index) const
Definition: L1CaloMonitoringCaloTool.cxx:326
LVL1::L1CaloMonitoringCaloTool::L1CaloMonitoringCaloTool
L1CaloMonitoringCaloTool(L1CaloMonitoringCaloTool &&rhs)=delete
LVL1::L1CaloMonitoringCaloTool::caloQuality
float caloQuality(const Identifier &ttid) const
Definition: L1CaloMonitoringCaloTool.cxx:283
Identifier
Definition: IdentifierFieldParser.cxx:14