ATLAS Offline Software
Loading...
Searching...
No Matches
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTower.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
5 //***************************************************************************
6 // CPMTower.h - description
7 // -------------------
8 // begin : Thurs Dec 14 2006
9 // email : Alan.Watson@cern.ch
10 // ***************************************************************************/
11
12
13#ifndef CPMTower_H
14#define CPMTower_H
15
18
20#include <map>
21
22
23namespace LVL1 {
24
25 //Doxygen class description below:
35
36class CPMTower {
37
38public:
39
42 CPMTower(double phi, double eta);
43
44 CPMTower(double phi, double eta,
45 const std::vector<int>& em_et,
46 const std::vector<int>& em_error,
47 const std::vector<int>& had_et,
48 const std::vector<int>& had_error,
49 int peak);
50
52 void fill(const std::vector<int>& em_et,
53 const std::vector<int>& em_error,
54 const std::vector<int>& had_et,
55 const std::vector<int>& had_error,
56 int peak);
57
59 int emEnergy() const {return m_em_energy[m_peak];};
60 int hadEnergy() const {return m_had_energy[m_peak];};
61
63 int emSliceEnergy(int slice) const;
64 int hadSliceEnergy(int slice) const;
65
67 const std::vector<int> & emEnergyVec() const {return m_em_energy;};
68 const std::vector<int> & hadEnergyVec() const {return m_had_energy;};
69
71 double eta() const {return m_eta;};
72
74 double phi() const {return m_phi;};
75
77 Coordinate coord() const;
78
80 int peak() const {return m_peak;};
81
83 int emError() const {return m_em_error[m_peak];};
84 int hadError() const {return m_had_error[m_peak];};
85 int emSliceError(int slice) const;
86 int hadSliceError(int slice) const;
87 const std::vector<int> & emErrorVec() const {return m_em_error;};
88 const std::vector<int> & hadErrorVec() const {return m_had_error;};
89
91 private:
92 std::vector <int> m_em_energy{0};
93 std::vector <int> m_had_energy{0};
94 std::vector <int> m_em_error{0};
95 std::vector <int> m_had_error{0};
96 double m_phi{};
97 double m_eta{};
98 int m_peak{};
99
100 };
101
102 typedef std::map<int, const CPMTower*> CPMTowerMap_t;
103 } // end of namespace
104
105#ifndef CPMTower_ClassDEF_H
107#endif
108
109#endif
macros to associate a CLID to a type
An STL vector of pointers that by default owns its pointed-to elements.
int emError() const
Utilities to report on status of tower.
CPMTower(double phi, double eta)
int peak() const
return peak positions in ET and error vectors
int hadSliceError(int slice) const
Definition CPMTower.cxx:81
int emSliceEnergy(int slice) const
return the ET values for a specified slice
Definition CPMTower.cxx:67
int hadSliceEnergy(int slice) const
Definition CPMTower.cxx:71
void fill(const std::vector< int > &em_et, const std::vector< int > &em_error, const std::vector< int > &had_et, const std::vector< int > &had_error, int peak)
Methods to fill towers with digits, calibrated ET vectors and status flags.
Definition CPMTower.cxx:52
Coordinate coord() const
returns coordinate of TT
Definition CPMTower.cxx:89
CPMTower()
Constructors.
int emSliceError(int slice) const
Methods to return error words for specified slice.
Definition CPMTower.cxx:77
CPMTower(double phi, double eta, const std::vector< int > &em_et, const std::vector< int > &em_error, const std::vector< int > &had_et, const std::vector< int > &had_error, int peak)
double phi() const
returns phi coord of tower
int emEnergy() const
return the final ET values using the in algorithms
const std::vector< int > & emEnergyVec() const
return references to the vectors containing the ET values.
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
std::map< int, const CPMTower * > CPMTowerMap_t