ATLAS Offline Software
Loading...
Searching...
No Matches
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
17
18
19#include <vector>
20#include <map>
21#ifndef TRIGGERSPACE
23#else
24#include "Coordinate.h"
25#endif
26
27namespace LVL1 {
28
29 //Doxygen class description below:
43 class JetElement {
44 public:
45
47 JetElement() = default;
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
58
60 void addEnergy(int emEnergy, int hadEnergy);
61 /* Add ET values to specified slice */
62 void addSlice(int slice, int emEnergy, int hadEnergy,
63 int emError, int hadError, int linkError);
64
66 double eta() const;
68 double phi() const;
69
71 int emEnergy() const;
72 int hadEnergy() const;
73 int energy() const;
74
76 int emSliceEnergy(int slice) const;
77 int hadSliceEnergy(int slice) const;
78 int sliceEnergy(int slice) const;
79
81 unsigned int key() const;
82 bool isSaturated() const;
83 bool isEmSaturated() const;
84 bool isHadSaturated() const;
85 int emError() const;
86 int hadError() const;
87 int linkError() const;
88 int peak() const;
89
91 const std::vector<int>& emEnergyVec() const;
92 const std::vector<int>& hadEnergyVec() const;
93 const std::vector<int>& emErrorVec() const;
94 const std::vector<int>& hadErrorVec() const;
95 const std::vector<int>& linkErrorVec() const;
96
98 Coordinate coord() const;
99
101 private:
102 double m_phi{};
103 double m_eta{};
104 unsigned int m_key{};
105 int m_peak{};
106 std::vector<int> m_emEnergy{0};
107 std::vector<int> m_hadEnergy{0};
108 std::vector<int> m_em_error{0};
109 std::vector<int> m_had_error{0};
110 std::vector<int> m_link_error{0};
111
112 static const int m_saturationThreshold = 1023;
113 static const int m_layerSaturationThreshold = 511;
114
115 };
116
117 typedef std::map<int, const JetElement*> JetElementMap_t;
118 } // end of namespace
119
120#ifndef JetElement_ClassDEF_H
122#endif
123
124#endif
macros to associate a CLID to a type
Coordinate policies.
double eta() const
Eta of centre of JetElement.
const std::vector< int > & hadEnergyVec() const
return Had energy vector reference (all timeslices)
int hadError() const
return Had error
double phi() const
Phi of centre of JetElement.
int emError() const
return Em error
int hadEnergy() const
returns had ET
const std::vector< int > & linkErrorVec() const
return link error vector reference (all timeslices)
void addSlice(int slice, int emEnergy, int hadEnergy, int emError, int hadError, int linkError)
add data for one timeslice.
int sliceEnergy(int slice) const
int hadSliceEnergy(int slice) const
const std::vector< int > & emErrorVec() const
return Em error vector reference (all timeslices)
int peak() const
return triggered slice offset
void addEnergy(int emEnergy, int hadEnergy)
Add ET to triggered time slice.
int energy() const
returns jet element ET The LVL1 Calo trigger uses a 10 bit integer i.e.
const std::vector< int > & hadErrorVec() const
return Had error vector reference (all timeslices)
bool isEmSaturated() const
returns TRUE if the Em layer of the JetElement is saturated
Coordinate coord() const
return coord of JE
int emSliceEnergy(int slice) const
return the ET values for a specified slice
bool isSaturated() const
returns TRUE if the JetElement is saturated (i.e.
unsigned int key() const
Error codes and utility information.
int linkError() const
return link error
JetElement()=default
Default constructor.
int emEnergy() const
Return ET for peak slice.
bool isHadSaturated() const
returns TRUE if the Had layer of the JetElement is saturated
const std::vector< int > & emEnergyVec() const
Return data for all slices.
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
std::map< int, const JetElement * > JetElementMap_t