ATLAS Offline Software
jFexSumETRoI_v1.h
Go to the documentation of this file.
1 //create
2 /*
3  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
4 */
5 #ifndef XAODTRIGGER_VERSIONS_JFEXSUMETROI_V1_H
6 #define XAODTRIGGER_VERSIONS_JFEXSUMETROI_V1_H
7 
8 // System include(s):
9 extern "C" {
10 # include <stdint.h>
11 }
12 #include <vector>
13 #include <string>
14 
15 // xAOD include(s):
17 namespace xAOD {
18 
21 
23 
24  public:
27 
30 
32  uint32_t tobWord() const;
39  int tobEtScale() const;
40 
45 
46  //Unpack Et_lower from the SumEt TOB word
47  uint16_t unpackEt_lower() const;
49  int Et_lower() const;
50 
51  //Unpack Et_upper from the SumEt TOB word
52  uint16_t unpackEt_upper() const;
54  int Et_upper() const;
55 
56  //Unpack saturation for lower from the SumEt TOB word
57  uint8_t unpackSat_lower() const;
59 
60  //Unpack saturation for upper from the SumEt TOB word
61  uint8_t unpackSat_upper() const;
63 
64  //Et resolution
65  void setResolution(int value);
66 
67  private:
68 
69  // Data locations within word
70  static const int s_Sat_upperBit = 31;
71  static const int s_Et_upperBit = 16;
72  static const int s_Et_lowerBit = 1;
73  static const int s_Sat_lowerBit = 0;
74 
75  //Data masks
76  static const int s_Sat_upperMask = 0x1;
77  static const int s_Et_upperMask = 0x7fff;
78  static const int s_Et_lowerMask = 0x7fff;
79  static const int s_Sat_lowerMask = 0x1;
80 
81 
82  }; // class jFexSumETRoI_v1
83 
84 } // namespace xAOD
85 // Declare the inheritance of the type:
86 #include "xAODCore/BaseInfo.h"
88 
89 #endif //XAODTRIGGER_VERSIONS_JFEXSumETROI_V1_H
xAOD::jFexSumETRoI_v1::s_Et_lowerBit
static const int s_Et_lowerBit
Definition: jFexSumETRoI_v1.h:72
xAOD::jFexSumETRoI_v1::setTobSat_lower
void setTobSat_lower(uint8_t value)
xAOD::jFexSumETRoI_v1::unpackSat_upper
uint8_t unpackSat_upper() const
Definition: jFexSumETRoI_v1.cxx:87
xAOD::uint8_t
uint8_t
Definition: Muon_v1.cxx:575
xAOD::jFexSumETRoI_v1::unpackSat_lower
uint8_t unpackSat_lower() const
Definition: jFexSumETRoI_v1.cxx:83
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
xAOD::jFexSumETRoI_v1::tobEtScale
int tobEtScale() const
SG::AuxElement
Base class for elements of a container that can have aux data.
Definition: AuxElement.h:446
xAOD::jFexSumETRoI_v1::s_Et_upperMask
static const int s_Et_upperMask
Definition: jFexSumETRoI_v1.h:77
xAOD::jFexSumETRoI_v1::s_Sat_upperMask
static const int s_Sat_upperMask
Definition: jFexSumETRoI_v1.h:76
xAOD::jFexSumETRoI_v1::setTobEt_lower
void setTobEt_lower(uint16_t value)
BaseInfo.h
xAOD::jFexSumETRoI_v1::s_Et_upperBit
static const int s_Et_upperBit
Definition: jFexSumETRoI_v1.h:71
athena.value
value
Definition: athena.py:122
xAOD::jFexSumETRoI_v1::setjFexNumber
void setjFexNumber(uint8_t jFexNumber)
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
xAOD::jFexSumETRoI_v1::s_Sat_lowerBit
static const int s_Sat_lowerBit
Definition: jFexSumETRoI_v1.h:73
xAOD::jFexSumETRoI_v1::s_Sat_upperBit
static const int s_Sat_upperBit
Definition: jFexSumETRoI_v1.h:70
xAOD::jFexSumETRoI_v1::s_Et_lowerMask
static const int s_Et_lowerMask
Definition: jFexSumETRoI_v1.h:78
Dedxcorrection::resolution
double resolution[nGasTypes][nParametersResolution]
Definition: TRT_ToT_Corrections.h:46
xAOD::jFexSumETRoI_v1::setTobEt_upper
void setTobEt_upper(uint16_t value)
xAOD::jFexSumETRoI_v1::setResolution
void setResolution(int value)
xAOD::jFexSumETRoI_v1::initialize
void initialize(uint8_t jFexNumber, uint8_t fpgaNumber, uint32_t tobWord, int resolution)
In future initialze the xTOB as well, word1.
Definition: jFexSumETRoI_v1.cxx:20
xAOD::jFexSumETRoI_v1::s_Sat_lowerMask
static const int s_Sat_lowerMask
Definition: jFexSumETRoI_v1.h:79
xAOD::uint16_t
setWord1 uint16_t
Definition: eFexEMRoI_v1.cxx:88
xAOD::jFexSumETRoI_v1::Et_upper
int Et_upper() const
Et_upper in 1 MeV scale.
Definition: jFexSumETRoI_v1.cxx:99
xAOD::jFexSumETRoI_v1::tobSat_lower
uint8_t tobSat_lower() const
xAOD::jFexSumETRoI_v1::jFexSumETRoI_v1
jFexSumETRoI_v1()
Default constructor.
Definition: jFexSumETRoI_v1.cxx:17
xAOD::jFexSumETRoI_v1::setTobWord
void setTobWord(uint32_t tobWord)
Set the "raw" 32-bit words describing the object candidate.
xAOD::jFexSumETRoI_v1
Class describing properties of a LVL1 jFEX global Trigger Object (TOB) in the xAOD format.
Definition: jFexSumETRoI_v1.h:22
xAOD::jFexSumETRoI_v1::jFexNumber
uint8_t jFexNumber() const
xAOD::jFexSumETRoI_v1::tobEt_upper
uint16_t tobEt_upper() const
xAOD::jFexSumETRoI_v1::setfpgaNumber
void setfpgaNumber(uint8_t fpgaNumber)
xAOD::jFexSumETRoI_v1::fpgaNumber
uint8_t fpgaNumber() const
SG_BASE
SG_BASE(xAOD::jFexSumETRoI_v1, SG::AuxElement)
xAOD::jFexSumETRoI_v1::unpackEt_lower
uint16_t unpackEt_lower() const
Raw data words.
Definition: jFexSumETRoI_v1.cxx:73
xAOD::jFexSumETRoI_v1::tobWord
uint32_t tobWord() const
The "raw" 32-bit word describing the object candidate.
xAOD::jFexSumETRoI_v1::tobSat_upper
uint8_t tobSat_upper() const
xAOD::jFexSumETRoI_v1::tobEt_lower
uint16_t tobEt_lower() const
xAOD::jFexSumETRoI_v1::unpackEt_upper
uint16_t unpackEt_upper() const
Definition: jFexSumETRoI_v1.cxx:78
xAOD::jFexSumETRoI_v1::Et_lower
int Et_lower() const
Methods that require combining results or applying scales.
Definition: jFexSumETRoI_v1.cxx:94
xAOD::jFexSumETRoI_v1::setTobSat_upper
void setTobSat_upper(uint8_t value)
AuxElement.h
Base class for elements of a container that can have aux data.