ATLAS Offline Software
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 
15 namespace 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
xAOD::TriggerTower_v1::emBCIDvec
const std::vector< int > & emBCIDvec() const
get EM BCID for all time slices
xAOD::TriggerTower_v1::setEmBCIDext
void setEmBCIDext(const std::vector< int > &)
set EM extBCID for all time slices
et
Extra patterns decribing particle interation process.
xAOD::TriggerTower_v1::setEmADC
void setEmADC(const std::vector< int > &)
set EM ADC for all time slices
xAOD::TriggerTower_v1::eta
float eta() const
get eta
xAOD::TriggerTower_v1::hadBCID
int hadBCID() const
get HAD BCID at peak
Definition: TriggerTower_v1.cxx:97
xAOD::TriggerTower_v1::setHadADCPeak
void setHadADCPeak(int)
set HAD ADC peak
xAOD::TriggerTower_v1::hadPeak
int hadPeak() const
get HAD peak
xAOD::TriggerTower_v1::hadADCPeak
int hadADCPeak() const
get HAD ADC peak
xAOD::TriggerTower_v1::key
unsigned int key() const
get key of TT
SG::AuxElement
Base class for elements of a container that can have aux data.
Definition: AuxElement.h:483
xAOD::TriggerTower_v1::emBCIDext
const std::vector< int > & emBCIDext() const
get EM extBCID for all time slices
xAOD::TriggerTower_v1::addHad
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.
Definition: TriggerTower_v1.cxx:53
xAOD::TriggerTower_v1::emError
int emError() const
get EM error
xAOD::TriggerTower_v1::hadBCIDext
const std::vector< int > & hadBCIDext() const
get HAD extBCID for all time slices
xAOD::TriggerTower_v1::setHadError
void setHadError(int)
set HAD error
xAOD::TriggerTower_v1::setEta
void setEta(float)
set eta
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
xAOD::TriggerTower_v1
Description of TriggerTower_v1.
Definition: TriggerTower_v1.h:44
xAOD::TriggerTower_v1::m_saturation
static const int m_saturation
Definition: TriggerTower_v1.h:163
xAOD::TriggerTower_v1::isEMSaturated
bool isEMSaturated() const
Is EM saturated?
Definition: TriggerTower_v1.cxx:108
xAOD::TriggerTower_v1::isHadSaturated
bool isHadSaturated() const
Is HAD saturated?
Definition: TriggerTower_v1.cxx:118
xAOD::TriggerTower_v1::emLUT
const std::vector< int > & emLUT() const
get EM energy for all time slices
xAOD::TriggerTower_v1::addEM
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.
Definition: TriggerTower_v1.cxx:39
xAOD::TriggerTower_v1::hadBCIDvec
const std::vector< int > & hadBCIDvec() const
get HAD BCID for all time slices
xAOD::TriggerTower_v1::setEmError
void setEmError(int)
set EM error
xAOD::TriggerTower_v1::phi
float phi() const
get phi (note that for L1Calo phi runs from 0 to 2pi)
xAOD::TriggerTower_v1::setHadPeak
void setHadPeak(int)
set HAD peak
xAOD::TriggerTower_v1::setEmPeak
void setEmPeak(int)
set EM peak
xAOD::TriggerTower_v1::setEmADCPeak
void setEmADCPeak(int)
set EM ADC peak
xAOD::TriggerTower_v1::hadADC
const std::vector< int > & hadADC() const
get HAD ADC for all time slices
xAOD::TriggerTower_v1::setHadLUT
void setHadLUT(const std::vector< int > &)
set HAD energy for all time slices
xAOD::TriggerTower_v1::setHadBCIDvec
void setHadBCIDvec(const std::vector< int > &)
set HAD BCID for all time slices
xAOD::TriggerTower_v1::emADC
const std::vector< int > & emADC() const
get EM ADC for all time slices
xAOD::TriggerTower_v1::setCoord
void setCoord(double eta, double phi)
Specify the location of tower. Internally calls setEta();setPhi();.
Definition: TriggerTower_v1.cxx:67
xAOD::bcid
setEventNumber setTimeStamp bcid
Definition: EventInfo_v1.cxx:133
xAOD::TriggerTower_v1::hadError
int hadError() const
get HAD error
xAOD::TriggerTower_v1::setHadADC
void setHadADC(const std::vector< int > &)
set HAD ADC for all time slices
xAOD::TriggerTower_v1::hadLUT
const std::vector< int > & hadLUT() const
get HAD energy for all time slices
xAOD::TriggerTower_v1::emADCPeak
int emADCPeak() const
get EM ADC peak
xAOD::TriggerTower_v1::setEmBCIDvec
void setEmBCIDvec(const std::vector< int > &)
set EM BCID for all time slices
xAOD::TriggerTower_v1::emPeak
int emPeak() const
get EM peak
xAOD::TriggerTower_v1::emBCID
int emBCID() const
get EM BCID at peak
Definition: TriggerTower_v1.cxx:86
xAOD::TriggerTower_v1::setKey
void setKey(unsigned int)
set key of TT
xAOD::TriggerTower_v1::emEnergy
int emEnergy() const
Final EM energy value used by the algorithms.
Definition: TriggerTower_v1.cxx:74
error
Definition: IImpactPoint3dEstimator.h:70
xAOD::TriggerTower_v1::hadEnergy
int hadEnergy() const
Final HAD energy value used by the algorithms.
Definition: TriggerTower_v1.cxx:80
xAOD::TriggerTower_v1::TriggerTower_v1
TriggerTower_v1()
Definition: TriggerTower_v1.cxx:15
AuxElement.h
Base class for elements of a container that can have aux data.
xAOD::TriggerTower_v1::setHadBCIDext
void setHadBCIDext(const std::vector< int > &)
set HAD extBCID for all time slices
xAOD::TriggerTower_v1::setEmLUT
void setEmLUT(const std::vector< int > &)
set EM energy for all time slices
xAOD::TriggerTower_v1::setPhi
void setPhi(float)
set phi