ATLAS Offline Software
Loading...
Searching...
No Matches
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
14namespace xAOD {
15
22
24 public:
25 // Default constructor
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
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
unsigned int key() const
get key
const std::vector< int > & emEnergyVec() const
get emEnergyVec - emEnergy for all time slices
void setPhi(float)
set phi
void addEnergy(int emEnergy, int hadEnergy)
Add ET to triggered time slice.
const std::vector< int > & linkErrorVec() const
get linkErrorVec - linkError for all time slices
int peak() const
get peak
bool isHadSaturated() const
is Had component of JetElement saturated?
int hadSliceEnergy(int slice) const
get hadEnery for hadEnergyVec[slice] - time slice for arbitary slice
void setEmEnergyVec(const std::vector< int > &)
set emEnergyVec - emEnergy for all time slices
float phi() const
get phi (note that for L1Calo phi runs from 0 to 2pi)
void setHadErrorVec(const std::vector< int > &)
set hadErrorVec - hadError for all time slices
int hadError() const
get hadError for hadErrorVec[peak] - time slice that (hopefully) contains the collision
void setLinkErrorVec(const std::vector< int > &)
set linkErrorVec - linkError for all time slices
bool isEmSaturated() const
is EM component of JetElement saturated?
const std::vector< int > & emErrorVec() const
get emErrorVec - emError for all time slices
int linkError() const
get linkError for linkErrorVec[peak] - time slice that (hopefully) contains the collision
int energy() const
get total energy. returns emEnergy() + hadEnergy()
void setEta(float)
set eta
void setEmErrorVec(const std::vector< int > &)
set emErrorVec - emError for all time slices
static const int m_saturationThreshold
int sliceEnergy(int slice) const
get total energy. returns emSliceEnergy(slice) + hadSliceEnergy(slice)
void addSlice(int slice, int emEnergy, int hadEnergy, int emError, int hadError, int linkError)
Add ET values to specified slice.
static const int m_layerSaturationThreshold
int emError() const
get emError for emErrorVec[peak] - time slice that (hopefully) contains the collision
const std::vector< int > & hadErrorVec() const
get hadErrorVec - hadError for all time slices
int emEnergy() const
get emEnery for emEnergyVec[peak] - time slice that (hopefully) contains the collision
void setPeak(int)
set key
const std::vector< int > & hadEnergyVec() const
get hadEnergyVec - hadEnergy for all time slices
int hadEnergy() const
get hadEnery for hadEnergyVec[peak] - time slice that (hopefully) contains the collision
bool isSaturated() const
is JetElement saturated?
void setHadEnergyVec(const std::vector< int > &)
set hadEnergyVec - hadEnergy for all time slices
int emSliceEnergy(int slice) const
get emEnery for emEnergyVec[slice] - time slice for arbitary slice
void setKey(unsigned int)
set key
float eta() const
get eta
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.