ATLAS Offline Software
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JetElement.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 //***************************************************************************
6 // JetElement.h - description
7 // -------------------
8 // begin : Mon Sep 25 2000
9 // email : e.moyse@qmw.ac.uk
10 // ***************************************************************************/
11 
12 
13 #ifndef JetElement_H
14 #define JetElement_H
15 
16 #include "AthenaKernel/CLASS_DEF.h"
17 
18 
19 #include <vector>
20 #include <iostream>
21 #ifndef TRIGGERSPACE
23 #else
24 #include "Coordinate.h"
25 #endif
26 
27 namespace LVL1 {
28 
29  //Doxygen class description below:
43  class JetElement {
44  public:
45 
47  JetElement();
49  JetElement(double phi, double eta, int emEnergy, int hadEnergy,
50  unsigned int key, int emError, int hadError, int linkError);
52  JetElement(double phi, double eta, const std::vector<int>& emEnergy,
53  const std::vector<int>& hadEnergy, unsigned int key,
54  const std::vector<int>& emError,
55  const std::vector<int>& hadError,
56  const std::vector<int>& linkError, int peak);
57 
59  virtual ~JetElement();
60 
62  void addEnergy(int emEnergy, int hadEnergy);
63  /* Add ET values to specified slice */
64  void addSlice(int slice, int emEnergy, int hadEnergy,
65  int emError, int hadError, int linkError);
66 
68  double eta() const;
70  double phi() const;
71 
73  int emEnergy() const;
74  int hadEnergy() const;
75  int energy() const;
76 
78  int emSliceEnergy(int slice) const;
79  int hadSliceEnergy(int slice) const;
80  int sliceEnergy(int slice) const;
81 
83  unsigned int key() const;
84  bool isSaturated() const;
85  bool isEmSaturated() const;
86  bool isHadSaturated() const;
87  int emError() const;
88  int hadError() const;
89  int linkError() const;
90  int peak() const;
91 
93  const std::vector<int>& emEnergyVec() const;
94  const std::vector<int>& hadEnergyVec() const;
95  const std::vector<int>& emErrorVec() const;
96  const std::vector<int>& hadErrorVec() const;
97  const std::vector<int>& linkErrorVec() const;
98 
100  Coordinate coord() const;
101 
103  private:
104  double m_phi;
105  double m_eta;
106  unsigned int m_key;
107  int m_peak;
108  std::vector<int> m_emEnergy;
109  std::vector<int> m_hadEnergy;
110  std::vector<int> m_em_error;
111  std::vector<int> m_had_error;
112  std::vector<int> m_link_error;
113 
114  static const int m_saturationThreshold = 1023;
115  static const int m_layerSaturationThreshold = 511;
116 
117  };
118 
119  typedef std::map<int, const JetElement*> JetElementMap_t;
120  } // end of namespace
121 
122 #ifndef JetElement_ClassDEF_H
124 #endif
125 
126 #endif
LVL1::JetElement::m_saturationThreshold
static const int m_saturationThreshold
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JetElement.h:114
LVL1::JetElement::emEnergy
int emEnergy() const
Return ET for peak slice.
Definition: JetElement.cxx:92
JetElement_ClassDEF.h
LVL1::JetElement::hadError
int hadError() const
return Had error
Definition: JetElement.cxx:230
LVL1::JetElement::emEnergyVec
const std::vector< int > & emEnergyVec() const
Return data for all slices.
Definition: JetElement.cxx:245
LVL1::JetElement::addSlice
void addSlice(int slice, int emEnergy, int hadEnergy, int emError, int hadError, int linkError)
add data for one timeslice.
Definition: JetElement.cxx:174
LVL1::JetElement::isEmSaturated
bool isEmSaturated() const
returns TRUE if the Em layer of the JetElement is saturated
Definition: JetElement.cxx:207
LVL1::JetElement::energy
int energy() const
returns jet element ET The LVL1 Calo trigger uses a 10 bit integer i.e.
Definition: JetElement.cxx:115
LVL1::JetElement::peak
int peak() const
return triggered slice offset
Definition: JetElement.cxx:240
LVL1::JetElement::emSliceEnergy
int emSliceEnergy(int slice) const
return the ET values for a specified slice
Definition: JetElement.cxx:126
LVL1
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
Definition: ICMMCPHitsCnvTool.h:18
LVL1::JetElement::emError
int emError() const
return Em error
Definition: JetElement.cxx:225
LVL1::JetElementMap_t
std::map< int, const JetElement * > JetElementMap_t
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JetElement.h:119
LVL1::JetElement::hadEnergyVec
const std::vector< int > & hadEnergyVec() const
return Had energy vector reference (all timeslices)
Definition: JetElement.cxx:250
LVL1::JetElement::m_phi
double m_phi
Internal data.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JetElement.h:104
LVL1::JetElement
Jet elements are the inputs to the Jet, ETmiss and ETsum triggers.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JetElement.h:43
LVL1::JetElement::m_hadEnergy
std::vector< int > m_hadEnergy
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JetElement.h:109
LVL1::JetElement::m_layerSaturationThreshold
static const int m_layerSaturationThreshold
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JetElement.h:115
LVL1::Coordinate
Coordinate class declaration.
Definition: TrigT1/TrigT1Interfaces/TrigT1Interfaces/Coordinate.h:50
perfmonmt-refit.slice
slice
Definition: perfmonmt-refit.py:52
LVL1::JetElement::JetElement
JetElement()
Default constructor.
Definition: JetElement.cxx:28
LVL1::JetElement::key
unsigned int key() const
Error codes and utility information.
Definition: JetElement.cxx:188
LVL1::JetElement::m_eta
double m_eta
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JetElement.h:105
LVL1::JetElement::m_emEnergy
std::vector< int > m_emEnergy
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JetElement.h:108
Coordinate.h
Coordinate policies.
LVL1::JetElement::m_peak
int m_peak
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JetElement.h:107
LVL1::JetElement::eta
double eta() const
Eta of centre of JetElement.
Definition: JetElement.cxx:82
LVL1::JetElement::m_em_error
std::vector< int > m_em_error
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JetElement.h:110
Coordinate.h
LVL1::JetElement::addEnergy
void addEnergy(int emEnergy, int hadEnergy)
Add ET to triggered time slice.
Definition: JetElement.cxx:163
LVL1::JetElement::linkError
int linkError() const
return link error
Definition: JetElement.cxx:235
LVL1::JetElement::m_had_error
std::vector< int > m_had_error
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JetElement.h:111
LVL1::JetElement::m_link_error
std::vector< int > m_link_error
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JetElement.h:112
LVL1::JetElement::hadEnergy
int hadEnergy() const
returns had ET
Definition: JetElement.cxx:102
LVL1::JetElement::hadErrorVec
const std::vector< int > & hadErrorVec() const
return Had error vector reference (all timeslices)
Definition: JetElement.cxx:260
LVL1::JetElement::isHadSaturated
bool isHadSaturated() const
returns TRUE if the Had layer of the JetElement is saturated
Definition: JetElement.cxx:216
LVL1::JetElement::m_key
unsigned int m_key
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JetElement.h:106
LVL1::JetElement::phi
double phi() const
Phi of centre of JetElement.
Definition: JetElement.cxx:87
LVL1::JetElement::hadSliceEnergy
int hadSliceEnergy(int slice) const
Definition: JetElement.cxx:138
LVL1::JetElement::~JetElement
virtual ~JetElement()
Destructor.
Definition: JetElement.cxx:77
LVL1::JetElement::emErrorVec
const std::vector< int > & emErrorVec() const
return Em error vector reference (all timeslices)
Definition: JetElement.cxx:255
LVL1::JetElement::sliceEnergy
int sliceEnergy(int slice) const
Definition: JetElement.cxx:150
LVL1::JetElement::linkErrorVec
const std::vector< int > & linkErrorVec() const
return link error vector reference (all timeslices)
Definition: JetElement.cxx:265
LVL1::JetElement::isSaturated
bool isSaturated() const
returns TRUE if the JetElement is saturated (i.e.
Definition: JetElement.cxx:195
CLASS_DEF.h
macros to associate a CLID to a type
LVL1::JetElement::coord
Coordinate coord() const
return coord of JE
Definition: JetElement.cxx:270