| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

GiGaPrimaryParticleInformation Class Reference

Class to hold oscillation and signal information to be passed along with a G4PrimaryParticle. More...

#include <GiGaPrimaryParticleInformation.h>

Collaboration diagram for GiGaPrimaryParticleInformation:

[legend]
List of all members.

Public Member Functions

 GiGaPrimaryParticleInformation (bool osc)
 Standard constructors sets oscillation information.
 GiGaPrimaryParticleInformation (bool sig, int code, LHCb::HepMCEvent *event)
 Sets link to HepMC Particle.
virtual ~GiGaPrimaryParticleInformation ()
 Destructor.
void setHasOscillated (bool osc)
 Sets oscillation information.
void setIsSignal (bool sig)
 Sets signal information.
void setSignalBarcode (int code)
 Sets signal barcode.
void setHepMCPointer (LHCb::HepMCEvent *event)
 Sets HepMCEvent pointer.
void setMotherMCParticle (LHCb::MCParticle *mcp)
 Sets pointer to mother MCParticle.
bool hasOscillated ()
 returns true if the particle has oscillated
bool isSignal ()
 returns true is the particle is the forced decay particle
int signalBarcode ()
 returns the barcode of the signal particle
LHCb::HepMCEventpHepMCEvent ()
 returns a pointer to the HepMC Event containing the signal HepMC particle
LHCb::MCParticle * motherMCParticle ()
 Returns a pointer to the mother MCParticle.
virtual void Print () const
 Print function needed in G4VUserPrimaryParticleInformation.

Private Attributes

bool m_hasOscillated
 Flag to indicate if particle has oscillated.
bool m_isSignal
 Flag to indicate if particle is the signal particle.
int m_signalBarcode
 Corresponding HepMC Particle barcode (filled for signal particle).
LHCb::HepMCEventm_pHepMCEvent
 Pointer to HepMCEvent which the HepMC particle belongs to.
LHCb::MCParticle * m_mcParticle
 Pointer to the MCParticle which is the mother of this G4PrimaryParticle.

Detailed Description

Class to hold oscillation and signal information to be passed along with a G4PrimaryParticle.

Author:
Patrick Robbe
Date:
2004-02-06

Definition at line 50 of file GiGaPrimaryParticleInformation.h.


Constructor & Destructor Documentation

GiGaPrimaryParticleInformation::GiGaPrimaryParticleInformation ( bool  osc  )  [inline]

Standard constructors sets oscillation information.

Definition at line 55 of file GiGaPrimaryParticleInformation.h.

00055                                              : 
00056     G4VUserPrimaryParticleInformation ( ),
00057     m_hasOscillated(  osc  ) , 
00058     m_isSignal     ( false ) ,
00059     m_signalBarcode( -1    ) ,
00060     m_pHepMCEvent  (   0   ) , 
00061     m_mcParticle   (   0   ) { ; }  

GiGaPrimaryParticleInformation::GiGaPrimaryParticleInformation ( bool  sig,
int  code,
LHCb::HepMCEvent event 
) [inline]

Sets link to HepMC Particle.

Definition at line 64 of file GiGaPrimaryParticleInformation.h.

00064                                                                               :
00065     G4VUserPrimaryParticleInformation ( ),
00066     m_hasOscillated ( false ),
00067     m_isSignal      (  sig  ),
00068     m_signalBarcode ( code  ),
00069     m_pHepMCEvent   ( event ),
00070     m_mcParticle    (   0   ) { ; }

virtual GiGaPrimaryParticleInformation::~GiGaPrimaryParticleInformation (  )  [inline, virtual]

Destructor.

Definition at line 73 of file GiGaPrimaryParticleInformation.h.


Member Function Documentation

void GiGaPrimaryParticleInformation::setHasOscillated ( bool  osc  )  [inline]

Sets oscillation information.

Definition at line 76 of file GiGaPrimaryParticleInformation.h.

00076 { m_hasOscillated = osc ; }

void GiGaPrimaryParticleInformation::setIsSignal ( bool  sig  )  [inline]

Sets signal information.

Definition at line 79 of file GiGaPrimaryParticleInformation.h.

00079 { m_isSignal = sig ; }

void GiGaPrimaryParticleInformation::setSignalBarcode ( int  code  )  [inline]

Sets signal barcode.

Definition at line 82 of file GiGaPrimaryParticleInformation.h.

00082 { m_signalBarcode = code ; }

void GiGaPrimaryParticleInformation::setHepMCPointer ( LHCb::HepMCEvent event  )  [inline]

Sets HepMCEvent pointer.

Definition at line 85 of file GiGaPrimaryParticleInformation.h.

00085 { m_pHepMCEvent = event ; }

void GiGaPrimaryParticleInformation::setMotherMCParticle ( LHCb::MCParticle *  mcp  )  [inline]

Sets pointer to mother MCParticle.

Definition at line 88 of file GiGaPrimaryParticleInformation.h.

00088 { m_mcParticle = mcp ; }

bool GiGaPrimaryParticleInformation::hasOscillated (  )  [inline]

returns true if the particle has oscillated

Definition at line 91 of file GiGaPrimaryParticleInformation.h.

00091 { return m_hasOscillated ; }

bool GiGaPrimaryParticleInformation::isSignal (  )  [inline]

returns true is the particle is the forced decay particle

Definition at line 94 of file GiGaPrimaryParticleInformation.h.

00094 { return m_isSignal ; }

int GiGaPrimaryParticleInformation::signalBarcode (  )  [inline]

returns the barcode of the signal particle

Definition at line 97 of file GiGaPrimaryParticleInformation.h.

00097 { return m_signalBarcode ; }

LHCb::HepMCEvent* GiGaPrimaryParticleInformation::pHepMCEvent (  )  [inline]

returns a pointer to the HepMC Event containing the signal HepMC particle

Definition at line 100 of file GiGaPrimaryParticleInformation.h.

00100 { return m_pHepMCEvent ; }

LHCb::MCParticle* GiGaPrimaryParticleInformation::motherMCParticle (  )  [inline]

Returns a pointer to the mother MCParticle.

Definition at line 103 of file GiGaPrimaryParticleInformation.h.

00103 { return m_mcParticle ; }

virtual void GiGaPrimaryParticleInformation::Print (  )  const [inline, virtual]

Print function needed in G4VUserPrimaryParticleInformation.

Definition at line 106 of file GiGaPrimaryParticleInformation.h.

00106                               { if ( m_hasOscillated ) 
00107     G4cout << "Particle has oscillated" << G4endl ; 
00108   }


Member Data Documentation

bool GiGaPrimaryParticleInformation::m_hasOscillated [private]

Flag to indicate if particle has oscillated.

Definition at line 115 of file GiGaPrimaryParticleInformation.h.

bool GiGaPrimaryParticleInformation::m_isSignal [private]

Flag to indicate if particle is the signal particle.

Definition at line 117 of file GiGaPrimaryParticleInformation.h.

int GiGaPrimaryParticleInformation::m_signalBarcode [private]

Corresponding HepMC Particle barcode (filled for signal particle).

Definition at line 119 of file GiGaPrimaryParticleInformation.h.

LHCb::HepMCEvent* GiGaPrimaryParticleInformation::m_pHepMCEvent [private]

Pointer to HepMCEvent which the HepMC particle belongs to.

Definition at line 121 of file GiGaPrimaryParticleInformation.h.

LHCb::MCParticle* GiGaPrimaryParticleInformation::m_mcParticle [private]

Pointer to the MCParticle which is the mother of this G4PrimaryParticle.

Definition at line 123 of file GiGaPrimaryParticleInformation.h.


The documentation for this class was generated from the following file:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Mon Apr 11 20:03:53 2011 for GiGaCnv by doxygen 1.4.7