ATLAS Offline Software
JetElement_v2.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_v2.h 687949 2015-08-06 15:48:49Z amazurov $
8 #ifndef XAODTRIGL1CALO_VERSIONS_JETELEMENT_V2_H
9 #define XAODTRIGL1CALO_VERSIONS_JETELEMENT_V2_H
10 
11 #include "AthLinks/ElementLink.h"
13 
14 // System include(s):
15 #include <stdint.h>
16 
17 namespace xAOD {
18 
25 
26  class JetElement_v2 : public SG::AuxElement{
27  public:
29  JetElement_v2();
31  virtual ~JetElement_v2(){}
32 
34  virtual void initialize(const float eta,const float phi,const unsigned int key);
35 
37  virtual void initialize(const float eta,const float phi,const unsigned int key,
38  const std::vector<uint16_t>& emJetElementETVec,
39  const std::vector<uint16_t>& hadJetElementETVec,
40  const std::vector<uint32_t>& emJetElementErrorVec,
41  const std::vector<uint32_t>& hadJetElementErrorVec,
42  const std::vector<uint32_t>& linkErrorVec,
43  const uint8_t peak);
44 
46  float eta() const;
48  void setEta(float);
49 
51  float phi() const;
53  void setPhi(float);
54 
56  unsigned int key() const;
58  void setKey(unsigned int);
59 
61  uint8_t peak() const;
64 
66  const std::vector<uint16_t>& emJetElementETVec() const;
68  void setEmJetElementETVec(const std::vector<uint16_t>&);
69 
71  const std::vector<uint16_t>& hadJetElementETVec() const;
73  void setHadJetElementETVec(const std::vector<uint16_t>&);
74 
76  const std::vector<uint32_t>& emJetElementErrorVec() const;
78  void setEmJetElementErrorVec(const std::vector<uint32_t>&);
79 
81  const std::vector<uint32_t>& hadJetElementErrorVec() const;
83  void setHadJetElementErrorVec(const std::vector<uint32_t>&);
84 
86  const std::vector<uint32_t>& linkErrorVec() const;
88  void setLinkErrorVec(const std::vector<uint32_t>&);
89 
90 
92  unsigned int emJetElementET() const;
94  unsigned int hadJetElementET() const;
96  unsigned int et() const;
97 
99  unsigned int emJetElementETSlice(unsigned int slice) const;
101  unsigned int hadJetElementETSlice(unsigned int slice) const;
103  unsigned int sliceET(unsigned int slice) const;
104 
106  bool isSaturated() const;
108  bool isEmSaturated() const;
110  bool isHadSaturated() const;
111 
113  uint32_t emJetElementError() const;
117  uint32_t linkError() const;
118 
119  private:
120  static const int m_saturationThreshold = 1023;
121  static const int m_layerSaturationThreshold = 511;
122  };
123 } // namespace xAOD
124 
125 #endif // XAODTRIGL1CALO_VERSIONS_JETELEMENT_V2_H
xAOD::JetElement_v2::setEta
void setEta(float)
set eta
xAOD::JetElement_v2::hadJetElementError
uint32_t hadJetElementError() const
get hadJetElementError for hadJetElementErrorVec[peak] - time slice that (hopefully) contains the col...
Definition: JetElement_v2.cxx:142
xAOD::JetElement_v2::isEmSaturated
bool isEmSaturated() const
is EM component of JetElement saturated?
Definition: JetElement_v2.cxx:127
xAOD::JetElement_v2::setEmJetElementETVec
void setEmJetElementETVec(const std::vector< uint16_t > &)
set emJetElementETVec - emJetElementET for all time slices
xAOD::JetElement_v2::setHadJetElementErrorVec
void setHadJetElementErrorVec(const std::vector< uint32_t > &)
set hadJetElementErrorVec - hadJetElementError for all time slices
xAOD::JetElement_v2::emJetElementError
uint32_t emJetElementError() const
get emJetElementError for emJetElementErrorVec[peak] - time slice that (hopefully) contains the colli...
Definition: JetElement_v2.cxx:137
xAOD::uint8_t
uint8_t
Definition: Muon_v1.cxx:557
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
xAOD::JetElement_v2::setKey
void setKey(unsigned int)
set key
SG::AuxElement
Base class for elements of a container that can have aux data.
Definition: AuxElement.h:472
xAOD::JetElement_v2::setPeak
void setPeak(uint8_t)
set key
xAOD::JetElement_v2::setEmJetElementErrorVec
void setEmJetElementErrorVec(const std::vector< uint32_t > &)
set emJetElementErrorVec - emJetElementError for all time slices
xAOD::JetElement_v2::emJetElementET
unsigned int emJetElementET() const
get emJetElementET for emJetElementETVec[peak] - time slice that (hopefully) contains the collision
Definition: JetElement_v2.cxx:62
xAOD::JetElement_v2
Description of JetElement_v2.
Definition: JetElement_v2.h:26
xAOD::JetElement_v2::isSaturated
bool isSaturated() const
is JetElement saturated?
Definition: JetElement_v2.cxx:122
xAOD::JetElement_v2::sliceET
unsigned int sliceET(unsigned int slice) const
get total et. returns emJetElementETSlice(slice) + hadJetElementETSlice(slice)
Definition: JetElement_v2.cxx:111
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
xAOD::JetElement_v2::JetElement_v2
JetElement_v2()
Default constructor.
Definition: JetElement_v2.cxx:18
xAOD::JetElement_v2::emJetElementErrorVec
const std::vector< uint32_t > & emJetElementErrorVec() const
get emJetElementErrorVec - emJetElementError for all time slices
xAOD::JetElement_v2::eta
float eta() const
get eta
xAOD::JetElement_v2::initialize
virtual void initialize(const float eta, const float phi, const unsigned int key)
initialize
Definition: JetElement_v2.cxx:24
xAOD::JetElement_v2::setLinkErrorVec
void setLinkErrorVec(const std::vector< uint32_t > &)
set linkErrorVec - linkError for all time slices
xAOD::JetElement_v2::peak
uint8_t peak() const
get peak
xAOD::JetElement_v2::linkErrorVec
const std::vector< uint32_t > & linkErrorVec() const
get linkErrorVec - linkError for all time slices
perfmonmt-refit.slice
slice
Definition: perfmonmt-refit.py:52
xAOD::JetElement_v2::hadJetElementETSlice
unsigned int hadJetElementETSlice(unsigned int slice) const
get hadJetElementET for hadJetElementETVec[slice] - time slice for arbitary slice
Definition: JetElement_v2.cxx:100
xAOD::JetElement_v2::emJetElementETSlice
unsigned int emJetElementETSlice(unsigned int slice) const
get emJetElementET for emJetElementETVec[slice] - time slice for arbitary slice
Definition: JetElement_v2.cxx:89
xAOD::JetElement_v2::hadJetElementETVec
const std::vector< uint16_t > & hadJetElementETVec() const
get hadJetElementETVec - hadJetElementET for all time slices
xAOD::JetElement_v2::hadJetElementET
unsigned int hadJetElementET() const
get hadJetElementET for hadJetElementETVec[peak] - time slice that (hopefully) contains the collision
Definition: JetElement_v2.cxx:70
xAOD::JetElement_v2::m_saturationThreshold
static const int m_saturationThreshold
Definition: JetElement_v2.h:120
xAOD::JetElement_v2::m_layerSaturationThreshold
static const int m_layerSaturationThreshold
Definition: JetElement_v2.h:121
xAOD::JetElement_v2::key
unsigned int key() const
get key
xAOD::JetElement_v2::linkError
uint32_t linkError() const
get linkError for linkErrorVec[peak] - time slice that (hopefully) contains the collision
Definition: JetElement_v2.cxx:147
xAOD::JetElement_v2::emJetElementETVec
const std::vector< uint16_t > & emJetElementETVec() const
get emJetElementETVec - emJetElementET for all time slices
xAOD::JetElement_v2::setPhi
void setPhi(float)
set phi
xAOD::JetElement_v2::phi
float phi() const
get phi (note that for L1Calo phi runs from 0 to 2pi)
xAOD::JetElement_v2::setHadJetElementETVec
void setHadJetElementETVec(const std::vector< uint16_t > &)
set hadJetElementETVec - hadJetElementET for all time slices
xAOD::JetElement_v2::~JetElement_v2
virtual ~JetElement_v2()
Default desturctor.
Definition: JetElement_v2.h:31
xAOD::JetElement_v2::et
unsigned int et() const
get total et. returns emJetElementET() + hadJetElementET()
Definition: JetElement_v2.cxx:78
AuxElement.h
Base class for elements of a container that can have aux data.
xAOD::JetElement_v2::hadJetElementErrorVec
const std::vector< uint32_t > & hadJetElementErrorVec() const
get hadJetElementErrorVec - hadJetElementError for all time slices
xAOD::JetElement_v2::isHadSaturated
bool isHadSaturated() const
is Had component of JetElement saturated?
Definition: JetElement_v2.cxx:132