ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
SimpleScintillatorHit Class Reference

#include <SimpleScintillatorHit.h>

Collaboration diagram for SimpleScintillatorHit:

Public Member Functions

 SimpleScintillatorHit (const int particleEncoding, const float kineticEnergy, const float energyDeposit, const CLHEP::Hep3Vector &position, const float globalTime, const int copyNo, const int track)
 
 SimpleScintillatorHit ()
 
virtual ~SimpleScintillatorHit ()
 
int GetParticleEncoding () const
 
float GetKineticEnergy () const
 
float GetEnergyDeposit () const
 
CLHEP::Hep3Vector GetPosition () const
 
float GetGlobalTime () const
 
int GetCopyNo () const
 
int truthBarcode () const
 
int truthID () const
 
const HepMcParticleLinkparticleLink () const
 

Private Attributes

int m_particleEncoding
 
float m_kineticEnergy
 
float m_energyDeposit
 
CLHEP::Hep3Vector m_position
 
float m_globalTime
 
int m_copyNo
 
HepMcParticleLink m_partLink
 

Detailed Description

Definition at line 18 of file SimpleScintillatorHit.h.

Constructor & Destructor Documentation

◆ SimpleScintillatorHit() [1/2]

SimpleScintillatorHit::SimpleScintillatorHit ( const int  particleEncoding,
const float  kineticEnergy,
const float  energyDeposit,
const CLHEP::Hep3Vector &  position,
const float  globalTime,
const int  copyNo,
const int  track 
)

Definition at line 26 of file SimpleScintillatorHit.cxx.

32  :
33  m_particleEncoding(particleEncoding),
34  m_kineticEnergy(kineticEnergy),
36  m_position(position),
37  m_globalTime(globalTime),
38  m_copyNo(copyNo),
40 {}

◆ SimpleScintillatorHit() [2/2]

SimpleScintillatorHit::SimpleScintillatorHit ( )

Definition at line 14 of file SimpleScintillatorHit.cxx.

14  :
16  m_kineticEnergy(0),
17  m_energyDeposit(0),
18  m_position(0),
19  m_globalTime(0),
20  m_copyNo(0),
21  m_partLink() {}

◆ ~SimpleScintillatorHit()

SimpleScintillatorHit::~SimpleScintillatorHit ( )
virtual

Definition at line 23 of file SimpleScintillatorHit.cxx.

23 {}

Member Function Documentation

◆ GetCopyNo()

int SimpleScintillatorHit::GetCopyNo ( ) const

◆ GetEnergyDeposit()

float SimpleScintillatorHit::GetEnergyDeposit ( ) const

◆ GetGlobalTime()

float SimpleScintillatorHit::GetGlobalTime ( ) const

◆ GetKineticEnergy()

float SimpleScintillatorHit::GetKineticEnergy ( ) const

◆ GetParticleEncoding()

int SimpleScintillatorHit::GetParticleEncoding ( ) const

◆ GetPosition()

CLHEP::Hep3Vector SimpleScintillatorHit::GetPosition ( ) const

◆ particleLink()

const HepMcParticleLink& SimpleScintillatorHit::particleLink ( ) const

◆ truthBarcode()

int SimpleScintillatorHit::truthBarcode ( ) const

Definition at line 42 of file SimpleScintillatorHit.cxx.

42  {
43  return HepMC::barcode(m_partLink); // FIXME barcode-based
44 }

◆ truthID()

int SimpleScintillatorHit::truthID ( ) const

Definition at line 46 of file SimpleScintillatorHit.cxx.

47 {
48  return m_partLink.id();
49 }

Member Data Documentation

◆ m_copyNo

int SimpleScintillatorHit::m_copyNo
private

Definition at line 57 of file SimpleScintillatorHit.h.

◆ m_energyDeposit

float SimpleScintillatorHit::m_energyDeposit
private

Definition at line 54 of file SimpleScintillatorHit.h.

◆ m_globalTime

float SimpleScintillatorHit::m_globalTime
private

Definition at line 56 of file SimpleScintillatorHit.h.

◆ m_kineticEnergy

float SimpleScintillatorHit::m_kineticEnergy
private

Definition at line 53 of file SimpleScintillatorHit.h.

◆ m_particleEncoding

int SimpleScintillatorHit::m_particleEncoding
private

Definition at line 52 of file SimpleScintillatorHit.h.

◆ m_partLink

HepMcParticleLink SimpleScintillatorHit::m_partLink
private

Definition at line 58 of file SimpleScintillatorHit.h.

◆ m_position

CLHEP::Hep3Vector SimpleScintillatorHit::m_position
private

Definition at line 55 of file SimpleScintillatorHit.h.


The documentation for this class was generated from the following files:
SimpleScintillatorHit::m_position
CLHEP::Hep3Vector m_position
Definition: SimpleScintillatorHit.h:55
SimpleScintillatorHit::m_globalTime
float m_globalTime
Definition: SimpleScintillatorHit.h:56
SimpleScintillatorHit::m_energyDeposit
float m_energyDeposit
Definition: SimpleScintillatorHit.h:54
Trk::energyDeposit
@ energyDeposit
Definition: MeasurementType.h:32
HepMC::barcode
int barcode(const T *p)
Definition: Barcode.h:16
SimpleScintillatorHit::m_kineticEnergy
float m_kineticEnergy
Definition: SimpleScintillatorHit.h:53
SimpleScintillatorHit::m_partLink
HepMcParticleLink m_partLink
Definition: SimpleScintillatorHit.h:58
SimpleScintillatorHit::m_particleEncoding
int m_particleEncoding
Definition: SimpleScintillatorHit.h:52
xAOD::track
@ track
Definition: TrackingPrimitives.h:512
SimpleScintillatorHit::m_copyNo
int m_copyNo
Definition: SimpleScintillatorHit.h:57