BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
Event::McParticle Class Reference

#include <McParticle.h>

Inheritance diagram for Event::McParticle:

Public Types

enum  StatusBits {
  DECAYED = 1 , DECAYFLT = 1 << 1 , PRIMARY = 1 << 2 , LEAF = 1 << 3 ,
  ERROR = 1 << 4 , DECAYED = 1 , DECAYFLT = 1 << 1 , PRIMARY = 1 << 2 ,
  LEAF = 1 << 3 , ERROR = 1 << 4 , DECAYED = 1 , DECAYFLT = 1 << 1 ,
  PRIMARY = 1 << 2 , LEAF = 1 << 3 , ERROR = 1 << 4
}
 status bits modeled More...
enum  StatusBits {
  DECAYED = 1 , DECAYFLT = 1 << 1 , PRIMARY = 1 << 2 , LEAF = 1 << 3 ,
  ERROR = 1 << 4 , DECAYED = 1 , DECAYFLT = 1 << 1 , PRIMARY = 1 << 2 ,
  LEAF = 1 << 3 , ERROR = 1 << 4 , DECAYED = 1 , DECAYFLT = 1 << 1 ,
  PRIMARY = 1 << 2 , LEAF = 1 << 3 , ERROR = 1 << 4
}
 status bits modeled More...
enum  StatusBits {
  DECAYED = 1 , DECAYFLT = 1 << 1 , PRIMARY = 1 << 2 , LEAF = 1 << 3 ,
  ERROR = 1 << 4 , DECAYED = 1 , DECAYFLT = 1 << 1 , PRIMARY = 1 << 2 ,
  LEAF = 1 << 3 , ERROR = 1 << 4 , DECAYED = 1 , DECAYFLT = 1 << 1 ,
  PRIMARY = 1 << 2 , LEAF = 1 << 3 , ERROR = 1 << 4
}
 status bits modeled More...
typedef int StdHepId
typedef int StdHepId
typedef int StdHepId

Public Member Functions

virtual const CLID & clID () const
 McParticle ()
 Constructors.
virtual ~McParticle ()
 Destructor.
void init (McParticle *mother, StdHepId id, unsigned int statusBits, const HepLorentzVector &initialMomentum, const HepLorentzVector &finalMomentum, const HepLorentzVector &initialPosition, const HepLorentzVector &finalPosition, const std::string process="")
void initialize (StdHepId id, unsigned int statusBits, const HepLorentzVector &initialMomentum, const HepLorentzVector &initialPosition, const std::string process="")
 Set the initial attributes of the McParticle.
void initialize (McParticle *mother, StdHepId id, unsigned int statusBits, const HepLorentzVector &initialMomentum, const HepLorentzVector &initialPosition, const std::string process="")
void finalize (const HepLorentzVector &finalPosition)
 Set the final attributes of the McParticle.
StdHepId particleProperty () const
 Retrieve particle property.
unsigned int statusFlags () const
 retrieve all of status flags for const object
void addStatusFlag (unsigned int flag)
 add a new flag to the status flags
bool primaryParticle () const
 Retrieve whether this is a primary particle.
bool leafParticle () const
 Retrieve whether this is a leaf particle.
bool decayFromGenerator () const
 Decayed from generator.
bool decayInFlight () const
 Decayed in flight.
void setVertexIndex0 (int index0)
 methods for setting and getting vertex indexes
int vertexIndex0 () const
void setVertexIndex1 (int index1)
int vertexIndex1 () const
void setTrackIndex (int trackIndex)
int trackIndex () const
const HepLorentzVector & initialPosition () const
 Retrieve pointer to the start, end vertex positions.
const HepLorentzVector & finalPosition () const
const HepLorentzVector & initialFourMomentum () const
const McParticlemother () const
 access to the mother particle
void setMother (const SmartRef< McParticle > m)
 set the mother particle
void addDaughter (const SmartRef< McParticle > d)
 add a daugther particle to this particle
void removeDaughter (const SmartRef< McParticle > mcPart)
 Used for pruning.
const SmartRefVector< McParticle > & daughterList () const
 access the process name
virtual const CLID & clID () const
 McParticle ()
 Constructors.
virtual ~McParticle ()
 Destructor.
void init (McParticle *mother, StdHepId id, unsigned int statusBits, const HepLorentzVector &initialMomentum, const HepLorentzVector &finalMomentum, const HepLorentzVector &initialPosition, const HepLorentzVector &finalPosition, const std::string process="")
void initialize (StdHepId id, unsigned int statusBits, const HepLorentzVector &initialMomentum, const HepLorentzVector &initialPosition, const std::string process="")
 Set the initial attributes of the McParticle.
void initialize (McParticle *mother, StdHepId id, unsigned int statusBits, const HepLorentzVector &initialMomentum, const HepLorentzVector &initialPosition, const std::string process="")
void finalize (const HepLorentzVector &finalPosition)
 Set the final attributes of the McParticle.
StdHepId particleProperty () const
 Retrieve particle property.
unsigned int statusFlags () const
 retrieve all of status flags for const object
void addStatusFlag (unsigned int flag)
 add a new flag to the status flags
bool primaryParticle () const
bool leafParticle () const
 Retrieve whether this is a leaf particle.
bool decayFromGenerator () const
 Decayed from generator.
bool decayInFlight () const
 Decayed in flight.
void setVertexIndex0 (int index0)
 methods for setting and getting vertex indexes
int vertexIndex0 () const
void setVertexIndex1 (int index1)
int vertexIndex1 () const
void setTrackIndex (int trackIndex)
int trackIndex () const
const HepLorentzVector & initialPosition () const
 Retrieve pointer to the start, end vertex positions.
const HepLorentzVector & finalPosition () const
const HepLorentzVector & initialFourMomentum () const
const McParticlemother () const
 access to the mother particle
void setMother (const SmartRef< McParticle > m)
 set the mother particle
void addDaughter (const SmartRef< McParticle > d)
 add a daugther particle to this particle
void removeDaughter (const SmartRef< McParticle > mcPart)
 Used for pruning.
const SmartRefVector< McParticle > & daughterList () const
 access the process name
virtual const CLID & clID () const
 McParticle ()
 Constructors.
virtual ~McParticle ()
 Destructor.
void init (McParticle *mother, StdHepId id, unsigned int statusBits, const HepLorentzVector &initialMomentum, const HepLorentzVector &finalMomentum, const HepLorentzVector &initialPosition, const HepLorentzVector &finalPosition, const std::string process="")
void initialize (StdHepId id, unsigned int statusBits, const HepLorentzVector &initialMomentum, const HepLorentzVector &initialPosition, const std::string process="")
 Set the initial attributes of the McParticle.
void initialize (McParticle *mother, StdHepId id, unsigned int statusBits, const HepLorentzVector &initialMomentum, const HepLorentzVector &initialPosition, const std::string process="")
void finalize (const HepLorentzVector &finalPosition)
 Set the final attributes of the McParticle.
StdHepId particleProperty () const
 Retrieve particle property.
unsigned int statusFlags () const
 retrieve all of status flags for const object
void addStatusFlag (unsigned int flag)
 add a new flag to the status flags
bool primaryParticle () const
bool leafParticle () const
 Retrieve whether this is a leaf particle.
bool decayFromGenerator () const
 Decayed from generator.
bool decayInFlight () const
 Decayed in flight.
void setVertexIndex0 (int index0)
 methods for setting and getting vertex indexes
int vertexIndex0 () const
void setVertexIndex1 (int index1)
int vertexIndex1 () const
void setTrackIndex (int trackIndex)
int trackIndex () const
const HepLorentzVector & initialPosition () const
 Retrieve pointer to the start, end vertex positions.
const HepLorentzVector & finalPosition () const
const HepLorentzVector & initialFourMomentum () const
const McParticlemother () const
 access to the mother particle
void setMother (const SmartRef< McParticle > m)
 set the mother particle
void addDaughter (const SmartRef< McParticle > d)
 add a daugther particle to this particle
void removeDaughter (const SmartRef< McParticle > mcPart)
 Used for pruning.
const SmartRefVector< McParticle > & daughterList () const
 access the process name

Static Public Member Functions

static const CLID & classID ()
static const CLID & classID ()
static const CLID & classID ()

Detailed Description

Definition at line 27 of file Event/McTruth/include/McTruth/McParticle.h.

Member Typedef Documentation

◆ StdHepId [1/3]

◆ StdHepId [2/3]

◆ StdHepId [3/3]

Member Enumeration Documentation

◆ StatusBits [1/3]

status bits modeled

Enumerator
DECAYED 
DECAYFLT 

Decayed by generator.

PRIMARY 

Decayed in flight.

LEAF 

primary particle

ERROR 

this particle is a leaf in the particle tree

DECAYED 
DECAYFLT 

Decayed by generator.

PRIMARY 

Decayed in flight.

LEAF 

primary particle

ERROR 

this particle is a leaf in the particle tree

DECAYED 
DECAYFLT 

Decayed by generator.

PRIMARY 

Decayed in flight.

LEAF 

primary particle

ERROR 

this particle is a leaf in the particle tree

Definition at line 33 of file Event/McTruth/include/McTruth/McParticle.h.

33 {
34 DECAYED = 1, //! Decayed by generator
35 DECAYFLT = 1 << 1, //! Decayed in flight
36 PRIMARY = 1 << 2, //! primary particle
37 LEAF = 1 << 3, //! this particle is a leaf in the particle tree
38 ERROR = 1 << 4 //! error
39 // MISSED= 1<<2, //! Does not hit detector
40 // NOINTER =1<<3, //! Traverses detector w/o interacting
41 // STOPPED =1<<4, //! Energy below cut; other bits may say why
42 // INTERACT=1<<5, //! Interacted, no further decision to be made
43 // INTSHDEP=1<<6, //! Interacted, further decision depends on ! selection of shower
44 // deposition PRIMARY =1<<7, //! primary particle SWERROR =1<<8, //! Error occurred in
45 // swimming the track BCKSPL=1<<9, //! The particle is backsplashed from the CAL back
46 // in the TKR region POSHIT =1<<10, //! The particle released a hit a PositionHit
47 // detector NOTTRACK=1<<11, //! Not tracked by user request Swum = 1<<12, //! this
48 // particle was produced by the swimmer LEAF = 1<<13 //! this particle is a leaf in
49 // the particle tree
50 };
@ ERROR
this particle is a leaf in the particle tree

◆ StatusBits [2/3]

status bits modeled

Enumerator
DECAYED 
DECAYFLT 

Decayed by generator.

PRIMARY 

Decayed in flight.

LEAF 

primary particle

ERROR 

this particle is a leaf in the particle tree

DECAYED 
DECAYFLT 

Decayed by generator.

PRIMARY 

Decayed in flight.

LEAF 

primary particle

ERROR 

this particle is a leaf in the particle tree

DECAYED 
DECAYFLT 

Decayed by generator.

PRIMARY 

Decayed in flight.

LEAF 

primary particle

ERROR 

this particle is a leaf in the particle tree

Definition at line 33 of file InstallArea/x86_64-el9-gcc13-dbg/include/McTruth/McParticle.h.

33 {
34 DECAYED = 1, //! Decayed by generator
35 DECAYFLT = 1 << 1, //! Decayed in flight
36 PRIMARY = 1 << 2, //! primary particle
37 LEAF = 1 << 3, //! this particle is a leaf in the particle tree
38 ERROR = 1 << 4 //! error
39 // MISSED= 1<<2, //! Does not hit detector
40 // NOINTER =1<<3, //! Traverses detector w/o interacting
41 // STOPPED =1<<4, //! Energy below cut; other bits may say why
42 // INTERACT=1<<5, //! Interacted, no further decision to be made
43 // INTSHDEP=1<<6, //! Interacted, further decision depends on ! selection of shower
44 // deposition PRIMARY =1<<7, //! primary particle SWERROR =1<<8, //! Error occurred in
45 // swimming the track BCKSPL=1<<9, //! The particle is backsplashed from the CAL back
46 // in the TKR region POSHIT =1<<10, //! The particle released a hit a PositionHit
47 // detector NOTTRACK=1<<11, //! Not tracked by user request Swum = 1<<12, //! this
48 // particle was produced by the swimmer LEAF = 1<<13 //! this particle is a leaf in
49 // the particle tree
50 };

◆ StatusBits [3/3]

status bits modeled

Enumerator
DECAYED 
DECAYFLT 

Decayed by generator.

PRIMARY 

Decayed in flight.

LEAF 

primary particle

ERROR 

this particle is a leaf in the particle tree

DECAYED 
DECAYFLT 

Decayed by generator.

PRIMARY 

Decayed in flight.

LEAF 

primary particle

ERROR 

this particle is a leaf in the particle tree

DECAYED 
DECAYFLT 

Decayed by generator.

PRIMARY 

Decayed in flight.

LEAF 

primary particle

ERROR 

this particle is a leaf in the particle tree

Definition at line 33 of file InstallArea/x86_64-el9-gcc13-opt/include/McTruth/McParticle.h.

33 {
34 DECAYED = 1, //! Decayed by generator
35 DECAYFLT = 1 << 1, //! Decayed in flight
36 PRIMARY = 1 << 2, //! primary particle
37 LEAF = 1 << 3, //! this particle is a leaf in the particle tree
38 ERROR = 1 << 4 //! error
39 // MISSED= 1<<2, //! Does not hit detector
40 // NOINTER =1<<3, //! Traverses detector w/o interacting
41 // STOPPED =1<<4, //! Energy below cut; other bits may say why
42 // INTERACT=1<<5, //! Interacted, no further decision to be made
43 // INTSHDEP=1<<6, //! Interacted, further decision depends on ! selection of shower
44 // deposition PRIMARY =1<<7, //! primary particle SWERROR =1<<8, //! Error occurred in
45 // swimming the track BCKSPL=1<<9, //! The particle is backsplashed from the CAL back
46 // in the TKR region POSHIT =1<<10, //! The particle released a hit a PositionHit
47 // detector NOTTRACK=1<<11, //! Not tracked by user request Swum = 1<<12, //! this
48 // particle was produced by the swimmer LEAF = 1<<13 //! this particle is a leaf in
49 // the particle tree
50 };

