ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
LArG4::CalibrationHit Class Reference

#include <CalibrationHit.h>

Inheritance diagram for LArG4::CalibrationHit:
Collaboration diagram for LArG4::CalibrationHit:

Public Member Functions

 CalibrationHit ()
 
 CalibrationHit (const LArG4Identifier &ident, G4double energy0=0., G4double energy1=0., G4double energy2=0., G4double energy3=0.)
 
virtual ~CalibrationHit ()
 
void * operator new (size_t)
 
void operator delete (void *aHit)
 
virtual void Draw ()
 
virtual void Print ()
 
const LArG4Identifieridentifier () const
 
G4double energy (unsigned int i) const
 
G4double operator() (unsigned int i)
 
bool Less (CalibrationHit *const &h) const
 
bool Equals (CalibrationHit *const &h) const
 
void Add (CalibrationHit *const &h)
 

Private Attributes

LArG4Identifier m_identifier
 
G4double m_energy0
 
G4double m_energy1
 
G4double m_energy2
 
G4double m_energy3
 

Detailed Description

Definition at line 28 of file CalibrationHit.h.

Constructor & Destructor Documentation

◆ CalibrationHit() [1/2]

LArG4::CalibrationHit::CalibrationHit ( )
inline

Definition at line 35 of file CalibrationHit.h.

35  :
37  m_energy0(0.) ,
38  m_energy1(0.) ,
39  m_energy2(0.) ,
40  m_energy3(0.)
41  {}

◆ CalibrationHit() [2/2]

LArG4::CalibrationHit::CalibrationHit ( const LArG4Identifier ident,
G4double  energy0 = 0.,
G4double  energy1 = 0.,
G4double  energy2 = 0.,
G4double  energy3 = 0. 
)
inline

Definition at line 43 of file CalibrationHit.h.

47  :
49  m_energy0(energy0) ,
50  m_energy1(energy1) ,
51  m_energy2(energy2) ,
52  m_energy3(energy3)
53  {}

◆ ~CalibrationHit()

virtual LArG4::CalibrationHit::~CalibrationHit ( )
inlinevirtual

Definition at line 55 of file CalibrationHit.h.

55 {;}

Member Function Documentation

◆ Add()

void LArG4::CalibrationHit::Add ( CalibrationHit *const h)
inline

Definition at line 109 of file CalibrationHit.h.

110  {
111  m_energy0 += h->m_energy0;
112  m_energy1 += h->m_energy1;
113  m_energy2 += h->m_energy2;
114  m_energy3 += h->m_energy3;
115  }

◆ Draw()

virtual void LArG4::CalibrationHit::Draw ( )
virtual

◆ energy()

G4double LArG4::CalibrationHit::energy ( unsigned int  i) const
inline

Definition at line 87 of file CalibrationHit.h.

88  {
89  if ( i == 0 ) return m_energy0;
90  else if ( i == 1 ) return m_energy1;
91  else if ( i == 2 ) return m_energy2;
92  else if ( i == 3 ) return m_energy3;
93  else return 0.;
94  }

◆ Equals()

bool LArG4::CalibrationHit::Equals ( CalibrationHit *const h) const
inline

Definition at line 108 of file CalibrationHit.h.

108 { return m_identifier == h->m_identifier; };

◆ identifier()

const LArG4Identifier& LArG4::CalibrationHit::identifier ( ) const
inline

Definition at line 85 of file CalibrationHit.h.

85 { return m_identifier; }

◆ Less()

bool LArG4::CalibrationHit::Less ( CalibrationHit *const h) const
inline

Definition at line 107 of file CalibrationHit.h.

107 { return m_identifier < h->m_identifier; }

◆ operator delete()

void LArG4::CalibrationHit::operator delete ( void *  aHit)
inline

Definition at line 134 of file CalibrationHit.h.

135  {
136  CalibrationHitAllocator.FreeSingle((CalibrationHit*) aHit);
137  }

◆ operator new()

void * LArG4::CalibrationHit::operator new ( size_t  )
inline

Definition at line 127 of file CalibrationHit.h.

128  {
129  void *aHit;
130  aHit = (void *) CalibrationHitAllocator.MallocSingle();
131  return aHit;
132  }

◆ operator()()

G4double LArG4::CalibrationHit::operator() ( unsigned int  i)
inline

Definition at line 98 of file CalibrationHit.h.

98 { return energy(i); }

◆ Print()

virtual void LArG4::CalibrationHit::Print ( )
virtual

Member Data Documentation

◆ m_energy0

G4double LArG4::CalibrationHit::m_energy0
private

Definition at line 75 of file CalibrationHit.h.

◆ m_energy1

G4double LArG4::CalibrationHit::m_energy1
private

Definition at line 76 of file CalibrationHit.h.

◆ m_energy2

G4double LArG4::CalibrationHit::m_energy2
private

Definition at line 77 of file CalibrationHit.h.

◆ m_energy3

G4double LArG4::CalibrationHit::m_energy3
private

Definition at line 78 of file CalibrationHit.h.

◆ m_identifier

LArG4Identifier LArG4::CalibrationHit::m_identifier
private

Definition at line 68 of file CalibrationHit.h.


The documentation for this class was generated from the following file:
LArG4::CalibrationHit::m_energy0
G4double m_energy0
Definition: CalibrationHit.h:75
LArG4Identifier
Definition: LArG4Identifier.h:121
LArG4::CalibrationHit::energy
G4double energy(unsigned int i) const
Definition: CalibrationHit.h:87
LArG4::CalibrationHit::m_energy1
G4double m_energy1
Definition: CalibrationHit.h:76
lumiFormat.i
int i
Definition: lumiFormat.py:85
LArG4::CalibrationHit::m_energy2
G4double m_energy2
Definition: CalibrationHit.h:77
LArG4::CalibrationHitAllocator
thread_local G4Allocator< CalibrationHit > CalibrationHitAllocator
TRT::Hit::ident
@ ident
Definition: HitInfo.h:77
h
LArG4::CalibrationHit::m_energy3
G4double m_energy3
Definition: CalibrationHit.h:78
LArG4::CalibrationHit::CalibrationHit
CalibrationHit()
Definition: CalibrationHit.h:35
LArG4::CalibrationHit::m_identifier
LArG4Identifier m_identifier
Definition: CalibrationHit.h:68