ATLAS Offline Software
LArTBWarmTCHit.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 //=================================================
6 // LArTBWarmTCHit class
7 //
8 // information stored
9 //=================================================
10 
11 #ifndef LArTBWarmTCHit_h
12 #define LArTBWarmTCHit_h 1
13 
14 #include "CLHEP/Vector/ThreeVector.h"
15 #include <vector>
16 
18 {
19  public:
20  LArTBWarmTCHit() = default;
21  LArTBWarmTCHit(int ad, double en) : m_addr(ad), m_energy(en) {};
22 
23 //Set- Get- methods
24  // energy deposit
25  inline void SetEnergy(double ed) { m_energy = ed; }
26  inline void AddEnergy(double ed) { m_energy += ed; }
27  inline double GetEnergy() { return m_energy; }
28 
29  // address
30  inline void SetAddr(int d) { m_addr = d; }
31  inline int GetAddr() { return m_addr; }
32 
33  private:
34  int m_addr{}; // Address:
35  double m_energy{};
36 };
37 
38 typedef std::vector<LArTBWarmTCHit> LArTBWarmTCHitsCollection;
39 
40 #endif
LArTBWarmTCHit::AddEnergy
void AddEnergy(double ed)
Definition: LArTBWarmTCHit.h:26
LArTBWarmTCHit::GetAddr
int GetAddr()
Definition: LArTBWarmTCHit.h:31
LArTBWarmTCHit::LArTBWarmTCHit
LArTBWarmTCHit()=default
LArTBWarmTCHitsCollection
std::vector< LArTBWarmTCHit > LArTBWarmTCHitsCollection
Definition: LArTBWarmTCHit.h:38
hist_file_dump.d
d
Definition: hist_file_dump.py:137
LArTBWarmTCHit::LArTBWarmTCHit
LArTBWarmTCHit(int ad, double en)
Definition: LArTBWarmTCHit.h:21
LArTBWarmTCHit
Definition: LArTBWarmTCHit.h:18
PlotCalibFromCool.en
en
Definition: PlotCalibFromCool.py:399
LArTBWarmTCHit::m_addr
int m_addr
Definition: LArTBWarmTCHit.h:34
LArTBWarmTCHit::SetEnergy
void SetEnergy(double ed)
Definition: LArTBWarmTCHit.h:25
LArTBWarmTCHit::SetAddr
void SetAddr(int d)
Definition: LArTBWarmTCHit.h:30
LArTBWarmTCHit::GetEnergy
double GetEnergy()
Definition: LArTBWarmTCHit.h:27
LArTBWarmTCHit::m_energy
double m_energy
Definition: LArTBWarmTCHit.h:35