ATLAS Offline Software
EnergyTopoData.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  EnergyTopoData.h - description
6  -------------------
7  begin : Tuesday September 02 2014
8  email : Alan.Watson@CERN.CH
9  ***************************************************************************/
10 
11 
12 #ifndef EnergyTopoData_H
13 #define EnergyTopoData_H
14 
15 // STL includes
16 #include <vector>
17 
18 // Gaudi kernel stuff.
19 #include "GaudiKernel/DataObject.h"
20 
21 namespace LVL1 {
22 
26  class EnergyTopoData : public DataObject {
27  public:
28 
29  enum SumTypes { Normal = 0, Restricted = 1 };
30 
32  EnergyTopoData(unsigned int word0, unsigned int word1, unsigned int word2);
33 
34  EnergyTopoData() ;
35 
37  ~EnergyTopoData(){};
38 
40  void addEx(unsigned int Ex, unsigned int overflow, int type);
41  void addEy(unsigned int Ey, unsigned int overflow, int type);
42  void addEt(unsigned int Et, unsigned int overflow, int type);
43 
45  void addRoI(uint32_t roiWord);
46  void addRoIs(const std::vector<uint32_t>& roiWords);
47 
49  unsigned int word0() const {return m_word0;}
51  unsigned int word1() const {return m_word1;}
53  unsigned int word2() const {return m_word2;}
54 
66 
67 private:
68  unsigned int m_word0;
69  unsigned int m_word1;
70  unsigned int m_word2;
71 
72  int decodeTC(unsigned int word) const;
73 
74 };
75 
76 }//end of LVL1 namespace defn
77 
79 
80 #endif
LVL1::EnergyTopoData::addRoIs
void addRoIs(const std::vector< uint32_t > &roiWords)
Definition: EnergyTopoData.cxx:70
LVL1::EnergyTopoData::EyOverflow
unsigned int EyOverflow(SumTypes type=LVL1::EnergyTopoData::Normal) const
Definition: EnergyTopoData.cxx:137
LVL1::EnergyTopoData::word0
unsigned int word0() const
return word 0
Definition: EnergyTopoData.h:59
LVL1::EnergyTopoData::m_word1
unsigned int m_word1
Definition: EnergyTopoData.h:79
LVL1::EnergyTopoData::word2
unsigned int word2() const
return word 2
Definition: EnergyTopoData.h:63
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
LVL1::EnergyTopoData::~EnergyTopoData
~EnergyTopoData()
destructor
Definition: EnergyTopoData.h:47
LVL1::EnergyTopoData::m_word0
unsigned int m_word0
Definition: EnergyTopoData.h:78
LVL1::EnergyTopoData::Ex
int Ex(SumTypes type=LVL1::EnergyTopoData::Normal) const
return Ex, Ey, ET values
Definition: EnergyTopoData.cxx:79
LVL1::EnergyTopoData::Normal
@ Normal
Definition: EnergyTopoData.h:44
LVL1
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
Definition: ICMMCPHitsCnvTool.h:18
LVL1::EnergyTopoData::EtOverflow
unsigned int EtOverflow(SumTypes type=LVL1::EnergyTopoData::Normal) const
Definition: EnergyTopoData.cxx:144
LVL1::EnergyTopoData::addEx
void addEx(unsigned int Ex, unsigned int overflow, int type)
add data.
Definition: EnergyTopoData.cxx:24
xAOD::roiWord
roiWord
Definition: TrigMissingET_v1.cxx:36
LVL1::EnergyTopoData::ExTC
int ExTC(SumTypes type=LVL1::EnergyTopoData::Normal) const
return twos-complement Ex, Ey values
Definition: EnergyTopoData.cxx:109
LVL1::EnergyTopoData::m_word2
unsigned int m_word2
Definition: EnergyTopoData.h:80
LVL1::EnergyTopoData::SumTypes
SumTypes
Definition: EnergyTopoData.h:39
LVL1::EnergyTopoData::decodeTC
int decodeTC(unsigned int word) const
Decode 15-bit twos-complement values.
Definition: EnergyTopoData.cxx:152
LVL1::EnergyTopoData::Ey
int Ey(SumTypes type=LVL1::EnergyTopoData::Normal) const
Ey (signed)
Definition: EnergyTopoData.cxx:89
LVL1::EnergyTopoData::EyTC
int EyTC(SumTypes type=LVL1::EnergyTopoData::Normal) const
Ey (twos complement)
Definition: EnergyTopoData.cxx:119
EnergyTopoData_ClassDEF.h
LVL1::EnergyTopoData::addRoI
void addRoI(uint32_t roiWord)
add data using RoI word
Definition: EnergyTopoData.cxx:51
LVL1::EnergyTopoData::Et
int Et(SumTypes type=LVL1::EnergyTopoData::Normal) const
ET Sum.
Definition: EnergyTopoData.cxx:99
LVL1::EnergyTopoData::Restricted
@ Restricted
Definition: EnergyTopoData.h:44
LVL1::EnergyTopoData::addEt
void addEt(unsigned int Et, unsigned int overflow, int type)
Definition: EnergyTopoData.cxx:42
LVL1::EnergyTopoData::ExOverflow
unsigned int ExOverflow(SumTypes type=LVL1::EnergyTopoData::Normal) const
return overflow flags
Definition: EnergyTopoData.cxx:130
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
LVL1::EnergyTopoData::word1
unsigned int word1() const
return word 1
Definition: EnergyTopoData.h:61
LVL1::EnergyTopoData::addEy
void addEy(unsigned int Ey, unsigned int overflow, int type)
Definition: EnergyTopoData.cxx:33
LVL1::EnergyTopoData::EnergyTopoData
EnergyTopoData()
Definition: EnergyTopoData.cxx:10