ATLAS Offline Software
Loading...
Searching...
No Matches
TriggerTower_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: TriggerTower_v1.h 631127 2014-11-26 09:54:48Z gwatts $
8#ifndef XAODTRIGL1CALO_VERSIONS_TRIGGERTOWER_V1_H
9#define XAODTRIGL1CALO_VERSIONS_TRIGGERTOWER_V1_H
10
11// EDM include(s):
12#include "AthLinks/ElementLink.h"
14
15namespace xAOD {
16
43
45 public:
46 // Default constructor
48
50 const std::vector<int>& emLUT() const;
52 void setEmLUT(const std::vector<int>&);
53
55 const std::vector<int>& hadLUT() const;
57 void setHadLUT(const std::vector<int>&);
58
60 const std::vector<int>& emADC() const;
62 void setEmADC(const std::vector<int>&);
63
65 const std::vector<int>& hadADC() const;
67 void setHadADC(const std::vector<int>&);
68
70 const std::vector<int>& emBCIDvec() const;
72 void setEmBCIDvec(const std::vector<int>&);
73
75 const std::vector<int>& hadBCIDvec() const;
77 void setHadBCIDvec(const std::vector<int>&);
78
80 const std::vector<int>& emBCIDext() const;
82 void setEmBCIDext(const std::vector<int>&);
83
85 const std::vector<int>& hadBCIDext() const;
87 void setHadBCIDext(const std::vector<int>&);
88
90 float phi() const;
92 void setPhi(float);
93
95 float eta() const;
97 void setEta(float);
98
100 unsigned int key() const;
102 void setKey(unsigned int);
103
105 int emError() const;
107 void setEmError(int);
108
110 int hadError() const;
112 void setHadError(int);
113
115 int emPeak() const;
117 void setEmPeak(int);
118
120 int emADCPeak() const;
122 void setEmADCPeak(int);
123
125 int hadPeak() const;
127 void setHadPeak(int);
128
130 int hadADCPeak() const;
132 void setHadADCPeak(int);
133
134
136 void addEM(const std::vector<int>& digits, const std::vector<int>& et,
137 const std::vector<int>& digits_bcid, const std::vector<int>& bcid,
138 int error, int peak, int adc_peak);
140 void addHad(const std::vector<int>& digits, const std::vector<int>& et,
141 const std::vector<int>& digits_bcid, const std::vector<int>& bcid,
142 int error, int peak, int adc_peak);
143
145 void setCoord(double eta,double phi);
146
148 int emEnergy() const;
150 int hadEnergy() const;
151
153 int emBCID() const;
155 int hadBCID() const;
156
158 bool isEMSaturated() const;
160 bool isHadSaturated() const;
161
162 private:
163 static const int m_saturation = 255;
164
165 }; // class TriggerTower_v1
166} // namespace xAOD
167
168#endif // XAODTRIGL1CALO_VERSIONS_TRIGGERTOWER_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
void setHadADCPeak(int)
set HAD ADC peak
int hadADCPeak() const
get HAD ADC peak
int hadEnergy() const
Final HAD energy value used by the algorithms.
static const int m_saturation
const std::vector< int > & emLUT() const
get EM energy for all time slices
int emEnergy() const
Final EM energy value used by the algorithms.
void setPhi(float)
set phi
int hadBCID() const
get HAD BCID at peak
void setEta(float)
set eta
void setEmADC(const std::vector< int > &)
set EM ADC for all time slices
int emPeak() const
get EM peak
void setHadADC(const std::vector< int > &)
set HAD ADC for all time slices
unsigned int key() const
get key of TT
void addHad(const std::vector< int > &digits, const std::vector< int > &et, const std::vector< int > &digits_bcid, const std::vector< int > &bcid, int error, int peak, int adc_peak)
Fill HAD towers with digits, calibrated ET vectors and status flags.
void setEmADCPeak(int)
set EM ADC peak
void setHadBCIDext(const std::vector< int > &)
set HAD extBCID for all time slices
int hadPeak() const
get HAD peak
const std::vector< int > & hadLUT() const
get HAD energy for all time slices
void setEmPeak(int)
set EM peak
int hadError() const
get HAD error
void setEmLUT(const std::vector< int > &)
set EM energy for all time slices
const std::vector< int > & emBCIDvec() const
get EM BCID for all time slices
void setHadLUT(const std::vector< int > &)
set HAD energy for all time slices
void setKey(unsigned int)
set key of TT
void addEM(const std::vector< int > &digits, const std::vector< int > &et, const std::vector< int > &digits_bcid, const std::vector< int > &bcid, int error, int peak, int adc_peak)
Fill EM towers with digits, calibrated ET vectors and status flags.
const std::vector< int > & hadADC() const
get HAD ADC for all time slices
void setHadBCIDvec(const std::vector< int > &)
set HAD BCID for all time slices
int emADCPeak() const
get EM ADC peak
void setEmBCIDext(const std::vector< int > &)
set EM extBCID for all time slices
float phi() const
get phi (note that for L1Calo phi runs from 0 to 2pi)
void setCoord(double eta, double phi)
Specify the location of tower. Internally calls setEta();setPhi();.
const std::vector< int > & hadBCIDvec() const
get HAD BCID for all time slices
bool isEMSaturated() const
Is EM saturated?
int emError() const
get EM error
bool isHadSaturated() const
Is HAD saturated?
int emBCID() const
get EM BCID at peak
const std::vector< int > & emADC() const
get EM ADC for all time slices
const std::vector< int > & hadBCIDext() const
get HAD extBCID for all time slices
void setEmError(int)
set EM error
void setHadError(int)
set HAD error
const std::vector< int > & emBCIDext() const
get EM extBCID for all time slices
void setHadPeak(int)
set HAD peak
void setEmBCIDvec(const std::vector< int > &)
set EM BCID for all time slices
float eta() const
get eta
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
setEventNumber setTimeStamp bcid