ATLAS Offline Software
JetElement_v1.h
Go to the documentation of this file.
1 // Dear emacs, this is -*- c++ -*-
2 
3 /*
4  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 // $Id: JetElement_v1.h 631127 2014-11-26 09:54:48Z gwatts $
8 #ifndef XAODTRIGL1CALO_VERSIONS_JETELEMENT_V1_H
9 #define XAODTRIGL1CALO_VERSIONS_JETELEMENT_V1_H
10 
11 #include "AthLinks/ElementLink.h"
13 
14 namespace xAOD {
15 
22 
23  class JetElement_v1 : public SG::AuxElement{
24  public:
25  // Default constructor
26  JetElement_v1();
27 
29  float phi() const;
31  void setPhi(float);
32 
34  float eta() const;
36  void setEta(float);
37 
39  unsigned int key() const;
41  void setKey(unsigned int);
42 
44  int peak() const;
46  void setPeak(int);
47 
49  const std::vector<int>& emEnergyVec() const;
51  void setEmEnergyVec(const std::vector<int>&);
52 
54  const std::vector<int>& hadEnergyVec() const;
56  void setHadEnergyVec(const std::vector<int>&);
57 
59  const std::vector<int>& emErrorVec() const;
61  void setEmErrorVec(const std::vector<int>&);
62 
64  const std::vector<int>& hadErrorVec() const;
66  void setHadErrorVec(const std::vector<int>&);
67 
69  const std::vector<int>& linkErrorVec() const;
71  void setLinkErrorVec(const std::vector<int>&);
72 
74  void addEnergy(int emEnergy, int hadEnergy);
76  void addSlice(int slice, int emEnergy, int hadEnergy,int emError, int hadError, int linkError);
77 
79  int emEnergy() const;
81  int hadEnergy() const;
83  int energy() const;
84 
86  int emSliceEnergy(int slice) const;
88  int hadSliceEnergy(int slice) const;
90  int sliceEnergy(int slice) const;
91 
93  bool isSaturated() const;
95  bool isEmSaturated() const;
97  bool isHadSaturated() const;
98 
100  int emError() const;
102  int hadError() const;
104  int linkError() const;
105 
106  private:
107  static const int m_saturationThreshold = 1023;
108  static const int m_layerSaturationThreshold = 511;
109  };
110 } // namespace xAOD
111 
112 #endif // XAODTRIGL1CALO_VERSIONS_JETELEMENT_V1_H
xAOD::JetElement_v1::peak
int peak() const
get peak
xAOD::JetElement_v1::setHadErrorVec
void setHadErrorVec(const std::vector< int > &)
set hadErrorVec - hadError for all time slices
xAOD::JetElement_v1::emEnergyVec
const std::vector< int > & emEnergyVec() const
get emEnergyVec - emEnergy for all time slices
xAOD::JetElement_v1::setKey
void setKey(unsigned int)
set key
xAOD::JetElement_v1::setPhi
void setPhi(float)
set phi
xAOD::JetElement_v1::setPeak
void setPeak(int)
set key
SG::AuxElement
Base class for elements of a container that can have aux data.
Definition: AuxElement.h:483
xAOD::JetElement_v1::emSliceEnergy
int emSliceEnergy(int slice) const
get emEnery for emEnergyVec[slice] - time slice for arbitary slice
Definition: JetElement_v1.cxx:168
xAOD::JetElement_v1::isHadSaturated
bool isHadSaturated() const
is Had component of JetElement saturated?
Definition: JetElement_v1.cxx:211
xAOD::JetElement_v1::sliceEnergy
int sliceEnergy(int slice) const
get total energy. returns emSliceEnergy(slice) + hadSliceEnergy(slice)
Definition: JetElement_v1.cxx:190
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
xAOD::JetElement_v1::emErrorVec
const std::vector< int > & emErrorVec() const
get emErrorVec - emError for all time slices
xAOD::JetElement_v1::eta
float eta() const
get eta
xAOD::JetElement_v1::setEmErrorVec
void setEmErrorVec(const std::vector< int > &)
set emErrorVec - emError for all time slices
xAOD::JetElement_v1::JetElement_v1
JetElement_v1()
Definition: JetElement_v1.cxx:18
xAOD::JetElement_v1::addEnergy
void addEnergy(int emEnergy, int hadEnergy)
Add ET to triggered time slice.
Definition: JetElement_v1.cxx:33
xAOD::JetElement_v1::setLinkErrorVec
void setLinkErrorVec(const std::vector< int > &)
set linkErrorVec - linkError for all time slices
xAOD::JetElement_v1::m_layerSaturationThreshold
static const int m_layerSaturationThreshold
Definition: JetElement_v1.h:108
xAOD::JetElement_v1
Description of JetElement_v1.
Definition: JetElement_v1.h:23
xAOD::JetElement_v1::energy
int energy() const
get total energy. returns emEnergy() + hadEnergy()
Definition: JetElement_v1.cxx:157
xAOD::JetElement_v1::isEmSaturated
bool isEmSaturated() const
is EM component of JetElement saturated?
Definition: JetElement_v1.cxx:206
xAOD::JetElement_v1::addSlice
void addSlice(int slice, int emEnergy, int hadEnergy, int emError, int hadError, int linkError)
Add ET values to specified slice.
Definition: JetElement_v1.cxx:78
xAOD::JetElement_v1::hadEnergyVec
const std::vector< int > & hadEnergyVec() const
get hadEnergyVec - hadEnergy for all time slices
perfmonmt-refit.slice
slice
Definition: perfmonmt-refit.py:52
xAOD::JetElement_v1::isSaturated
bool isSaturated() const
is JetElement saturated?
Definition: JetElement_v1.cxx:201
xAOD::JetElement_v1::linkErrorVec
const std::vector< int > & linkErrorVec() const
get linkErrorVec - linkError for all time slices
xAOD::JetElement_v1::setHadEnergyVec
void setHadEnergyVec(const std::vector< int > &)
set hadEnergyVec - hadEnergy for all time slices
xAOD::JetElement_v1::phi
float phi() const
get phi (note that for L1Calo phi runs from 0 to 2pi)
xAOD::JetElement_v1::hadSliceEnergy
int hadSliceEnergy(int slice) const
get hadEnery for hadEnergyVec[slice] - time slice for arbitary slice
Definition: JetElement_v1.cxx:179
xAOD::JetElement_v1::emError
int emError() const
get emError for emErrorVec[peak] - time slice that (hopefully) contains the collision
Definition: JetElement_v1.cxx:216
xAOD::JetElement_v1::linkError
int linkError() const
get linkError for linkErrorVec[peak] - time slice that (hopefully) contains the collision
Definition: JetElement_v1.cxx:226
xAOD::JetElement_v1::setEmEnergyVec
void setEmEnergyVec(const std::vector< int > &)
set emEnergyVec - emEnergy for all time slices
xAOD::JetElement_v1::emEnergy
int emEnergy() const
get emEnery for emEnergyVec[peak] - time slice that (hopefully) contains the collision
Definition: JetElement_v1.cxx:141
xAOD::JetElement_v1::hadError
int hadError() const
get hadError for hadErrorVec[peak] - time slice that (hopefully) contains the collision
Definition: JetElement_v1.cxx:221
xAOD::JetElement_v1::hadErrorVec
const std::vector< int > & hadErrorVec() const
get hadErrorVec - hadError for all time slices
xAOD::JetElement_v1::setEta
void setEta(float)
set eta
xAOD::JetElement_v1::hadEnergy
int hadEnergy() const
get hadEnery for hadEnergyVec[peak] - time slice that (hopefully) contains the collision
Definition: JetElement_v1.cxx:149
AuxElement.h
Base class for elements of a container that can have aux data.
xAOD::JetElement_v1::key
unsigned int key() const
get key
xAOD::JetElement_v1::m_saturationThreshold
static const int m_saturationThreshold
Definition: JetElement_v1.h:107