ATLAS Offline Software
InternalTriggerTower.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3 */
4 /***************************************************************************
5  TriggerTower.cpp - description
6  -------------------
7  begin : Fri Sep 30 2005
8  email : Alan.Watson@cern.ch
9  ***************************************************************************/
10 
11 
13 
14 namespace LVL1 {
15 
17 LVL1::InternalTriggerTower::InternalTriggerTower::InternalTriggerTower(double phi, double eta, int key):
18  m_phi(phi),
19  m_eta(eta),
20  m_key(key),
21  m_EmAmps(7),
22  m_HadAmps(7),
23  m_EmADC(7),
24  m_HadADC(7)
25 {
26 }
27 // default constructor
28 LVL1::InternalTriggerTower::InternalTriggerTower::InternalTriggerTower():
29  m_phi(0.0),
30  m_eta(0.0),
31  m_key(0),
32  m_EmAmps(1),
33  m_HadAmps(1),
34  m_EmADC(1),
35  m_HadADC(1)
36  {
37  }
38 
39 InternalTriggerTower::~InternalTriggerTower(){
40 }
41 
43 const std::vector<double> & InternalTriggerTower::EmAmps() const
44 { return m_EmAmps; }
45 
47 const std::vector<double> & InternalTriggerTower::HadAmps() const
48 { return m_HadAmps; }
49 
51 const std::vector<int> & InternalTriggerTower::EmADC() const
52 { return m_EmADC; }
53 
55 const std::vector<int> & InternalTriggerTower::HadADC() const
56 { return m_HadADC; }
57 
58 
60 void LVL1::InternalTriggerTower::addEMAmps(std::vector<double>& energy){
61  m_EmAmps = energy;
62  return;
63 }
64 void LVL1::InternalTriggerTower::addHadAmps(std::vector<double>& energy){
65  m_HadAmps = energy;
66  return;
67 }
68 
70 void LVL1::InternalTriggerTower::addEMADC(std::vector<int>& digits){
71  m_EmADC = digits;
72  return;
73 }
74 void LVL1::InternalTriggerTower::addHadADC(std::vector<int>& digits){
75  m_HadADC = digits;
76  return;
77 }
78 
82  int peak = m_EmAmps.size()/2;
83  m_EmAmps[peak] += energy;
84  return;
85 }
87  int peak = m_HadAmps.size()/2;
88  m_HadAmps[peak] += energy;
89  return;
90 }
91 
92 
93 } // end of LVL1 namespace
94 
97  return Coordinate(m_phi, m_eta);
98 }
test_pyathena.eta
eta
Definition: test_pyathena.py:10
LVL1::InternalTriggerTower::addEMAmps
void addEMAmps(std::vector< double > &energy)
Methods to fill towers with analogue amplitudes.
Definition: InternalTriggerTower.cxx:65
InternalTriggerTower.h
LVL1::InternalTriggerTower::coord
Coordinate coord() const
returns coordinate of tower
Definition: InternalTriggerTower.cxx:96
LVL1
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
Definition: ICMMCPHitsCnvTool.h:18
LVL1::InternalTriggerTower::addHadAmps
void addHadAmps(std::vector< double > &energy)
Definition: InternalTriggerTower.cxx:69
xAOD::phi
setEt phi
Definition: TrigEMCluster_v1.cxx:29
LVL1::InternalTriggerTower::addEMPeak
void addEMPeak(double energy)
Methods to add energy to peak sample of tower (used for CaloCell input)
Definition: InternalTriggerTower.cxx:86
LVL1::InternalTriggerTower::addHadPeak
void addHadPeak(double energy)
Definition: InternalTriggerTower.cxx:91
ParticleGun_FastCalo_ChargeFlip_Config.energy
energy
Definition: ParticleGun_FastCalo_ChargeFlip_Config.py:78
LVL1::Coordinate
Coordinate class declaration.
Definition: TrigT1/TrigT1Interfaces/TrigT1Interfaces/Coordinate.h:50
LVL1::InternalTriggerTower::m_eta
double m_eta
Definition: InternalTriggerTower.h:80
LVL1::InternalTriggerTower::m_phi
double m_phi
Internal data.
Definition: InternalTriggerTower.h:75
LVL1::InternalTriggerTower::addEMADC
void addEMADC(std::vector< int > &adc)
Methods to fill towers with digitised amplitudes.
Definition: InternalTriggerTower.cxx:75
LVL1::InternalTriggerTower::addHadADC
void addHadADC(std::vector< int > &adc)
Definition: InternalTriggerTower.cxx:79
mapkey::key
key
Definition: TElectronEfficiencyCorrectionTool.cxx:37