ATLAS Offline Software
Loading...
Searching...
No Matches
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.

◆ SimpleScintillatorHit() [2/2]

SimpleScintillatorHit::SimpleScintillatorHit ( )

Definition at line 14 of file SimpleScintillatorHit.cxx.

14 :
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}
int barcode(const T *p)
Definition Barcode.h:16

◆ 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: