ATLAS Offline Software
Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTower.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  // 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 
17 #include "AthenaKernel/CLASS_DEF.h"
18 
20 #include <map>
21 
22 
23 namespace LVL1 {
24 
25  //Doxygen class description below:
36 class CPMTower {
37 
38 public:
39 
42 
43  CPMTower(double phi, double eta);
44 
45  CPMTower(double phi, double eta,
46  const std::vector<int>& em_et,
47  const std::vector<int>& em_error,
48  const std::vector<int>& had_et,
49  const std::vector<int>& had_error,
50  int peak);
51 
53  virtual ~CPMTower();
54 
56  void fill(const std::vector<int>& em_et,
57  const std::vector<int>& em_error,
58  const std::vector<int>& had_et,
59  const std::vector<int>& had_error,
60  int peak);
61 
63  int emEnergy() const {return m_em_energy[m_peak];};
64  int hadEnergy() const {return m_had_energy[m_peak];};
65 
67  int emSliceEnergy(int slice) const;
68  int hadSliceEnergy(int slice) const;
69 
71  const std::vector<int> & emEnergyVec() const {return m_em_energy;};
72  const std::vector<int> & hadEnergyVec() const {return m_had_energy;};
73 
75  double eta() const {return m_eta;};
76 
78  double phi() const {return m_phi;};
79 
81  Coordinate coord() const;
82 
84  int peak() const {return m_peak;};
85 
87  int emError() const {return m_em_error[m_peak];};
88  int hadError() const {return m_had_error[m_peak];};
89  int emSliceError(int slice) const;
90  int hadSliceError(int slice) const;
91  const std::vector<int> & emErrorVec() const {return m_em_error;};
92  const std::vector<int> & hadErrorVec() const {return m_had_error;};
93 
95  private:
96  std::vector <int> m_em_energy;
97  std::vector <int> m_had_energy;
98  std::vector <int> m_em_error;
99  std::vector <int> m_had_error;
100  double m_phi;
101  double m_eta;
102  int m_peak;
103 
104  };
105 
106  typedef std::map<int, const CPMTower*> CPMTowerMap_t;
107  } // end of namespace
108 
109 #ifndef CPMTower_ClassDEF_H
111 #endif
112 
113 #endif
LVL1::CPMTower::CPMTower
CPMTower(double phi, double eta)
LVL1::CPMTower::m_em_energy
std::vector< int > m_em_energy
Internal data.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTower.h:92
LVL1::CPMTower::hadEnergy
int hadEnergy() const
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTower.h:64
LVL1::CPMTower::emEnergy
int emEnergy() const
return the final ET values using the in algorithms
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTower.h:63
LVL1::CPMTower::m_em_error
std::vector< int > m_em_error
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTower.h:98
LVL1::CPMTower::hadEnergyVec
const std::vector< int > & hadEnergyVec() const
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTower.h:72
LVL1::CPMTower::eta
double eta() const
returns eta coord
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTower.h:75
LVL1::CPMTowerMap_t
std::map< int, const CPMTower * > CPMTowerMap_t
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTower.h:106
LVL1::CPMTower::phi
double phi() const
returns phi coord of tower
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTower.h:78
LVL1::CPMTower::hadErrorVec
const std::vector< int > & hadErrorVec() const
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTower.h:92
LVL1::CPMTower::m_had_error
std::vector< int > m_had_error
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTower.h:99
LVL1::CPMTower::emSliceError
int emSliceError(int slice) const
Methods to return error words for specified slice.
Definition: CPMTower.cxx:89
LVL1
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
Definition: ICMMCPHitsCnvTool.h:18
LVL1::CPMTower::hadError
int hadError() const
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTower.h:88
LVL1::CPMTower::peak
int peak() const
return peak positions in ET and error vectors
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTower.h:84
LVL1::CPMTower::coord
Coordinate coord() const
returns coordinate of TT
Definition: CPMTower.cxx:96
LVL1::CPMTower
The CPMTower class contains the TriggerTower information received by the Cluster Processor Modules.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTower.h:36
LVL1::CPMTower::m_had_energy
std::vector< int > m_had_energy
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTower.h:97
LVL1::CPMTower::emSliceEnergy
int emSliceEnergy(int slice) const
return the ET values for a specified slice
Definition: CPMTower.cxx:79
LVL1::CPMTower::CPMTower
CPMTower()
Constructors.
LVL1::Coordinate
Coordinate class declaration.
Definition: TrigT1/TrigT1Interfaces/TrigT1Interfaces/Coordinate.h:50
perfmonmt-refit.slice
slice
Definition: perfmonmt-refit.py:52
LVL1::CPMTower::~CPMTower
virtual ~CPMTower()
Destructor.
Definition: CPMTower.cxx:60
Coordinate.h
LVL1::CPMTower::emErrorVec
const std::vector< int > & emErrorVec() const
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTower.h:91
LVL1::CPMTower::hadSliceEnergy
int hadSliceEnergy(int slice) const
Definition: CPMTower.cxx:83
LVL1::CPMTower::hadSliceError
int hadSliceError(int slice) const
Definition: CPMTower.cxx:93
LVL1::CPMTower::m_eta
double m_eta
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTower.h:101
CPMTower_ClassDEF.h
DataVector.h
An STL vector of pointers that by default owns its pointed-to elements.
LVL1::CPMTower::fill
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:64
LVL1::CPMTower::m_phi
double m_phi
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTower.h:100
LVL1::CPMTower::emError
int emError() const
Utilities to report on status of tower.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTower.h:87
LVL1::CPMTower::m_peak
int m_peak
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTower.h:102
LVL1::CPMTower::emEnergyVec
const std::vector< int > & emEnergyVec() const
return references to the vectors containing the ET values.
Definition: Trigger/TrigT1/TrigT1CaloEvent/TrigT1CaloEvent/CPMTower.h:71
CLASS_DEF.h
macros to associate a CLID to a type
LVL1::CPMTower::CPMTower
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)