![]() |
ATLAS Offline Software
|
Jet elements are the inputs to the Jet, ETmiss and ETsum triggers. More...
#include <JetElement.h>
Public Member Functions | |
JetElement ()=default | |
Default constructor. More... | |
JetElement (double phi, double eta, int emEnergy, int hadEnergy, unsigned int key, int emError, int hadError, int linkError) | |
Single slice constructor (some simulation tasks, legacy really) More... | |
JetElement (double phi, double eta, const std::vector< int > &emEnergy, const std::vector< int > &hadEnergy, unsigned int key, const std::vector< int > &emError, const std::vector< int > &hadError, const std::vector< int > &linkError, int peak) | |
Multi-slice constructor, e.g. More... | |
void | addEnergy (int emEnergy, int hadEnergy) |
Add ET to triggered time slice. More... | |
void | addSlice (int slice, int emEnergy, int hadEnergy, int emError, int hadError, int linkError) |
add data for one timeslice. More... | |
double | eta () const |
Eta of centre of JetElement. More... | |
double | phi () const |
Phi of centre of JetElement. More... | |
int | emEnergy () const |
Return ET for peak slice. More... | |
int | hadEnergy () const |
returns had ET More... | |
int | energy () const |
returns jet element ET The LVL1 Calo trigger uses a 10 bit integer i.e. More... | |
int | emSliceEnergy (int slice) const |
return the ET values for a specified slice More... | |
int | hadSliceEnergy (int slice) const |
int | sliceEnergy (int slice) const |
unsigned int | key () const |
Error codes and utility information. More... | |
bool | isSaturated () const |
returns TRUE if the JetElement is saturated (i.e. More... | |
bool | isEmSaturated () const |
returns TRUE if the Em layer of the JetElement is saturated More... | |
bool | isHadSaturated () const |
returns TRUE if the Had layer of the JetElement is saturated More... | |
int | emError () const |
return Em error More... | |
int | hadError () const |
return Had error More... | |
int | linkError () const |
return link error More... | |
int | peak () const |
return triggered slice offset More... | |
const std::vector< int > & | emEnergyVec () const |
Return data for all slices. More... | |
const std::vector< int > & | hadEnergyVec () const |
return Had energy vector reference (all timeslices) More... | |
const std::vector< int > & | emErrorVec () const |
return Em error vector reference (all timeslices) More... | |
const std::vector< int > & | hadErrorVec () const |
return Had error vector reference (all timeslices) More... | |
const std::vector< int > & | linkErrorVec () const |
return link error vector reference (all timeslices) More... | |
Coordinate | coord () const |
return coord of JE More... | |
Private Attributes | |
double | m_phi {} |
Internal data. More... | |
double | m_eta {} |
unsigned int | m_key {} |
int | m_peak {} |
std::vector< int > | m_emEnergy {0} |
std::vector< int > | m_hadEnergy {0} |
std::vector< int > | m_em_error {0} |
std::vector< int > | m_had_error {0} |
std::vector< int > | m_link_error {0} |
Static Private Attributes | |
static const int | m_saturationThreshold = 1023 |
static const int | m_layerSaturationThreshold = 511 |
Jet elements are the inputs to the Jet, ETmiss and ETsum triggers.
They are formed in two stages: 2x2 Trigger Towers (EM or Had) are summed in the PreProcessor The corresponding EM and Had towers are summed in the Jet/Energy Module In the simulation, both of these stages are performed in the TrigT1CaloSim::JetElementMaker algorithm.
As for most L1Calo outputs, the hardware can read out a variable number of slices of data. Hence JetElement stores its internal data in vectors, and can return an individal slice of data or the entire vector.
Definition at line 43 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JetElement.h.
|
default |
Default constructor.
LVL1::JetElement::JetElement | ( | double | phi, |
double | eta, | ||
int | emEnergy, | ||
int | hadEnergy, | ||
unsigned int | key, | ||
int | emError, | ||
int | hadError, | ||
int | linkError | ||
) |
Single slice constructor (some simulation tasks, legacy really)
constructs a jet element with one timeslice
Definition at line 31 of file JetElement.cxx.
LVL1::JetElement::JetElement | ( | double | phi, |
double | eta, | ||
const std::vector< int > & | emEnergy, | ||
const std::vector< int > & | hadEnergy, | ||
unsigned int | key, | ||
const std::vector< int > & | emError, | ||
const std::vector< int > & | hadError, | ||
const std::vector< int > & | linkError, | ||
int | peak | ||
) |
Multi-slice constructor, e.g.
constructs a jet element with multiple timeslices
for bytestream decoding
Definition at line 47 of file JetElement.cxx.
void LVL1::JetElement::addEnergy | ( | int | emEnergy, |
int | hadEnergy | ||
) |
Add ET to triggered time slice.
this will add energy to the JE.
It's really intended for JetElementMaker to use when creating JEs.
Definition at line 149 of file JetElement.cxx.
void LVL1::JetElement::addSlice | ( | int | slice, |
int | emEnergy, | ||
int | hadEnergy, | ||
int | emError, | ||
int | hadError, | ||
int | linkError | ||
) |
add data for one timeslice.
Used by bytestream converter.
Definition at line 160 of file JetElement.cxx.
Coordinate LVL1::JetElement::coord | ( | ) | const |
return coord of JE
Definition at line 256 of file JetElement.cxx.
int LVL1::JetElement::emEnergy | ( | ) | const |
const std::vector< int > & LVL1::JetElement::emEnergyVec | ( | ) | const |
Return data for all slices.
return Em energy vector reference (all timeslices)
Definition at line 231 of file JetElement.cxx.
int LVL1::JetElement::emError | ( | ) | const |
return Em error
Definition at line 211 of file JetElement.cxx.
const std::vector< int > & LVL1::JetElement::emErrorVec | ( | ) | const |
return Em error vector reference (all timeslices)
Definition at line 241 of file JetElement.cxx.
int LVL1::JetElement::emSliceEnergy | ( | int | slice | ) | const |
return the ET values for a specified slice
return ET for specified slice
Definition at line 112 of file JetElement.cxx.
int LVL1::JetElement::energy | ( | ) | const |
returns jet element ET
The LVL1 Calo trigger uses a 10 bit integer i.e.
0-1023 GeV JetElements are treated as saturated if any of tower, layer or element ET exceed their dynamic range
Definition at line 101 of file JetElement.cxx.
double LVL1::JetElement::eta | ( | ) | const |
int LVL1::JetElement::hadEnergy | ( | ) | const |
returns had ET
Definition at line 88 of file JetElement.cxx.
const std::vector< int > & LVL1::JetElement::hadEnergyVec | ( | ) | const |
return Had energy vector reference (all timeslices)
Definition at line 236 of file JetElement.cxx.
int LVL1::JetElement::hadError | ( | ) | const |
return Had error
Definition at line 216 of file JetElement.cxx.
const std::vector< int > & LVL1::JetElement::hadErrorVec | ( | ) | const |
return Had error vector reference (all timeslices)
Definition at line 246 of file JetElement.cxx.
int LVL1::JetElement::hadSliceEnergy | ( | int | slice | ) | const |
Definition at line 124 of file JetElement.cxx.
bool LVL1::JetElement::isEmSaturated | ( | ) | const |
returns TRUE if the Em layer of the JetElement is saturated
Definition at line 193 of file JetElement.cxx.
bool LVL1::JetElement::isHadSaturated | ( | ) | const |
returns TRUE if the Had layer of the JetElement is saturated
Definition at line 202 of file JetElement.cxx.
bool LVL1::JetElement::isSaturated | ( | ) | const |
returns TRUE if the JetElement is saturated (i.e.
either the energy of the JetElement itself or that of one of its components exceeds its dynamic range) and FALSE otherwise.
Definition at line 181 of file JetElement.cxx.
unsigned int LVL1::JetElement::key | ( | ) | const |
Error codes and utility information.
returns JE key - that is the key the JE had when it was created.
Added for bug-testing.
Definition at line 174 of file JetElement.cxx.
int LVL1::JetElement::linkError | ( | ) | const |
const std::vector< int > & LVL1::JetElement::linkErrorVec | ( | ) | const |
return link error vector reference (all timeslices)
Definition at line 251 of file JetElement.cxx.
int LVL1::JetElement::peak | ( | ) | const |
return triggered slice offset
Definition at line 226 of file JetElement.cxx.
double LVL1::JetElement::phi | ( | ) | const |
Phi of centre of JetElement.
returns phi coord of tower
Definition at line 73 of file JetElement.cxx.
int LVL1::JetElement::sliceEnergy | ( | int | slice | ) | const |
Definition at line 136 of file JetElement.cxx.
|
private |
Definition at line 108 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JetElement.h.
|
private |
Definition at line 106 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JetElement.h.
|
private |
Definition at line 103 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JetElement.h.
|
private |
Definition at line 109 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JetElement.h.
|
private |
Definition at line 107 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JetElement.h.
|
private |
Definition at line 104 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JetElement.h.
|
staticprivate |
Definition at line 113 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JetElement.h.
|
private |
Definition at line 110 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JetElement.h.
|
private |
Definition at line 105 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JetElement.h.
|
private |
Internal data.
Definition at line 102 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JetElement.h.
|
staticprivate |
Definition at line 112 of file Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/JetElement.h.