ATLAS Offline Software
ModuleEnergy.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  ModuleEnergy.h - description
6  -------------------
7  begin : Tues Sep 4 2007
8  email : Alan.Watson@cern.ch
9  ***************************************************************************/
10 
11 
12 #ifndef MODULEENERGY_H
13 #define MODULEENERGY_H
14 
15 #include <map>
16 #include <vector>
17 //#include "GaudiKernel/ServiceHandle.h"
22 
26 namespace LVL1 {
27 
40 class ModuleEnergy {
41 public:
42 
43  ModuleEnergy(const xAOD::JetElementMap_t* JEContainer, unsigned int crate, unsigned int module,
44  int JEThresholdEtSum, int JEThresholdEtMiss, const std::map<int, int>* TEMasks = 0, int slice = -1);
45 
46  ModuleEnergy(unsigned int crate, unsigned int module, unsigned int et,
47  unsigned int ex, unsigned int ey);
48 
49  ~ModuleEnergy();
50 
52  unsigned int crate() const;
53  unsigned int module() const;
56  unsigned int et() const;
57  unsigned int ex() const;
58  unsigned int ey() const;
59  int signX() const;
60  int signY() const;
61 
62 private: //atribs
65  unsigned int m_Et;
66  unsigned int m_Ex;
67  unsigned int m_Ey;
68  int m_signX;
69  int m_signY;
70  unsigned int m_crate;
71  unsigned int m_module;
72  bool m_debug;
73  static const unsigned int m_EtBits = 14;
74 
75  void getSinCos(double eta, double phi, int& cosPhi, int& sinPhi);
76 
77 };
78 
79 }
80 #endif
81 
LVL1::ModuleEnergy::m_EtBits
static const unsigned int m_EtBits
Definition: ModuleEnergy.h:83
et
Extra patterns decribing particle interation process.
phi
Scalar phi() const
phi method
Definition: AmgMatrixBasePlugin.h:64
eta
Scalar eta() const
pseudorapidity method
Definition: AmgMatrixBasePlugin.h:79
LVL1::ModuleEnergy::signX
int signX() const
return signs of Ex and Ey for this module
Definition: ModuleEnergy.cxx:170
LVL1::ModuleEnergy::ex
unsigned int ex() const
Definition: ModuleEnergy.cxx:162
JetElementKey.h
LVL1::ModuleEnergy::~ModuleEnergy
~ModuleEnergy()
Definition: ModuleEnergy.cxx:146
LVL1::ModuleEnergy::m_Et
unsigned int m_Et
Definition: ModuleEnergy.h:75
LVL1::ModuleEnergy::crate
unsigned int crate() const
which module is this?
Definition: ModuleEnergy.cxx:150
LVL1::ModuleEnergy::ey
unsigned int ey() const
Definition: ModuleEnergy.cxx:165
LVL1::ModuleEnergy::m_Ex
unsigned int m_Ex
Definition: ModuleEnergy.h:76
LVL1::ModuleEnergy::signY
int signY() const
Definition: ModuleEnergy.cxx:173
LVL1
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
Definition: ICMMCPHitsCnvTool.h:18
LVL1::ModuleEnergy::m_crate
unsigned int m_crate
Definition: ModuleEnergy.h:80
LVL1::ModuleEnergy::ModuleEnergy
ModuleEnergy(const xAOD::JetElementMap_t *JEContainer, unsigned int crate, unsigned int module, int JEThresholdEtSum, int JEThresholdEtMiss, const std::map< int, int > *TEMasks=0, int slice=-1)
Definition: ModuleEnergy.cxx:25
xAOD::JetElementMap_t
std::map< int, const JetElement * > JetElementMap_t
Definition: Event/xAOD/xAODTrigL1Calo/xAODTrigL1Calo/JetElement.h:18
perfmonmt-refit.slice
slice
Definition: perfmonmt-refit.py:52
LVL1::ModuleEnergy::m_module
unsigned int m_module
Definition: ModuleEnergy.h:81
LVL1::ModuleEnergy::m_signX
int m_signX
Definition: ModuleEnergy.h:78
LVL1::ModuleEnergy::m_Ey
unsigned int m_Ey
Definition: ModuleEnergy.h:77
JetElement.h
Coordinate.h
LVL1::ModuleEnergy::module
unsigned int module() const
return module number
Definition: ModuleEnergy.cxx:154
LVL1::ModuleEnergy::m_jetElementThresholdEtMiss
int m_jetElementThresholdEtMiss
Definition: ModuleEnergy.h:74
LVL1::ModuleEnergy::m_signY
int m_signY
Definition: ModuleEnergy.h:79
JetEnergyModuleKey.h
LVL1::ModuleEnergy::et
unsigned int et() const
return the scalar & vector sums of all JE ETs (i.e sums the energies of up to 32 contained JEs)
Definition: ModuleEnergy.cxx:159
LVL1::ModuleEnergy::m_debug
bool m_debug
Definition: ModuleEnergy.h:82
LVL1::ModuleEnergy::m_jetElementThresholdEtSum
int m_jetElementThresholdEtSum
Definition: ModuleEnergy.h:73
LVL1::ModuleEnergy::getSinCos
void getSinCos(double eta, double phi, int &cosPhi, int &sinPhi)
return cos, sin coefficients for a given JetElement
Definition: ModuleEnergy.cxx:178