ATLAS Offline Software
Loading...
Searching...
No Matches
ScintillatorHit Class Reference

#include <ScintillatorHit.h>

Collaboration diagram for ScintillatorHit:

Public Member Functions

 ScintillatorHit (const int volNumber, const int particleEncoding, const float kineticEnergy, const float energyDeposit, const float preStepX, const float preStepY, const float preStepZ, const float postStepX, const float postStepY, const float postStepZ, const float globalPreStepX, const float globalPreStepY, const float globalPreStepZ, const float globalPostStepX, const float globalPostStepY, const float globalPostStepZ, const float globalTime, const int track)
 ScintillatorHit ()
virtual ~ScintillatorHit ()
int GetVolNumber () const
int truthBarcode () const
int truthID () const
int GetParticleEncoding () const
float GetKineticEnergy () const
float GetEnergyDeposit () const
float GetPreStepX () const
float GetPreStepY () const
float GetPreStepZ () const
float GetPostStepX () const
float GetPostStepY () const
float GetPostStepZ () const
float GetGlobalPreStepX () const
float GetGlobalPreStepY () const
float GetGlobalPreStepZ () const
float GetGlobalPostStepX () const
float GetGlobalPostStepY () const
float GetGlobalPostStepZ () const
float GetGlobalTime () const
const HepMcParticleLinkparticleLink () const

Private Attributes

int m_volNumber
int m_particleEncoding
float m_kineticEnergy
float m_energyDeposit
float m_preStepX
float m_preStepY
float m_preStepZ
float m_postStepX
float m_postStepY
float m_postStepZ
float m_globalPreStepX
float m_globalPreStepY
float m_globalPreStepZ
float m_globalPostStepX
float m_globalPostStepY
float m_globalPostStepZ
float m_globalTime
HepMcParticleLink m_partLink

Detailed Description

Definition at line 17 of file ScintillatorHit.h.

Constructor & Destructor Documentation

◆ ScintillatorHit() [1/2]

ScintillatorHit::ScintillatorHit ( const int volNumber,
const int particleEncoding,
const float kineticEnergy,
const float energyDeposit,
const float preStepX,
const float preStepY,
const float preStepZ,
const float postStepX,
const float postStepY,
const float postStepZ,
const float globalPreStepX,
const float globalPreStepY,
const float globalPreStepZ,
const float globalPostStepX,
const float globalPostStepY,
const float globalPostStepZ,
const float globalTime,
const int track )

Definition at line 37 of file ScintillatorHit.cxx.

54 :
55 m_volNumber(volNumber),
56 m_particleEncoding(particleEncoding),
57 m_kineticEnergy(kineticEnergy),
58 m_energyDeposit(energyDeposit),
59 m_preStepX(preStepX),
60 m_preStepY(preStepY),
61 m_preStepZ(preStepZ),
62 m_postStepX(postStepX),
63 m_postStepY(postStepY),
64 m_postStepZ(postStepZ),
65 m_globalPreStepX(globalPreStepX),
66 m_globalPreStepY(globalPreStepY),
67 m_globalPreStepZ(globalPreStepZ),
68 m_globalPostStepX(globalPostStepX),
69 m_globalPostStepY(globalPostStepY),
70 m_globalPostStepZ(globalPostStepZ),
71 m_globalTime(globalTime),
72 m_partLink(track, 0, HepMcParticleLink::IS_POSITION, HepMcParticleLink::IS_BARCODE) // FIXME barcode-based syntax
73{}
HepMcParticleLink m_partLink

◆ ScintillatorHit() [2/2]

ScintillatorHit::ScintillatorHit ( )

Definition at line 14 of file ScintillatorHit.cxx.

◆ ~ScintillatorHit()

ScintillatorHit::~ScintillatorHit ( )
virtual

Definition at line 34 of file ScintillatorHit.cxx.

34{}

Member Function Documentation

◆ GetEnergyDeposit()

float ScintillatorHit::GetEnergyDeposit ( ) const

◆ GetGlobalPostStepX()

float ScintillatorHit::GetGlobalPostStepX ( ) const

◆ GetGlobalPostStepY()

float ScintillatorHit::GetGlobalPostStepY ( ) const

◆ GetGlobalPostStepZ()

float ScintillatorHit::GetGlobalPostStepZ ( ) const

◆ GetGlobalPreStepX()

