ATLAS Offline Software
LArTBWarmTCHit.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 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:
21  LArTBWarmTCHit(int ad, double en){m_addr = ad; m_energy = en; };
23 // ~LArTBWarmTCHit(){;};
24 
25  const LArTBWarmTCHit& operator=(const LArTBWarmTCHit &right);
26  int operator==(const LArTBWarmTCHit &right);
27 // inline void *operator new(size_t, void* aHit = 0);
28 // inline void operator delete(void *aHit);
29 
30  void Draw(){;};
31  void Print(){;};
32 
33 //Set- Get- methods
34  // energy deposit
35  inline void SetEnergy(double ed) { m_energy = ed; }
36  inline void AddEnergy(double ed) { m_energy += ed; }
37  inline double GetEnergy() { return m_energy; }
38 
39  // address
40  inline void SetAddr(int d) { m_addr = d; }
41  inline int GetAddr() { return m_addr; }
42 
43  private:
44  int m_addr; // Address:
45  double m_energy;
46 };
47 
48 typedef std::vector<LArTBWarmTCHit> LArTBWarmTCHitsCollection;
49 
50 // extern G4Allocator<LArTBWarmTCHit> LArTBWarmTCHitAllocator;
51 
52 /*
53 inline void* LArTBWarmTCHit::operator new(size_t, void* aHit)
54 {
55 // void *aHit;
56  aHit = (void*) LArTBWarmTCHitAllocator.MallocSingle();
57  return aHit;
58 }
59 
60 inline void LArTBWarmTCHit::operator delete(void *aHit)
61 {
62  LArTBWarmTCHitAllocator.FreeSingle( (LArTBWarmTCHit*) aHit);
63 }
64 */
65 #endif
LArTBWarmTCHit::AddEnergy
void AddEnergy(double ed)
Definition: LArTBWarmTCHit.h:36
LArTBWarmTCHit::GetAddr
int GetAddr()
Definition: LArTBWarmTCHit.h:41
LArTBWarmTCHitsCollection
std::vector< LArTBWarmTCHit > LArTBWarmTCHitsCollection
Definition: LArTBWarmTCHit.h:48
hist_file_dump.d
d
Definition: hist_file_dump.py:137
LArTBWarmTCHit::operator=
const LArTBWarmTCHit & operator=(const LArTBWarmTCHit &right)
LArTBWarmTCHit::LArTBWarmTCHit
LArTBWarmTCHit(const LArTBWarmTCHit &right)
LArTBWarmTCHit::LArTBWarmTCHit
LArTBWarmTCHit(int ad, double en)
Definition: LArTBWarmTCHit.h:21
LArTBWarmTCHit::Print
void Print()
Definition: LArTBWarmTCHit.h:31
LArTBWarmTCHit
Definition: LArTBWarmTCHit.h:18
LArTBWarmTCHit::operator==
int operator==(const LArTBWarmTCHit &right)
LArTBWarmTCHit::Draw
void Draw()
Definition: LArTBWarmTCHit.h:30
PlotCalibFromCool.en
en
Definition: PlotCalibFromCool.py:399
LArTBWarmTCHit::m_addr
int m_addr
Definition: LArTBWarmTCHit.h:44
LArTBWarmTCHit::SetEnergy
void SetEnergy(double ed)
Definition: LArTBWarmTCHit.h:35
LArTBWarmTCHit::SetAddr
void SetAddr(int d)
Definition: LArTBWarmTCHit.h:40
LArTBWarmTCHit::GetEnergy
double GetEnergy()
Definition: LArTBWarmTCHit.h:37
LArTBWarmTCHit::m_energy
double m_energy
Definition: LArTBWarmTCHit.h:45
LArTBWarmTCHit::LArTBWarmTCHit
LArTBWarmTCHit()
Definition: LArTBWarmTCHit.h:20