k4SimGeant4
Loading...
Searching...
No Matches
sim::ParticleInformation Class Reference

#include <SimG4Common/include/SimG4Common/ParticleInformation.h>

Inheritance diagram for sim::ParticleInformation:
Collaboration diagram for sim::ParticleInformation:

Public Member Functions

 ParticleInformation (const edm4hep::MCParticle &aMCpart)
 A constructor.
 
virtual ~ParticleInformation ()
 A destructor.
 
virtual void Print () const final
 A printing method.
 
edm4hep::MCParticle & mcParticle ()
 Getter of the MCParticle.
 
void setEndMomentum (const CLHEP::Hep3Vector &aMom)
 Setter of the end-of-tracking momentum (used for fast simulation).
 
const CLHEP::Hep3Vector & endMomentum () const
 Getter of the vertex posiiton taken at the end-of-tracking (used for fast simulation).
 
void setVertexPosition (const CLHEP::Hep3Vector &aPos)
 Setter of the vertex positon (used for fast simulation).
 
const CLHEP::Hep3Vector & vertexPosition () const
 Getter of the vertex positon (used for fast simulation).
 
void setEndStatus (int aStat)
 Setter of the end-of-tracking particle status (used for fast simulation).
 
int endStatus () const
 Getter of the end-of-tracking particle status (used for fast simulation).
 
void setSmeared (bool aFlag)
 Setter of the flag indicating if particle was smeared in the tracker (used for fast simulation).
 
bool smeared () const
 Getter of the flag indicating if particle was smeared in the tracker (used for fast simulation).
 

Private Attributes

edm4hep::MCParticle m_mcParticle
 EDM MC particle.
 
CLHEP::Hep3Vector m_endMomentum
 Particle momentum at the end of tracking (filled for fast-sim)
 
CLHEP::Hep3Vector m_vertexPosition
 Particle vertex position saved at the end of tracking (filled for fast-sim)
 
int m_endStatus
 Particle status at the end of tracking (filled for fast-sim)
 
bool m_smeared
 Flag indicating if particle was smeared in the tracker (filled for fast-sim)
 

Constructor & Destructor Documentation

◆ ParticleInformation()

sim::ParticleInformation::ParticleInformation ( const edm4hep::MCParticle & aMCpart)
explicit

A constructor.

Parameters
[in]aMCpartEDM MCParticle.

◆ ~ParticleInformation()

sim::ParticleInformation::~ParticleInformation ( )
virtual

A destructor.

Member Function Documentation

◆ endMomentum()

const CLHEP::Hep3Vector & sim::ParticleInformation::endMomentum ( ) const

Getter of the vertex posiiton taken at the end-of-tracking (used for fast simulation).

Returns
Vertex position.

◆ endStatus()

int sim::ParticleInformation::endStatus ( ) const

Getter of the end-of-tracking particle status (used for fast simulation).

Returns
Particle status.

◆ mcParticle()

edm4hep::MCParticle & sim::ParticleInformation::mcParticle ( )

Getter of the MCParticle.

Returns
EDM MCParticle.

◆ Print()

void sim::ParticleInformation::Print ( ) const
finalvirtual

A printing method.

◆ setEndMomentum()

void sim::ParticleInformation::setEndMomentum ( const CLHEP::Hep3Vector & aMom)

Setter of the end-of-tracking momentum (used for fast simulation).

Parameters
[in]aMomParticle momentum.

◆ setEndStatus()

void sim::ParticleInformation::setEndStatus ( int aStat)

Setter of the end-of-tracking particle status (used for fast simulation).

Parameters
[in]aStatParticle status.

◆ setSmeared()

void sim::ParticleInformation::setSmeared ( bool aFlag)

Setter of the flag indicating if particle was smeared in the tracker (used for fast simulation).

Parameters
[in]aFlagIf particle was smeared in the tracker.

◆ setVertexPosition()

void sim::ParticleInformation::setVertexPosition ( const CLHEP::Hep3Vector & aPos)

Setter of the vertex positon (used for fast simulation).

Parameters
[in]aPosVertex position.

◆ smeared()

bool sim::ParticleInformation::smeared ( ) const

Getter of the flag indicating if particle was smeared in the tracker (used for fast simulation).

Returns
Flag indicating if particle was smeared in the tracker.

◆ vertexPosition()

const CLHEP::Hep3Vector & sim::ParticleInformation::vertexPosition ( ) const

Getter of the vertex positon (used for fast simulation).

Returns
Vertex position.

Member Data Documentation

◆ m_endMomentum

CLHEP::Hep3Vector sim::ParticleInformation::m_endMomentum
private

Particle momentum at the end of tracking (filled for fast-sim)

◆ m_endStatus

int sim::ParticleInformation::m_endStatus
private

Particle status at the end of tracking (filled for fast-sim)

◆ m_mcParticle

edm4hep::MCParticle sim::ParticleInformation::m_mcParticle
private

EDM MC particle.

◆ m_smeared

bool sim::ParticleInformation::m_smeared
private

Flag indicating if particle was smeared in the tracker (filled for fast-sim)

◆ m_vertexPosition

CLHEP::Hep3Vector sim::ParticleInformation::m_vertexPosition
private

Particle vertex position saved at the end of tracking (filled for fast-sim)


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