Constructor & Destructor Documentation

◆ McParticle() [1/3]

Event::McParticle::McParticle ( )
inline

Constructors.

Definition at line 55 of file Event/McTruth/include/McTruth/McParticle.h.

55: m_statusFlags( 0 ) {}

Referenced by init(), initialize(), and mother().

◆ ~McParticle() [1/3]

virtual Event::McParticle::~McParticle ( )
inlinevirtual

Destructor.

Definition at line 57 of file Event/McTruth/include/McTruth/McParticle.h.

57{}

◆ McParticle() [2/3]

Event::McParticle::McParticle ( )
inline

Constructors.

Definition at line 55 of file InstallArea/x86_64-el9-gcc13-dbg/include/McTruth/McParticle.h.

55: m_statusFlags( 0 ) {}

◆ ~McParticle() [2/3]

virtual Event::McParticle::~McParticle ( )
inlinevirtual

Destructor.

Definition at line 57 of file InstallArea/x86_64-el9-gcc13-dbg/include/McTruth/McParticle.h.

57{}

◆ McParticle() [3/3]

Event::McParticle::McParticle ( )
inline

Constructors.

Definition at line 55 of file InstallArea/x86_64-el9-gcc13-opt/include/McTruth/McParticle.h.

55: m_statusFlags( 0 ) {}

◆ ~McParticle() [3/3]

virtual Event::McParticle::~McParticle ( )
inlinevirtual

Destructor.

Definition at line 57 of file InstallArea/x86_64-el9-gcc13-opt/include/McTruth/McParticle.h.

57{}

Member Function Documentation

◆ addDaughter() [1/3]

void Event::McParticle::addDaughter ( const SmartRef< McParticle > d)
inline

add a daugther particle to this particle

Definition at line 132 of file Event/McTruth/include/McTruth/McParticle.h.

132{ m_daughters.push_back( d ); };

Referenced by BesMcTruthWriter::AddMother().

◆ addDaughter() [2/3]

void Event::McParticle::addDaughter ( const SmartRef< McParticle > d)
inline

add a daugther particle to this particle

Definition at line 132 of file InstallArea/x86_64-el9-gcc13-dbg/include/McTruth/McParticle.h.

132{ m_daughters.push_back( d ); };

◆ addDaughter() [3/3]

void Event::McParticle::addDaughter ( const SmartRef< McParticle > d)
inline

add a daugther particle to this particle

Definition at line 132 of file InstallArea/x86_64-el9-gcc13-opt/include/McTruth/McParticle.h.

132{ m_daughters.push_back( d ); };

◆ addStatusFlag() [1/3]

void Event::McParticle::addStatusFlag ( unsigned int flag)
inline

add a new flag to the status flags

Definition at line 88 of file Event/McTruth/include/McTruth/McParticle.h.

88{ m_statusFlags |= flag; };

Referenced by BesMcTruthWriter::SaveMcParticle().

◆ addStatusFlag() [2/3]

void Event::McParticle::addStatusFlag ( unsigned int flag)
inline

add a new flag to the status flags

Definition at line 88 of file InstallArea/x86_64-el9-gcc13-dbg/include/McTruth/McParticle.h.

88{ m_statusFlags |= flag; };

◆ addStatusFlag() [3/3]

void Event::McParticle::addStatusFlag ( unsigned int flag)
inline

add a new flag to the status flags

Definition at line 88 of file InstallArea/x86_64-el9-gcc13-opt/include/McTruth/McParticle.h.

88{ m_statusFlags |= flag; };

◆ classID() [1/3]

const CLID & Event::McParticle::classID ( )
inlinestatic

Definition at line 53 of file Event/McTruth/include/McTruth/McParticle.h.

53{ return CLID_McParticle; }
const CLID & CLID_McParticle

Referenced by clID().

◆ classID() [2/3]

const CLID & Event::McParticle::classID ( )
inlinestatic

◆ classID() [3/3]

const CLID & Event::McParticle::classID ( )
inlinestatic

◆ clID() [1/3]

virtual const CLID & Event::McParticle::clID ( ) const
inlinevirtual

◆ clID() [2/3]

virtual const CLID & Event::McParticle::clID ( ) const
inlinevirtual

◆ clID() [3/3]

virtual const CLID & Event::McParticle::clID ( ) const
inlinevirtual

◆ daughterList() [1/3]

const SmartRefVector< McParticle > & Event::McParticle::daughterList ( ) const
inline

access the process name

set the initial and final volume identifiers get the initial and final volume identifier access to the list of daughters

Definition at line 149 of file Event/McTruth/include/McTruth/McParticle.h.

149{ return m_daughters; };

Referenced by PrintMcInfo::printPartInf(), and PrintMcInfo::printTree().

◆ daughterList() [2/3]

const SmartRefVector< McParticle > & Event::McParticle::daughterList ( ) const
inline

access the process name

set the initial and final volume identifiers get the initial and final volume identifier access to the list of daughters

Definition at line 149 of file InstallArea/x86_64-el9-gcc13-dbg/include/McTruth/McParticle.h.

149{ return m_daughters; };

◆ daughterList() [3/3]

const SmartRefVector< McParticle > & Event::McParticle::daughterList ( ) const
inline

access the process name

set the initial and final volume identifiers get the initial and final volume identifier access to the list of daughters

Definition at line 149 of file InstallArea/x86_64-el9-gcc13-opt/include/McTruth/McParticle.h.

149{ return m_daughters; };

◆ decayFromGenerator() [1/3]

bool McParticle::decayFromGenerator ( ) const

Decayed from generator.

Retrieve whether decayed from generator.

Definition at line 16 of file McParticle.cxx.

16 {
17 return ( m_statusFlags & DECAYED ) == DECAYED;
18 }

◆ decayFromGenerator() [2/3]

bool Event::McParticle::decayFromGenerator ( ) const

Decayed from generator.

◆ decayFromGenerator() [3/3]

bool Event::McParticle::decayFromGenerator ( ) const

Decayed from generator.

◆ decayInFlight() [1/3]

bool McParticle::decayInFlight ( ) const

Decayed in flight.

Retrieve wheter decayed in flight.

Definition at line 21 of file McParticle.cxx.

21{ return ( m_statusFlags & DECAYFLT ) == DECAYFLT; }

◆ decayInFlight() [2/3]

bool Event::McParticle::decayInFlight ( ) const

Decayed in flight.

◆ decayInFlight() [3/3]

bool Event::McParticle::decayInFlight ( ) const

Decayed in flight.

◆ finalize() [1/3]

void McParticle::finalize ( const HepLorentzVector & finalPosition)

Set the final attributes of the McParticle.

Definition at line 64 of file McParticle.cxx.

64 {
65 m_finalPosition = finalPosition;
66 }
const HepLorentzVector & finalPosition() const

Referenced by init(), BesMcTruthWriter::SaveMcParticle(), and McParticleBuilder::unPack().

◆ finalize() [2/3]

void Event::McParticle::finalize ( const HepLorentzVector & finalPosition)

Set the final attributes of the McParticle.

◆ finalize() [3/3]

void Event::McParticle::finalize ( const HepLorentzVector & finalPosition)

Set the final attributes of the McParticle.

◆ finalPosition() [1/3]

const HepLorentzVector & McParticle::finalPosition ( ) const

Definition at line 71 of file McParticle.cxx.

71{ return m_finalPosition; }

Referenced by finalize(), and init().

◆ finalPosition() [2/3]

const HepLorentzVector & Event::McParticle::finalPosition ( ) const

◆ finalPosition() [3/3]

const HepLorentzVector & Event::McParticle::finalPosition ( ) const

◆ init() [1/3]

void McParticle::init ( McParticle * mother,
StdHepId id,
unsigned int statusBits,
const HepLorentzVector & initialMomentum,
const HepLorentzVector & finalMomentum,
const HepLorentzVector & initialPosition,
const HepLorentzVector & finalPosition,
const std::string process = "" )

completely initialize a newed object. No other way to set most attributes. it will be replaced by the following methods (left here just in the transition)

Definition at line 23 of file McParticle.cxx.

27 {
28 initialize( mother, id, flags, initialMomentum, initialPosition, process );
29 // finalize(finalMomentum, finalPosition);
31 }
const HepLorentzVector & initialPosition() const
Retrieve pointer to the start, end vertex positions.
const McParticle & mother() const
access to the mother particle
void initialize(StdHepId id, unsigned int statusBits, const HepLorentzVector &initialMomentum, const HepLorentzVector &initialPosition, const std::string process="")
Set the initial attributes of the McParticle.
void finalize(const HepLorentzVector &finalPosition)
Set the final attributes of the McParticle.

◆ init() [2/3]

void Event::McParticle::init ( McParticle * mother,
StdHepId id,
unsigned int statusBits,
const HepLorentzVector & initialMomentum,
const HepLorentzVector & finalMomentum,
const HepLorentzVector & initialPosition,
const HepLorentzVector & finalPosition,
const std::string process = "" )

completely initialize a newed object. No other way to set most attributes. it will be replaced by the following methods (left here just in the transition)

◆ init() [3/3]

void Event::McParticle::init ( McParticle * mother,
StdHepId id,
unsigned int statusBits,
const HepLorentzVector & initialMomentum,
const HepLorentzVector & finalMomentum,
const HepLorentzVector & initialPosition,
const HepLorentzVector & finalPosition,
const std::string process = "" )

completely initialize a newed object. No other way to set most attributes. it will be replaced by the following methods (left here just in the transition)

◆ initialFourMomentum() [1/3]

const HepLorentzVector & McParticle::initialFourMomentum ( ) const

Definition at line 72 of file McParticle.cxx.

72 {
73 return m_initialFourMomentum;
74 }

Referenced by MdcUtilitySvc::getHelixOfMcParticle(), and MdcUtilitySvc::getMomPosOfMcParticle().

◆ initialFourMomentum() [2/3]

const HepLorentzVector & Event::McParticle::initialFourMomentum ( ) const

◆ initialFourMomentum() [3/3]

const HepLorentzVector & Event::McParticle::initialFourMomentum ( ) const

◆ initialize() [1/6]

void McParticle::initialize ( McParticle * mother,
StdHepId id,
unsigned int statusBits,
const HepLorentzVector & initialMomentum,
const HepLorentzVector & initialPosition,
const std::string process = "" )

Definition at line 44 of file McParticle.cxx.

47 {
48 m_mother = mother;
49 m_particleID = id;
50 m_statusFlags = flags;
51 m_initialFourMomentum = initialMomentum;
52 m_initialPosition = initialPosition;
53 m_process = process;
54 if ( mother != this ) mother->m_daughters.push_back( this );
55 }

◆ initialize() [2/6]

void Event::McParticle::initialize ( McParticle * mother,
StdHepId id,
unsigned int statusBits,
const HepLorentzVector & initialMomentum,
const HepLorentzVector & initialPosition,
const std::string process = "" )

◆ initialize() [3/6]

void Event::McParticle::initialize ( McParticle * mother,
StdHepId id,
unsigned int statusBits,
const HepLorentzVector & initialMomentum,
const HepLorentzVector & initialPosition,
const std::string process = "" )

◆ initialize() [4/6]

void McParticle::initialize ( StdHepId id,
unsigned int statusBits,
const HepLorentzVector & initialMomentum,
const HepLorentzVector & initialPosition,
const std::string process = "" )

Set the initial attributes of the McParticle.

Definition at line 33 of file McParticle.cxx.

36 {
37 m_particleID = id;
38 m_statusFlags = flags;
39 m_initialFourMomentum = initialMomentum;
40 m_initialPosition = initialPosition;
41 m_process = process;
42 }

Referenced by init(), BesMcTruthWriter::SaveMcParticle(), and McParticleBuilder::unPack().

◆ initialize() [5/6]

void Event::McParticle::initialize ( StdHepId id,
unsigned int statusBits,
const HepLorentzVector & initialMomentum,
const HepLorentzVector & initialPosition,
const std::string process = "" )

Set the initial attributes of the McParticle.

◆ initialize() [6/6]

void Event::McParticle::initialize ( StdHepId id,
unsigned int statusBits,
const HepLorentzVector & initialMomentum,
const HepLorentzVector & initialPosition,
const std::string process = "" )

Set the initial attributes of the McParticle.

◆ initialPosition() [1/3]

const HepLorentzVector & McParticle::initialPosition ( ) const

Retrieve pointer to the start, end vertex positions.

Definition at line 70 of file McParticle.cxx.

70{ return m_initialPosition; }

Referenced by MdcUtilitySvc::getHelixOfMcParticle(), MdcUtilitySvc::getMomPosOfMcParticle(), init(), initialize(), initialize(), and PrintMcInfo::printPartInf().

◆ initialPosition() [2/3]

const HepLorentzVector & Event::McParticle::initialPosition ( ) const

Retrieve pointer to the start, end vertex positions.

◆ initialPosition() [3/3]

const HepLorentzVector & Event::McParticle::initialPosition ( ) const

Retrieve pointer to the start, end vertex positions.

◆ leafParticle() [1/3]

bool McParticle::leafParticle ( ) const

Retrieve whether this is a leaf particle.

Retrieve whether this is a leave particle.

Definition at line 13 of file McParticle.cxx.

13{ return ( m_statusFlags & LEAF ) == LEAF; }

Referenced by BesMcTruthWriter::AddMother().

◆ leafParticle() [2/3]

bool Event::McParticle::leafParticle ( ) const

Retrieve whether this is a leaf particle.

◆ leafParticle() [3/3]

bool Event::McParticle::leafParticle ( ) const

Retrieve whether this is a leaf particle.

◆ mother() [1/3]

const McParticle & McParticle::mother ( ) const

access to the mother particle

Definition at line 83 of file McParticle.cxx.

83{ return *m_mother; }

Referenced by QCMCFilter::execute(), QCMCFilter::findD0Decay(), init(), and initialize().

◆ mother() [2/3]

const McParticle & Event::McParticle::mother ( ) const

access to the mother particle

◆ mother() [3/3]

const McParticle & Event::McParticle::mother ( ) const

access to the mother particle

◆ particleProperty() [1/3]

McParticle::StdHepId McParticle::particleProperty ( ) const

Retrieve particle property.

Definition at line 7 of file McParticle.cxx.

7{ return m_particleID; }

Referenced by QCMCFilter::execute(), QCMCFilter::findD0Decay(), MdcUtilitySvc::getChargeOfMcParticle(), and PrintMcInfo::printPartInf().

◆ particleProperty() [2/3]

StdHepId Event::McParticle::particleProperty ( ) const

Retrieve particle property.

◆ particleProperty() [3/3]

StdHepId Event::McParticle::particleProperty ( ) const

Retrieve particle property.

◆ primaryParticle() [1/3]

bool McParticle::primaryParticle ( ) const

Retrieve whether this is a primary particle.

Retrieve whether this is a primary particle: there's no mother for a primary particle

Definition at line 10 of file McParticle.cxx.

10{ return ( m_statusFlags & PRIMARY ) == PRIMARY; }

Referenced by PrintMcInfo::printPartInf(), and PrintMcInfo::printTree().

◆ primaryParticle() [2/3]

bool Event::McParticle::primaryParticle ( ) const

Retrieve whether this is a primary particle: there's no mother for a primary particle

◆ primaryParticle() [3/3]

bool Event::McParticle::primaryParticle ( ) const

Retrieve whether this is a primary particle: there's no mother for a primary particle

◆ removeDaughter() [1/3]

void McParticle::removeDaughter ( const SmartRef< McParticle > mcPart)

Used for pruning.

Remove daughters when in prune mode.

Definition at line 86 of file McParticle.cxx.

86 {
87 SmartRefVector<Event::McParticle>::iterator daughtIter;
88 for ( daughtIter = m_daughters.begin(); daughtIter != m_daughters.end(); daughtIter++ )
89 {
90 if ( mcPart == *daughtIter )
91 {
92 m_daughters.erase( daughtIter );
93 break;
94 }
95 }
96 return;
97 }

◆ removeDaughter() [2/3]

void Event::McParticle::removeDaughter ( const SmartRef< McParticle > mcPart)

Used for pruning.

◆ removeDaughter() [3/3]

void Event::McParticle::removeDaughter ( const SmartRef< McParticle > mcPart)

Used for pruning.

◆ setMother() [1/3]

void McParticle::setMother ( const SmartRef< McParticle > m)

set the mother particle

Definition at line 68 of file McParticle.cxx.

68{ m_mother = m; }

◆ setMother() [2/3]

void Event::McParticle::setMother ( const SmartRef< McParticle > m)

set the mother particle

◆ setMother() [3/3]

void Event::McParticle::setMother ( const SmartRef< McParticle > m)

set the mother particle

◆ setTrackIndex() [1/3]

void Event::McParticle::setTrackIndex ( int trackIndex)
inline

◆ setTrackIndex() [2/3]

void Event::McParticle::setTrackIndex ( int trackIndex)
inline

Definition at line 113 of file InstallArea/x86_64-el9-gcc13-dbg/include/McTruth/McParticle.h.

113{ m_trackIndex = trackIndex; }

◆ setTrackIndex() [3/3]

void Event::McParticle::setTrackIndex ( int trackIndex)
inline

Definition at line 113 of file InstallArea/x86_64-el9-gcc13-opt/include/McTruth/McParticle.h.

113{ m_trackIndex = trackIndex; }

◆ setVertexIndex0() [1/3]

void Event::McParticle::setVertexIndex0 ( int index0)
inline

methods for setting and getting vertex indexes

Definition at line 104 of file Event/McTruth/include/McTruth/McParticle.h.

104{ m_vertexIndex0 = index0; }

Referenced by BesMcTruthWriter::SaveMcParticle(), and McParticleBuilder::unPack().

◆ setVertexIndex0() [2/3]

void Event::McParticle::setVertexIndex0 ( int index0)
inline

methods for setting and getting vertex indexes

Definition at line 104 of file InstallArea/x86_64-el9-gcc13-dbg/include/McTruth/McParticle.h.

104{ m_vertexIndex0 = index0; }

◆ setVertexIndex0() [3/3]

void Event::McParticle::setVertexIndex0 ( int index0)
inline

methods for setting and getting vertex indexes

Definition at line 104 of file InstallArea/x86_64-el9-gcc13-opt/include/McTruth/McParticle.h.

104{ m_vertexIndex0 = index0; }

◆ setVertexIndex1() [1/3]

void Event::McParticle::setVertexIndex1 ( int index1)
inline

Definition at line 108 of file Event/McTruth/include/McTruth/McParticle.h.

108{ m_vertexIndex1 = index1; }

Referenced by BesMcTruthWriter::SaveMcParticle(), and McParticleBuilder::unPack().

◆ setVertexIndex1() [2/3]

void Event::McParticle::setVertexIndex1 ( int index1)
inline

Definition at line 108 of file InstallArea/x86_64-el9-gcc13-dbg/include/McTruth/McParticle.h.

108{ m_vertexIndex1 = index1; }

◆ setVertexIndex1() [3/3]

void Event::McParticle::setVertexIndex1 ( int index1)
inline

Definition at line 108 of file InstallArea/x86_64-el9-gcc13-opt/include/McTruth/McParticle.h.

108{ m_vertexIndex1 = index1; }

◆ statusFlags() [1/3]

unsigned int McParticle::statusFlags ( ) const

retrieve all of status flags for const object

Definition at line 80 of file McParticle.cxx.

80{ return m_statusFlags; }

◆ statusFlags() [2/3]

unsigned int Event::McParticle::statusFlags ( ) const

retrieve all of status flags for const object

◆ statusFlags() [3/3]

unsigned int Event::McParticle::statusFlags ( ) const

retrieve all of status flags for const object

◆ trackIndex() [1/3]

int Event::McParticle::trackIndex ( ) const
inline

Definition at line 116 of file Event/McTruth/include/McTruth/McParticle.h.

116{ return m_trackIndex; }

Referenced by PrintMcInfo::execute(), PrintMcInfo::printPartInf(), and setTrackIndex().

◆ trackIndex() [2/3]

int Event::McParticle::trackIndex ( ) const
inline

Definition at line 116 of file InstallArea/x86_64-el9-gcc13-dbg/include/McTruth/McParticle.h.

116{ return m_trackIndex; }

◆ trackIndex() [3/3]

int Event::McParticle::trackIndex ( ) const
inline

Definition at line 116 of file InstallArea/x86_64-el9-gcc13-opt/include/McTruth/McParticle.h.

116{ return m_trackIndex; }

◆ vertexIndex0() [1/3]

int Event::McParticle::vertexIndex0 ( ) const
inline

Definition at line 106 of file Event/McTruth/include/McTruth/McParticle.h.

106{ return m_vertexIndex0; }

◆ vertexIndex0() [2/3]

int Event::McParticle::vertexIndex0 ( ) const
inline

Definition at line 106 of file InstallArea/x86_64-el9-gcc13-dbg/include/McTruth/McParticle.h.

106{ return m_vertexIndex0; }

◆ vertexIndex0() [3/3]

int Event::McParticle::vertexIndex0 ( ) const
inline

Definition at line 106 of file InstallArea/x86_64-el9-gcc13-opt/include/McTruth/McParticle.h.

106{ return m_vertexIndex0; }

◆ vertexIndex1() [1/3]

int Event::McParticle::vertexIndex1 ( ) const
inline

Definition at line 110 of file Event/McTruth/include/McTruth/McParticle.h.

110{ return m_vertexIndex1; }

Referenced by BesMcTruthWriter::AddMother().

◆ vertexIndex1() [2/3]

int Event::McParticle::vertexIndex1 ( ) const
inline

Definition at line 110 of file InstallArea/x86_64-el9-gcc13-dbg/include/McTruth/McParticle.h.

110{ return m_vertexIndex1; }

◆ vertexIndex1() [3/3]

int Event::McParticle::vertexIndex1 ( ) const
inline

Definition at line 110 of file InstallArea/x86_64-el9-gcc13-opt/include/McTruth/McParticle.h.

110{ return m_vertexIndex1; }

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