ATLAS Offline Software
Loading...
Searching...
No Matches
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
26namespace LVL1 {
27
39
41public:
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
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
62private: //atribs
65 unsigned int m_Et;
66 unsigned int m_Ex;
67 unsigned int m_Ey;
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
Scalar eta() const
pseudorapidity method
Scalar phi() const
phi method
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)
unsigned int crate() const
which module is this?
unsigned int m_Ex
unsigned int et() const
return the scalar & vector sums of all JE ETs (i.e sums the energies of up to 32 contained JEs)
unsigned int module() const
return module number
unsigned int m_Ey
unsigned int m_Et
unsigned int m_crate
static const unsigned int m_EtBits
void getSinCos(double eta, double phi, int &cosPhi, int &sinPhi)
return cos, sin coefficients for a given JetElement
unsigned int m_module
unsigned int ey() const
int signX() const
return signs of Ex and Ey for this module
unsigned int ex() const
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
std::map< int, const JetElement * > JetElementMap_t