ATLAS Offline Software
Loading...
Searching...
No Matches
CrateEnergy.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 CrateEnergy.h - description
6 -------------------
7 begin : 05/09/2007
8 email : Alan.Watson@cern.ch
9 ***************************************************************************/
10
11
12
13
14#ifndef CRATEENERGY_H
15#define CRATEENERGY_H
16
19
20
24namespace LVL1 {
25
28
30
31public:
32 CrateEnergy(unsigned int crate, const DataVector<ModuleEnergy>* modules, uint32_t maskXE = 0xff, uint32_t maskTE = 0xff, bool restricted = false);
33 CrateEnergy(unsigned int crate, const DataVector<EnergyCMXData>* modules, uint32_t maskXE = 0xff, uint32_t maskTE = 0xff, bool restricted = false);
34 CrateEnergy(unsigned int crate, unsigned int et, unsigned int exTC,
35 unsigned int eyTC, unsigned int overflowT, unsigned int overflowX,
36 unsigned int overflowY, bool restricted = false);
38
39public:
40 unsigned int crate() const;
42 int et() const;
43 int ex() const;
44 int ey() const;
46 unsigned int exTC() const;
47 unsigned int eyTC() const;
49 unsigned int exOverflow() const;
50 unsigned int eyOverflow() const;
51 unsigned int etOverflow() const;
53 bool restricted() const;
54private:
55 unsigned int m_crate;
56 unsigned int m_crateEt;
59 unsigned int m_overflowT;
60 unsigned int m_overflowX;
61 unsigned int m_overflowY;
63 bool m_debug;
64 static const unsigned int m_sumBitsTC=15;
65 static const unsigned int m_sumBits=14;
66 static const unsigned int m_jemEtSaturation= 0x3fff; // was 4032
67private:
68 unsigned int encodeTC(int input) const;
69 int decodeTC(unsigned int input) const;
70
71};
72
73} // end of namespace bracket
74
75
76#endif
Derived DataVector<T>.
Definition DataVector.h:795
unsigned int crate() const
return crate number
int ex() const
return crate Ex
unsigned int m_overflowT
Definition CrateEnergy.h:59
int ey() const
return crate Ey
int et() const
return et, ex, ey sums
static const unsigned int m_sumBits
Definition CrateEnergy.h:65
unsigned int exOverflow() const
Overflow bits.
unsigned int m_overflowY
Definition CrateEnergy.h:61
bool restricted() const
Full or restricted eta range?
unsigned int eyOverflow() const
return Ey overflow bit
unsigned int m_crate
Definition CrateEnergy.h:55
unsigned int etOverflow() const
return Et overflow bit
CrateEnergy(unsigned int crate, const DataVector< ModuleEnergy > *modules, uint32_t maskXE=0xff, uint32_t maskTE=0xff, bool restricted=false)
unsigned int encodeTC(int input) const
encode int as 15-bit twos-complement format (hardware Ex/Ey format)
int decodeTC(unsigned int input) const
decode 15-bit twos-complement format (hardware Ex/Ey format) as int
static const unsigned int m_sumBitsTC
Definition CrateEnergy.h:64
unsigned int exTC() const
15 bit twos-complement format
unsigned int m_crateEt
Definition CrateEnergy.h:56
unsigned int eyTC() const
return crate Ey in 15-bit twos-complement format (hardware format)
unsigned int m_overflowX
Definition CrateEnergy.h:60
static const unsigned int m_jemEtSaturation
Definition CrateEnergy.h:66
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...