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

In This Package:

GaussTrackInformation Class Reference

Class which is used to store auxilliary information about G4Track,. More...

#include <GaussTrackInformation.h>

Collaboration diagram for GaussTrackInformation:

[legend]
List of all members.

Public Types

typedef std::vector< GaussHitBase * > Hits

Public Member Functions

 GaussTrackInformation ()
 default (empty) constructor
 GaussTrackInformation (const GaussTrackInformation &right)
 copy constructor
virtual ~GaussTrackInformation ()
 destructor
virtual GaussTrackInformationclone () const
 clone (virtual constructor)
void * operator new (size_t)
 overloaded operator new
void operator delete (void *)
 overloaded operator delete
virtual void Print () const
 needed by base class
const bool appendStep () const
 flag to append the step
GaussTrackInformationsetAppendStep (const bool value)
 set new value for flag to append step
const bool toBeStored () const
 flag to force the saving of track into traectory
GaussTrackInformationsetToBeStored (const bool value)
 set new value for flag to force the saving track into trajectory
const bool createdHit () const
 track created a hit
GaussTrackInformationsetCreatedHit (const bool value)
 set new value for flag
const bool directParent () const
GaussTrackInformationsetDirectParent (const bool value)
const bool storeHepMC () const
 Get flag to store or not in internal HepMC structure.
GaussTrackInformationsetStoreHepMC (const bool value)
 Set value of flag to store or not in internal HepMC structure.
GaussTrackInformationaddHit (GaussHitBase *hit)
 add hit pointer
GaussTrackInformationaddToHits (GaussHitBase *hit)
 add hit pointer
const Hitshits () const
GaussTrackInformationupdateHitsTrackID (G4int trackID)
 update Tracks IDs in hits (set the new track ID for all connected hits)
DetTrackInfodetInfo () const
 get the pointer to the detInfo
void setDetInfo (DetTrackInfo *aDetInfo)
 set the pointer to the detInfo

Private Attributes

bool m_appendStep
 flag indicating that TrajectoryPoint should be appended
bool m_toBeStored
 flag indicating that track is forced to be stored into trajectory
bool m_createdHit
 flag indicating that track created a hit
bool m_directParent
 flag indicating that the direct parent particle was not stored in HepMC event this will be represented by a special 'dummy' link
bool m_storeHepMC
Hits m_hits
 vector of pointers to hits created by that track
DetTrackInfom_detInfo
 pointer to a specialised DetTrackInfo object containing detector-specific track information

Detailed Description

Class which is used to store auxilliary information about G4Track,.

Author:
Witek Pokorski Witold.Pokorski@cern.ch

Vanya Belyaev Ivan.Belyaev@itep.ru

Date:
23/02/2001

Definition at line 26 of file GaussTrackInformation.h.


Member Typedef Documentation

typedef std::vector<GaussHitBase*> GaussTrackInformation::Hits

Definition at line 30 of file GaussTrackInformation.h.


Constructor & Destructor Documentation

GaussTrackInformation::GaussTrackInformation (  ) 

default (empty) constructor

GaussTrackInformation::GaussTrackInformation ( const GaussTrackInformation right  ) 

copy constructor

Parameters:
right object to be copied

virtual GaussTrackInformation::~GaussTrackInformation (  )  [virtual]

destructor


Member Function Documentation

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

clone (virtual constructor)

void* GaussTrackInformation::operator new ( size_t   ) 

overloaded operator new

void GaussTrackInformation::operator delete ( void *   ) 

overloaded operator delete

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

needed by base class

Definition at line 54 of file GaussTrackInformation.h.

00054 {};

const bool GaussTrackInformation::appendStep (  )  const [inline]

flag to append the step

Definition at line 57 of file GaussTrackInformation.h.

00057 { return m_appendStep ; }

GaussTrackInformation& GaussTrackInformation::setAppendStep ( const bool  value  )  [inline]

set new value for flag to append step

Parameters:
value new value of the flag

Definition at line 62 of file GaussTrackInformation.h.

00063   { m_appendStep = value ; return *this ; }

const bool GaussTrackInformation::toBeStored (  )  const [inline]

flag to force the saving of track into traectory

Definition at line 66 of file GaussTrackInformation.h.

00066 { return m_toBeStored ; }

GaussTrackInformation& GaussTrackInformation::setToBeStored ( const bool  value  )  [inline]

set new value for flag to force the saving track into trajectory

Parameters:
value new value of the flag

Definition at line 71 of file GaussTrackInformation.h.

