ATLAS Offline Software
LArG4H6WarmTCHit.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 // LArG4H6WarmTCHit class
7 //
8 // information stored
9 //=================================================
10 
11 #ifndef LArG4H6WarmTCHit_h
12 #define LArG4H6WarmTCHit_h 1
13 
14 #include "CLHEP/Vector/ThreeVector.h"
15 #include <vector>
17 {
18  public:
20  : m_addr(0), m_energy(0)
21  {;};
22  LArG4H6WarmTCHit(int ad, double en){m_addr = ad; m_energy = en; };
23 // ~LArG4H6WarmTCHit(){;};
24 
25  int operator==(const LArG4H6WarmTCHit &right);
26 // inline void *operator new(size_t, void* aHit = 0);
27 // inline void operator delete(void *aHit);
28 
29  void Draw(){;};
30  void Print(){;};
31 
32 //Set- Get- methods
33  // energy deposit
34  inline void SetEnergy(double ed) { m_energy = ed; }
35  inline void AddEnergy(double ed) { m_energy += ed; }
36  inline double GetEnergy() { return m_energy; }
37 
38  // address
39  inline void SetAddr(int d) { m_addr = d; }
40  inline int GetAddr() { return m_addr; }
41 
42  private:
43  int m_addr; // Address:
44  double m_energy;
45 };
46 
47 typedef std::vector<LArG4H6WarmTCHit> LArG4H6WarmTCHitsCollection;
48 
49 // extern G4Allocator<LArG4H6WarmTCHit> LArG4H6WarmTCHitAllocator;
50 
51 /*
52 inline void* LArG4H6WarmTCHit::operator new(size_t, void* aHit)
53 {
54 // void *aHit;
55  aHit = (void*) LArG4H6WarmTCHitAllocator.MallocSingle();
56  return aHit;
57 }
58 
59 inline void LArG4H6WarmTCHit::operator delete(void *aHit)
60 {
61  LArG4H6WarmTCHitAllocator.FreeSingle( (LArG4H6WarmTCHit*) aHit);
62 }
63 */
64 #endif
LArG4H6WarmTCHit::Draw
void Draw()
Definition: LArG4H6WarmTCHit.h:29
LArG4H6WarmTCHit::Print
void Print()
Definition: LArG4H6WarmTCHit.h:30
LArG4H6WarmTCHit::SetEnergy
void SetEnergy(double ed)
Definition: LArG4H6WarmTCHit.h:34
hist_file_dump.d
d
Definition: hist_file_dump.py:137
LArG4H6WarmTCHitsCollection
std::vector< LArG4H6WarmTCHit > LArG4H6WarmTCHitsCollection
Definition: LArG4H6WarmTCHit.h:47
LArG4H6WarmTCHit::LArG4H6WarmTCHit
LArG4H6WarmTCHit()
Definition: LArG4H6WarmTCHit.h:19
LArG4H6WarmTCHit::m_addr
int m_addr
Definition: LArG4H6WarmTCHit.h:43
LArG4H6WarmTCHit
Definition: LArG4H6WarmTCHit.h:17
LArG4H6WarmTCHit::LArG4H6WarmTCHit
LArG4H6WarmTCHit(int ad, double en)
Definition: LArG4H6WarmTCHit.h:22
LArG4H6WarmTCHit::SetAddr
void SetAddr(int d)
Definition: LArG4H6WarmTCHit.h:39
LArG4H6WarmTCHit::AddEnergy
void AddEnergy(double ed)
Definition: LArG4H6WarmTCHit.h:35
PlotCalibFromCool.en
en
Definition: PlotCalibFromCool.py:399
LArG4H6WarmTCHit::m_energy
double m_energy
Definition: LArG4H6WarmTCHit.h:44
LArG4H6WarmTCHit::GetEnergy
double GetEnergy()
Definition: LArG4H6WarmTCHit.h:36
LArG4H6WarmTCHit::GetAddr
int GetAddr()
Definition: LArG4H6WarmTCHit.h:40
LArG4H6WarmTCHit::operator==
int operator==(const LArG4H6WarmTCHit &right)
Definition: LArG4H6WarmTCHit.cxx:9