ATLAS Offline Software
Loading...
Searching...
No Matches
InternalTriggerTower.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3*/
4
5 //***************************************************************************
6 // InternalTriggerTower.h - description
7 // -------------------
8 // begin : Fri Sep 30 2005
9 // email : Alan.Watson@cern.ch
10 // ***************************************************************************/
11
12
13#ifndef InternalTriggerTower_H
14#define InternalTriggerTower_H
15
18
20
21
22namespace LVL1 {
23
24 //Doxygen class description below:
32
33public:
34 InternalTriggerTower( double phi, double eta, int key);
35
37
38 virtual ~InternalTriggerTower();
39
41 double eta() const {return m_eta;};
42
44 double phi() const {return m_phi;};
45
47 Coordinate coord() const;
48
50 const std::vector<double> & EmAmps() const;
51
53 const std::vector<double> & HadAmps() const;
54
56 const std::vector<int> & EmADC() const;
57
59 const std::vector<int> & HadADC() const;
60
62 void addEMAmps(std::vector<double>& energy);
63 void addHadAmps(std::vector<double>& energy);
64
66 void addEMPeak(double energy);
67 void addHadPeak(double energy);
68
70 void addEMADC(std::vector<int>& adc);
71 void addHadADC(std::vector<int>& adc);
72
75 unsigned int key() const { return m_key;};
76
78 private:
79 double m_phi;
80 double m_eta;
81 unsigned int m_key;
82 std::vector <double> m_EmAmps;
83 std::vector <double> m_HadAmps;
84 std::vector <int> m_EmADC;
85 std::vector <int> m_HadADC;
86
87 };
88
89 } // end of namespace
90
91#ifndef InternalTriggerTower_ClassDEF_H
93#endif
94
95#endif
macros to associate a CLID to a type
An STL vector of pointers that by default owns its pointed-to elements.
double phi() const
returns phi coord of tower
Coordinate coord() const
returns coordinate of tower
void addEMAmps(std::vector< double > &energy)
Methods to fill towers with analogue amplitudes.
void addHadADC(std::vector< int > &adc)
std::vector< double > m_EmAmps
const std::vector< double > & EmAmps() const
returns reference to the vector containing the em amplitudes
std::vector< double > m_HadAmps
InternalTriggerTower(double phi, double eta, int key)
void addEMPeak(double energy)
Methods to add energy to peak sample of tower (used for CaloCell input)
void addEMADC(std::vector< int > &adc)
Methods to fill towers with digitised amplitudes.
void addHadAmps(std::vector< double > &energy)
const std::vector< double > & HadAmps() const
returns reference to the vector containing the had amplitudes
const std::vector< int > & EmADC() const
returns reference to the vector containing the em digits
const std::vector< int > & HadADC() const
returns reference to the vector containing the had digits
unsigned int key() const
returns TT key - that is the key the TT had when it was created.
double eta() const
returns eta coord
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...