ATLAS Offline Software
Loading...
Searching...
No Matches
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
17namespace xAOD {
18
25
27 public:
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
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
Scalar eta() const
pseudorapidity method
Base class for elements of a container that can have aux data.
Base class for elements of a container that can have aux data.
Definition AuxElement.h:483
void setHadJetElementETVec(const std::vector< uint16_t > &)
set hadJetElementETVec - hadJetElementET for all time slices
unsigned int key() const
get key
static const int m_layerSaturationThreshold
const std::vector< uint32_t > & hadJetElementErrorVec() const
get hadJetElementErrorVec - hadJetElementError for all time slices
float phi() const
get phi (note that for L1Calo phi runs from 0 to 2pi)
void setLinkErrorVec(const std::vector< uint32_t > &)
set linkErrorVec - linkError for all time slices
uint32_t linkError() const
get linkError for linkErrorVec[peak] - time slice that (hopefully) contains the collision
void setKey(unsigned int)
set key
void setPeak(uint8_t)
set key
const std::vector< uint32_t > & emJetElementErrorVec() const
get emJetElementErrorVec - emJetElementError for all time slices
const std::vector< uint32_t > & linkErrorVec() const
get linkErrorVec - linkError for all time slices
const std::vector< uint16_t > & hadJetElementETVec() const
get hadJetElementETVec - hadJetElementET for all time slices
unsigned int hadJetElementET() const
get hadJetElementET for hadJetElementETVec[peak] - time slice that (hopefully) contains the collision
unsigned int hadJetElementETSlice(unsigned int slice) const
get hadJetElementET for hadJetElementETVec[slice] - time slice for arbitary slice
JetElement_v2()
Default constructor.
uint32_t emJetElementError() const
get emJetElementError for emJetElementErrorVec[peak] - time slice that (hopefully) contains the colli...
float eta() const
get eta
const std::vector< uint16_t > & emJetElementETVec() const
get emJetElementETVec - emJetElementET for all time slices
uint32_t hadJetElementError() const
get hadJetElementError for hadJetElementErrorVec[peak] - time slice that (hopefully) contains the col...
void setEmJetElementETVec(const std::vector< uint16_t > &)
set emJetElementETVec - emJetElementET for all time slices
unsigned int emJetElementETSlice(unsigned int slice) const
get emJetElementET for emJetElementETVec[slice] - time slice for arbitary slice
bool isEmSaturated() const
is EM component of JetElement saturated?
static const int m_saturationThreshold
unsigned int et() const
get total et. returns emJetElementET() + hadJetElementET()
void setEmJetElementErrorVec(const std::vector< uint32_t > &)
set emJetElementErrorVec - emJetElementError for all time slices
void setHadJetElementErrorVec(const std::vector< uint32_t > &)
set hadJetElementErrorVec - hadJetElementError for all time slices
unsigned int emJetElementET() const
get emJetElementET for emJetElementETVec[peak] - time slice that (hopefully) contains the collision
bool isSaturated() const
is JetElement saturated?
virtual ~JetElement_v2()
Default desturctor.
uint8_t peak() const
get peak
unsigned int sliceET(unsigned int slice) const
get total et. returns emJetElementETSlice(slice) + hadJetElementETSlice(slice)
bool isHadSaturated() const
is Had component of JetElement saturated?
void setPhi(float)
set phi
void setEta(float)
set eta
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
setEventNumber uint32_t
void initialize()