ATLAS Offline Software
Loading...
Searching...
No Matches
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
47typedef std::vector<LArG4H6WarmTCHit> LArG4H6WarmTCHitsCollection;
48
49// extern G4Allocator<LArG4H6WarmTCHit> LArG4H6WarmTCHitAllocator;
50
51/*
52inline void* LArG4H6WarmTCHit::operator new(size_t, void* aHit)
53{
54// void *aHit;
55 aHit = (void*) LArG4H6WarmTCHitAllocator.MallocSingle();
56 return aHit;
57}
58
59inline void LArG4H6WarmTCHit::operator delete(void *aHit)
60{
61 LArG4H6WarmTCHitAllocator.FreeSingle( (LArG4H6WarmTCHit*) aHit);
62}
63*/
64#endif
std::vector< LArG4H6WarmTCHit > LArG4H6WarmTCHitsCollection
int operator==(const LArG4H6WarmTCHit &right)
void SetEnergy(double ed)
void AddEnergy(double ed)
LArG4H6WarmTCHit(int ad, double en)