00072   { m_toBeStored = value ; return *this ; }

const bool GaussTrackInformation::createdHit (  )  const [inline]

track created a hit

Definition at line 75 of file GaussTrackInformation.h.

00075 { return m_createdHit ; }

GaussTrackInformation& GaussTrackInformation::setCreatedHit ( const bool  value  )  [inline]

set new value for flag

Parameters:
value new value of the flag

Definition at line 80 of file GaussTrackInformation.h.

00081   { m_createdHit = value ; return *this ; }

const bool GaussTrackInformation::directParent (  )  const [inline]

Definition at line 84 of file GaussTrackInformation.h.

00084 {return m_directParent;}

GaussTrackInformation& GaussTrackInformation::setDirectParent ( const bool  value  )  [inline]

Definition at line 87 of file GaussTrackInformation.h.

00088   { m_directParent = value; return *this;}

const bool GaussTrackInformation::storeHepMC (  )  const [inline]

Get flag to store or not in internal HepMC structure.

Definition at line 91 of file GaussTrackInformation.h.

00091 {return m_storeHepMC;}

GaussTrackInformation& GaussTrackInformation::setStoreHepMC ( const bool  value  )  [inline]

Set value of flag to store or not in internal HepMC structure.

Definition at line 94 of file GaussTrackInformation.h.

00095   { m_storeHepMC = value; return *this;}

GaussTrackInformation& GaussTrackInformation::addHit ( GaussHitBase hit  )  [inline]

add hit pointer

Parameters:
hit hit to be added into list of connected hits

Definition at line 100 of file GaussTrackInformation.h.

00101   { if ( 0 != hit ) { m_hits.push_back( hit ) ; } ; return *this ; }

GaussTrackInformation& GaussTrackInformation::addToHits ( GaussHitBase hit  )  [inline]

add hit pointer

Parameters:
hit hit to be added into list of connected hits

Definition at line 106 of file GaussTrackInformation.h.

00107   { return addHit( hit ) ; }

const Hits& GaussTrackInformation::hits (  )  const [inline]

Definition at line 110 of file GaussTrackInformation.h.

00110 { return m_hits ; }

GaussTrackInformation& GaussTrackInformation::updateHitsTrackID ( G4int  trackID  )  [inline]

update Tracks IDs in hits (set the new track ID for all connected hits)

Parameters:
trackID new value of trackID

Definition at line 116 of file GaussTrackInformation.h.

00117   {
00118     for( Hits::iterator ihit = m_hits.begin() ; m_hits.end() != ihit ; ++ihit )
00119       {
00120         GaussHitBase* hit = *ihit ;
00121         if( 0 != hit ) { hit->setTrackID( trackID ); }
00122       }
00123     return *this ;
00124   }

DetTrackInfo* GaussTrackInformation::detInfo (  )  const [inline]

get the pointer to the detInfo

Definition at line 128 of file GaussTrackInformation.h.

00128 { return  m_detInfo; }

void GaussTrackInformation::setDetInfo ( DetTrackInfo aDetInfo  )  [inline]

set the pointer to the detInfo

Parameters:
aDetInfo pointer to DetTrackInfo

Definition at line 133 of file GaussTrackInformation.h.

00134   { m_detInfo = aDetInfo; }


Member Data Documentation

bool GaussTrackInformation::m_appendStep [private]

flag indicating that TrajectoryPoint should be appended

Definition at line 140 of file GaussTrackInformation.h.

bool GaussTrackInformation::m_toBeStored [private]

flag indicating that track is forced to be stored into trajectory

Definition at line 142 of file GaussTrackInformation.h.

bool GaussTrackInformation::m_createdHit [private]

flag indicating that track created a hit

Definition at line 144 of file GaussTrackInformation.h.

bool GaussTrackInformation::m_directParent [private]

flag indicating that the direct parent particle was not stored in HepMC event this will be represented by a special 'dummy' link

Definition at line 147 of file GaussTrackInformation.h.

bool GaussTrackInformation::m_storeHepMC [private]

Definition at line 149 of file GaussTrackInformation.h.

Hits GaussTrackInformation::m_hits [private]

vector of pointers to hits created by that track

Definition at line 152 of file GaussTrackInformation.h.

DetTrackInfo* GaussTrackInformation::m_detInfo [private]

pointer to a specialised DetTrackInfo object containing detector-specific track information

Definition at line 156 of file GaussTrackInformation.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:04:15 2011 for GaussTools by doxygen 1.4.7