float ScintillatorHit::GetGlobalPreStepX ( ) const

◆ GetGlobalPreStepY()

float ScintillatorHit::GetGlobalPreStepY ( ) const

◆ GetGlobalPreStepZ()

float ScintillatorHit::GetGlobalPreStepZ ( ) const

◆ GetGlobalTime()

float ScintillatorHit::GetGlobalTime ( ) const

◆ GetKineticEnergy()

float ScintillatorHit::GetKineticEnergy ( ) const

◆ GetParticleEncoding()

int ScintillatorHit::GetParticleEncoding ( ) const

◆ GetPostStepX()

float ScintillatorHit::GetPostStepX ( ) const

◆ GetPostStepY()

float ScintillatorHit::GetPostStepY ( ) const

◆ GetPostStepZ()

float ScintillatorHit::GetPostStepZ ( ) const

◆ GetPreStepX()

float ScintillatorHit::GetPreStepX ( ) const

◆ GetPreStepY()

float ScintillatorHit::GetPreStepY ( ) const

◆ GetPreStepZ()

float ScintillatorHit::GetPreStepZ ( ) const

◆ GetVolNumber()

int ScintillatorHit::GetVolNumber ( ) const

◆ particleLink()

const HepMcParticleLink & ScintillatorHit::particleLink ( ) const

◆ truthBarcode()

int ScintillatorHit::truthBarcode ( ) const

Definition at line 75 of file ScintillatorHit.cxx.

75 {
76 return HepMC::barcode(m_partLink); // FIXME barcode-based
77}
int barcode(const T *p)
Definition Barcode.h:16

◆ truthID()

int ScintillatorHit::truthID ( ) const

Definition at line 79 of file ScintillatorHit.cxx.

80{
81 return m_partLink.id();
82}

Member Data Documentation

◆ m_energyDeposit

float ScintillatorHit::m_energyDeposit
private

Definition at line 77 of file ScintillatorHit.h.

◆ m_globalPostStepX

float ScintillatorHit::m_globalPostStepX
private

Definition at line 87 of file ScintillatorHit.h.

◆ m_globalPostStepY

float ScintillatorHit::m_globalPostStepY
private

Definition at line 88 of file ScintillatorHit.h.

◆ m_globalPostStepZ

float ScintillatorHit::m_globalPostStepZ
private

Definition at line 89 of file ScintillatorHit.h.

◆ m_globalPreStepX

float ScintillatorHit::m_globalPreStepX
private

Definition at line 84 of file ScintillatorHit.h.

◆ m_globalPreStepY

float ScintillatorHit::m_globalPreStepY
private

Definition at line 85 of file ScintillatorHit.h.

◆ m_globalPreStepZ

float ScintillatorHit::m_globalPreStepZ
private

Definition at line 86 of file ScintillatorHit.h.

◆ m_globalTime

float ScintillatorHit::m_globalTime
private

Definition at line 90 of file ScintillatorHit.h.

◆ m_kineticEnergy

float ScintillatorHit::m_kineticEnergy
private

Definition at line 76 of file ScintillatorHit.h.

◆ m_particleEncoding

int ScintillatorHit::m_particleEncoding
private

Definition at line 75 of file ScintillatorHit.h.

◆ m_partLink

HepMcParticleLink ScintillatorHit::m_partLink
private

Definition at line 91 of file ScintillatorHit.h.

◆ m_postStepX

float ScintillatorHit::m_postStepX
private

Definition at line 81 of file ScintillatorHit.h.

◆ m_postStepY

float ScintillatorHit::m_postStepY
private

Definition at line 82 of file ScintillatorHit.h.

◆ m_postStepZ

float ScintillatorHit::m_postStepZ
private

Definition at line 83 of file ScintillatorHit.h.

◆ m_preStepX

float ScintillatorHit::m_preStepX
private

Definition at line 78 of file ScintillatorHit.h.

◆ m_preStepY

float ScintillatorHit::m_preStepY
private

Definition at line 79 of file ScintillatorHit.h.

◆ m_preStepZ

float ScintillatorHit::m_preStepZ
private

Definition at line 80 of file ScintillatorHit.h.

◆ m_volNumber

int ScintillatorHit::m_volNumber
private

Definition at line 74 of file ScintillatorHit.h.


The documentation for this class was generated from the following files: