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

In This Package:

GiGaTrajectory Class Reference

Customisation of "standard" G4Trajectory class to incorporate TimeOfFlight of the each point. More...

#include <GiGa/GiGaTrajectory.h>

List of all members.


Public Member Functions

 GiGaTrajectory ()
 default (empty) constructor
 GiGaTrajectory (const G4Track *track)
 constructor from the track
 GiGaTrajectory (const GiGaTrajectory &right)
 copy constructor
virtual ~GiGaTrajectory ()
 destructor
void * operator new (size_t)
 overloaded new operator
void operator delete (void *)
 overloaded delete operator
virtual GiGaTrajectoryclone () const
 clone (virtual constructor) method
int operator== (const GiGaTrajectory &right) const
 comparison (needed by G4)
const int & trackID () const
 accessors - a'la Gaudi and a'la Geant4
const int & parentID () const
const CLHEP::HepLorentzVector & fourMomentum () const
const CLHEP::HepLorentzVector & momentum () const
const CLHEP::HepLorentzVector & Get4Momentum () const
bool hasOscillated () const
bool isSignal () const
int signalBarcode () const
LHCb::HepMCEvent * pHepMCEvent () const
LHCb::MCParticle * motherMCParticle () const
G4int GetTrackID () const
G4int GetParentID () const
const G4ParticleDefinition * partDef () const
virtual void ShowTrajectory (std::ostream &os=std::cout) const
virtual void DrawTrajectory (G4int i_mode=0) const
virtual void AppendStep (const G4Step *)
virtual void MergeTrajectory (G4VTrajectory *)
virtual int GetPointEntries () const
virtual G4VTrajectoryPoint * GetPoint (int index) const
G4VTrajectoryPoint * point (int index) const
virtual G4String GetParticleName () const
virtual G4double GetCharge () const
virtual G4int GetPDGEncoding () const
virtual G4ThreeVector GetInitialMomentum () const
const G4VProcess * creator () const
 get the pointer to creator process
void setCreator (const G4VProcess *value)
 set the creator process
void setHasOscillated (bool flag)
void setIsSignal (bool sig)
void setSignalBarcode (int code)
void setHepMCEvent (LHCb::HepMCEvent *event)
void setMotherMCParticle (LHCb::MCParticle *p)
const std::string & processname () const
void setProcessName (const std::string &)

Protected Member Functions

bool appendStep (const G4Step *step)
 'almost' unconditionally append the step

Private Member Functions

GiGaTrajectoryoperator= (const GiGaTrajectory &)
 assignement operator id private

Private Attributes

int m_trackID
int m_parentID
const G4ParticleDefinition * m_partDef
CLHEP::HepLorentzVector m_4vect
const G4VProcess * m_creator
bool m_hasOscillated
bool m_isSignal
int m_signalBarcode
LHCb::HepMCEvent * m_pHepMCEvent
LHCb::MCParticle * m_motherMCParticle

Detailed Description

Customisation of "standard" G4Trajectory class to incorporate TimeOfFlight of the each point.

Overwise conversion to MCParticle/MCVertex structure is impossible.

Author:
Vanya Belyaev
Date:
22/02/2001

Definition at line 53 of file GiGaTrajectory.h.


Constructor & Destructor Documentation

GiGaTrajectory::GiGaTrajectory (  ) 

default (empty) constructor

GiGaTrajectory::GiGaTrajectory ( const G4Track *  track  ) 

constructor from the track

Parameters:
track pointer to the track

GiGaTrajectory::GiGaTrajectory ( const GiGaTrajectory right  ) 

copy constructor

Parameters:
right object to be copied

virtual GiGaTrajectory::~GiGaTrajectory (  )  [virtual]

destructor


Member Function Documentation

void* GiGaTrajectory::operator new ( size_t   ) 

overloaded new operator

void GiGaTrajectory::operator delete ( void *   ) 

overloaded delete operator

virtual GiGaTrajectory* GiGaTrajectory::clone (  )  const [virtual]

clone (virtual constructor) method

Returns:
clone of current trajectory

int GiGaTrajectory::operator== ( const GiGaTrajectory right  )  const [inline]

comparison (needed by G4)

Definition at line 86 of file GiGaTrajectory.h.

00087   {return ( &right == this );}

const int& GiGaTrajectory::trackID (  )  const [inline]

accessors - a'la Gaudi and a'la Geant4

Definition at line 90 of file GiGaTrajectory.h.

00091   { return m_trackID      ; } 

const int& GiGaTrajectory::parentID (  )  const [inline]

Definition at line 92 of file GiGaTrajectory.h.

00093   { return m_parentID     ; }  

const CLHEP::HepLorentzVector& GiGaTrajectory::fourMomentum (  )  const [inline]

Definition at line 94 of file GiGaTrajectory.h.

00095   { return momentum()     ; } 

const CLHEP::HepLorentzVector& GiGaTrajectory::momentum (  )  const [inline]

Definition at line 96 of file GiGaTrajectory.h.

00097   { return m_4vect        ; } 

const CLHEP::HepLorentzVector& GiGaTrajectory::Get4Momentum (  )  const [inline]

Definition at line 98 of file GiGaTrajectory.h.

00099   { return fourMomentum() ; }

bool GiGaTrajectory::hasOscillated (  )  const [inline]

Definition at line 101 of file GiGaTrajectory.h.

00102   { return m_hasOscillated ; }

bool GiGaTrajectory::isSignal (  )  const [inline]

Definition at line 103 of file GiGaTrajectory.h.

00104   { return m_isSignal      ; }

int GiGaTrajectory::signalBarcode (  )  const [inline]

Definition at line 105 of file GiGaTrajectory.h.

00106   { return m_signalBarcode ; }

LHCb::HepMCEvent* GiGaTrajectory::pHepMCEvent (  )  const [inline]

Definition at line 107 of file GiGaTrajectory.h.

00108   { return m_pHepMCEvent   ; }

LHCb::MCParticle* GiGaTrajectory::motherMCParticle (  )  const [inline]

Definition at line 109 of file GiGaTrajectory.h.

00110   { return m_motherMCParticle ; } 

G4int GiGaTrajectory::GetTrackID (  )  const [inline]

Definition at line 113 of file GiGaTrajectory.h.

00114   { return trackID ()     ; }

G4int GiGaTrajectory::GetParentID (  )  const [inline]

Definition at line 115 of file GiGaTrajectory.h.

00116   { return parentID()     ; }

const G4ParticleDefinition* GiGaTrajectory::partDef (  )  const [inline]

Definition at line 118 of file GiGaTrajectory.h.

00119   { return m_partDef ; } 

virtual void GiGaTrajectory::ShowTrajectory ( std::ostream &  os = std::cout  )  const [virtual]

virtual void GiGaTrajectory::DrawTrajectory ( G4int  i_mode = 0  )  const [virtual]

virtual void GiGaTrajectory::AppendStep ( const G4Step *   )  [virtual]

virtual void GiGaTrajectory::MergeTrajectory ( G4VTrajectory *   )  [virtual]

virtual int GiGaTrajectory::GetPointEntries (  )  const [inline, virtual]

Definition at line 127 of file GiGaTrajectory.h.

00128   { return size() ; }

virtual G4VTrajectoryPoint* GiGaTrajectory::GetPoint ( int  index  )  const [inline, virtual]

Definition at line 129 of file GiGaTrajectory.h.

00130   { return point( index ) ; }

G4VTrajectoryPoint* GiGaTrajectory::point ( int  index  )  const [inline]

Definition at line 132 of file GiGaTrajectory.h.

00133   { return (size_t) index < size() ? *(begin()+index) : 0 ; }

virtual G4String GiGaTrajectory::GetParticleName (  )  const [virtual]

virtual G4double GiGaTrajectory::GetCharge (  )  const [virtual]

virtual G4int GiGaTrajectory::GetPDGEncoding (  )  const [virtual]

virtual G4ThreeVector GiGaTrajectory::GetInitialMomentum (  )  const [virtual]

const G4VProcess* GiGaTrajectory::creator (  )  const [inline]

get the pointer to creator process

Definition at line 142 of file GiGaTrajectory.h.

00142 { return m_creator ; }

void GiGaTrajectory::setCreator ( const G4VProcess *  value  )  [inline]

set the creator process

Definition at line 145 of file GiGaTrajectory.h.

00146   { m_creator = value ; }

void GiGaTrajectory::setHasOscillated ( bool  flag  )  [inline]

Definition at line 148 of file GiGaTrajectory.h.

00149   {  m_hasOscillated = flag ;  }

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

Definition at line 151 of file GiGaTrajectory.h.

00152   {  m_isSignal = sig ; }

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

Definition at line 154 of file GiGaTrajectory.h.

00155   {  m_signalBarcode = code ; }

void GiGaTrajectory::setHepMCEvent ( LHCb::HepMCEvent *  event  )  [inline]

Definition at line 157 of file GiGaTrajectory.h.

00158   {  m_pHepMCEvent = event ;  }

void GiGaTrajectory::setMotherMCParticle ( LHCb::MCParticle *  p  )  [inline]

Definition at line 160 of file GiGaTrajectory.h.

00161   { m_motherMCParticle = p ; } 

const std::string& GiGaTrajectory::processname (  )  const

void GiGaTrajectory::setProcessName ( const std::string &   )  [inline]

Definition at line 166 of file GiGaTrajectory.h.

00166 {}

bool GiGaTrajectory::appendStep ( const G4Step *  step  )  [protected]

'almost' unconditionally append the step

Parameters:
step step to be appended
Returns:
flag

GiGaTrajectory& GiGaTrajectory::operator= ( const GiGaTrajectory  )  [private]

assignement operator id private


Member Data Documentation

int GiGaTrajectory::m_trackID [private]

Definition at line 181 of file GiGaTrajectory.h.

int GiGaTrajectory::m_parentID [private]

Definition at line 182 of file GiGaTrajectory.h.

const G4ParticleDefinition* GiGaTrajectory::m_partDef [private]

Definition at line 183 of file GiGaTrajectory.h.

CLHEP::HepLorentzVector GiGaTrajectory::m_4vect [private]

Definition at line 184 of file GiGaTrajectory.h.

const G4VProcess* GiGaTrajectory::m_creator [private]

Definition at line 185 of file GiGaTrajectory.h.

bool GiGaTrajectory::m_hasOscillated [private]

Definition at line 186 of file GiGaTrajectory.h.

bool GiGaTrajectory::m_isSignal [private]

Definition at line 187 of file GiGaTrajectory.h.

int GiGaTrajectory::m_signalBarcode [private]

Definition at line 188 of file GiGaTrajectory.h.

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

Definition at line 189 of file GiGaTrajectory.h.

LHCb::MCParticle* GiGaTrajectory::m_motherMCParticle [private]

Definition at line 190 of file GiGaTrajectory.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:01:18 2011 for GiGa by doxygen 1.4.7