ATLAS Offline Software
ZdcCalibEvent.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef ZdcCalibEvent_H
6 #define ZdcCalibEvent_H
7 
8 // STL include
9 #include <vector>
10 
11 // Lang include
12 #include <inttypes.h>
13 
15 
16 #include "AthenaKernel/CLASS_DEF.h"
17 
18 #include "ZdcEvent/ZdcCell.h"
19 
21 {
22 
23 public:
24 
25  ZdcCalibEvent ();
26 
27  virtual ~ZdcCalibEvent() { }
28 
32  //virtual void clear ();
33 
34  static void print() ;
35 
36  private:
37 
38  std::vector<double> m_towerE_A;
39  std::vector<double> m_towerT_A;
40  std::vector<double> m_towerE_C;
41  std::vector<double> m_towerT_C;
42 
46 
47  public:
48 
49  double getTowerEnergy_A(int t) {return m_towerE_A[t];}
50  void setTowerEnergy_A(int t, double energy) {m_towerE_A[t] = energy;}
51  double getTowerEnergy_C(int t) {return m_towerE_C[t];}
52  void setTowerEnergy_C(int t,double energy) {m_towerE_C[t] = energy;}
53 
54  double getTowerTime_A(int t) {return m_towerT_A[t];}
55  void setTowerTime_A(int t, double energy) {m_towerT_A[t] = energy;}
56  double getTowerTime_C(int t) {return m_towerT_C[t];}
57  void setTowerTime_C(int t,double energy) {m_towerT_C[t] = energy;}
58 
59  double getTotalEnergy_A();
60  double getTotalEnergy_C();
61 
62  static double getEMEnergy_A();
63  static double getHADEnergy_A();
64  static double getHADEnergy_C();
65 
69 
70 };
71 
72 CLASS_DEF(ZdcCalibEvent,9292611,0)
73 
74 #endif
75 
ZdcCalibEvent::getTotalEnergy_A
double getTotalEnergy_A()
Definition: ZdcCalibEvent.cxx:47
ZdcCalibEvent::m_towerT_A
std::vector< double > m_towerT_A
Definition: ZdcCalibEvent.h:39
ZdcCalibEvent::getHADEnergy_A
static double getHADEnergy_A()
Definition: ZdcCalibEvent.cxx:66
ZdcCalibEvent::m_towerT_C
std::vector< double > m_towerT_C
Definition: ZdcCalibEvent.h:41
ZdcCalibEvent::setTowerTime_C
void setTowerTime_C(int t, double energy)
Definition: ZdcCalibEvent.h:57
ZdcCalibEvent::~ZdcCalibEvent
virtual ~ZdcCalibEvent()
Definition: ZdcCalibEvent.h:27
ZdcCalibEvent::getHADCell_C
ZdcCellVec & getHADCell_C()
Definition: ZdcCalibEvent.h:68
ZdcCalibEvent::setTowerEnergy_A
void setTowerEnergy_A(int t, double energy)
Definition: ZdcCalibEvent.h:50
ZdcCalibEvent::m_HADCellVec_A
ZdcCellVec m_HADCellVec_A
Definition: ZdcCalibEvent.h:44
ZdcCalibEvent
Definition: ZdcCalibEvent.h:21
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
ZdcCalibEvent::m_towerE_C
std::vector< double > m_towerE_C
Definition: ZdcCalibEvent.h:40
ZdcCalibEvent::getTowerTime_A
double getTowerTime_A(int t)
Definition: ZdcCalibEvent.h:54
ParticleGun_FastCalo_ChargeFlip_Config.energy
energy
Definition: ParticleGun_FastCalo_ChargeFlip_Config.py:78
ZdcCalibEvent::m_HADCellVec_C
ZdcCellVec m_HADCellVec_C
Definition: ZdcCalibEvent.h:45
ZdcCalibEvent::setTowerTime_A
void setTowerTime_A(int t, double energy)
Definition: ZdcCalibEvent.h:55
ZdcCalibEvent::getTowerTime_C
double getTowerTime_C(int t)
Definition: ZdcCalibEvent.h:56
ZdcCalibEvent::getTotalEnergy_C
double getTotalEnergy_C()
Definition: ZdcCalibEvent.cxx:54
ZdcCalibEvent::m_towerE_A
std::vector< double > m_towerE_A
Definition: ZdcCalibEvent.h:38
ZdcCellVec
std::vector< ZdcCell > ZdcCellVec
Definition: ZdcCell.h:66
ZdcCalibEvent::getTowerEnergy_A
double getTowerEnergy_A(int t)
Definition: ZdcCalibEvent.h:49
ZdcCalibEvent::getEMCell_A
ZdcCellVec & getEMCell_A()
Definition: ZdcCalibEvent.h:66
ZdcCalibEvent::print
static void print()
Clear everything for next event.
Definition: ZdcCalibEvent.cxx:41
ZdcCalibEvent::getEMEnergy_A
static double getEMEnergy_A()
Definition: ZdcCalibEvent.cxx:61
DataVector.h
An STL vector of pointers that by default owns its pointed-to elements.
ZdcCalibEvent::getTowerEnergy_C
double getTowerEnergy_C(int t)
Definition: ZdcCalibEvent.h:51
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition: Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:64
ZdcCell.h
ZdcCalibEvent::m_EMCellVec_A
ZdcCellVec m_EMCellVec_A
Definition: ZdcCalibEvent.h:43
ZdcCalibEvent::setTowerEnergy_C
void setTowerEnergy_C(int t, double energy)
Definition: ZdcCalibEvent.h:52
ZdcCalibEvent::ZdcCalibEvent
ZdcCalibEvent()
Definition: ZdcCalibEvent.cxx:27
ZdcCalibEvent::getHADEnergy_C
static double getHADEnergy_C()
Definition: ZdcCalibEvent.cxx:71
CLASS_DEF.h
macros to associate a CLID to a type
ZdcCalibEvent::getHADCell_A
ZdcCellVec & getHADCell_A()
Definition: ZdcCalibEvent.h:67