CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes | Friends
TrackInformation Class Reference

#include <TrackInformation.h>

Inheritance diagram for TrackInformation:

Public Member Functions

bool caloIDChecked () const
 
double caloSurfaceParticleP () const
 
int caloSurfaceParticlePID () const
 
double genParticleP () const
 
int genParticlePID () const
 
int getIDCaloVolume () const
 
int getIDLastVolume () const
 
int getIDonCaloSurface () const
 
bool hasHits () const
 
void hasHits (bool v)
 
bool isAncestor () const
 
bool isGeneratedSecondary () const
 
void isGeneratedSecondary (bool v)
 
bool isInHistory () const
 
bool isPrimary () const
 
void isPrimary (bool v)
 
void operator delete (void *TrackInformation)
 
void * operator new (size_t)
 
virtual void Print () const
 
void putInHistory ()
 
void setAncestor ()
 
void setCaloIDChecked (bool f)
 
void setCaloSurfaceParticleP (double p)
 
void setCaloSurfaceParticlePID (int id)
 
void setGenParticleP (double p)
 
void setGenParticlePID (int id)
 
void setIDonCaloSurface (int id, int ical, int last, int pdgID, double p)
 
bool storeTrack () const
 
void storeTrack (bool v)
 can only be set to true, cannot be reset to false! More...
 
virtual ~TrackInformation ()
 

Private Member Functions

 TrackInformation ()
 

Private Attributes

bool caloIDChecked_
 
double caloSurfaceParticleP_
 
int caloSurfaceParticlePID_
 
bool flagAncestor_
 
double genParticleP_
 
int genParticlePID_
 
bool hasHits_
 
int idCaloVolume_
 
int idLastVolume_
 
int idOnCaloSurface_
 
bool isGeneratedSecondary_
 
bool isInHistory_
 
bool isPrimary_
 
bool storeTrack_
 

Friends

class NewTrackAction
 

Detailed Description

Definition at line 8 of file TrackInformation.h.

Constructor & Destructor Documentation

virtual TrackInformation::~TrackInformation ( )
inlinevirtual

Definition at line 11 of file TrackInformation.h.

11 {}
TrackInformation::TrackInformation ( )
inlineprivate

Definition at line 71 of file TrackInformation.h.

71  :G4VUserTrackInformation(),storeTrack_(false),isPrimary_(false),
72  hasHits_(false),isGeneratedSecondary_(false),isInHistory_(false),
double caloSurfaceParticleP_

Member Function Documentation

bool TrackInformation::caloIDChecked ( ) const
inline

Definition at line 42 of file TrackInformation.h.

References caloIDChecked_.

Referenced by Print(), and CaloTrkProcessing::update().

42 { return caloIDChecked_; }
double TrackInformation::caloSurfaceParticleP ( ) const
inline

Definition at line 46 of file TrackInformation.h.

References caloSurfaceParticleP_.

Referenced by NewTrackAction::addUserInfoToSecondary().

46 { return caloSurfaceParticleP_; }
double caloSurfaceParticleP_
int TrackInformation::caloSurfaceParticlePID ( ) const
inline

Definition at line 44 of file TrackInformation.h.

References caloSurfaceParticlePID_.

Referenced by NewTrackAction::addUserInfoToSecondary().

44 { return caloSurfaceParticlePID_; }
double TrackInformation::genParticleP ( ) const
inline

Definition at line 52 of file TrackInformation.h.

References genParticleP_.

Referenced by NewTrackAction::addUserInfoToSecondary(), and CaloSD::getResponseWt().

52 { return genParticleP_; }
int TrackInformation::genParticlePID ( ) const
inline
int TrackInformation::getIDCaloVolume ( ) const
inline

Definition at line 40 of file TrackInformation.h.

References idCaloVolume_.

Referenced by NewTrackAction::addUserInfoToSecondary(), and CaloTrkProcessing::update().

40 { return idCaloVolume_; }
int TrackInformation::getIDLastVolume ( ) const
inline

Definition at line 41 of file TrackInformation.h.

References idLastVolume_.

Referenced by NewTrackAction::addUserInfoToSecondary(), and CaloTrkProcessing::update().

41 { return idLastVolume_; }
int TrackInformation::getIDonCaloSurface ( ) const
inline
bool TrackInformation::hasHits ( ) const
inline

Definition at line 23 of file TrackInformation.h.

References hasHits_.

23 { return hasHits_; }
void TrackInformation::hasHits ( bool  v)
inline

Definition at line 24 of file TrackInformation.h.

References hasHits_, and findQualityFiles::v.

bool TrackInformation::isAncestor ( ) const
inline

Definition at line 32 of file TrackInformation.h.

References flagAncestor_.

32 { return flagAncestor_; }
bool TrackInformation::isGeneratedSecondary ( ) const
inline

Definition at line 26 of file TrackInformation.h.

References isGeneratedSecondary_.

26 { return isGeneratedSecondary_; }
void TrackInformation::isGeneratedSecondary ( bool  v)
inline
bool TrackInformation::isInHistory ( ) const
inline

Definition at line 29 of file TrackInformation.h.

References isInHistory_.

29 { return isInHistory_; }
bool TrackInformation::isPrimary ( ) const
inline
void TrackInformation::isPrimary ( bool  v)
inline

Definition at line 21 of file TrackInformation.h.

References isPrimary_, and findQualityFiles::v.

void TrackInformation::operator delete ( void *  TrackInformation)
inline

Definition at line 88 of file TrackInformation.h.

References TrackInformationAllocator.

89 { TrackInformationAllocator.FreeSingle((TrackInformation*) trkInfo); }
G4Allocator< TrackInformation > TrackInformationAllocator
void * TrackInformation::operator new ( size_t  )
inline

Definition at line 81 of file TrackInformation.h.

References TrackInformationAllocator.

82 {
83  void * trkInfo;
84  trkInfo = (void *) TrackInformationAllocator.MallocSingle();
85  return trkInfo;
86 }
G4Allocator< TrackInformation > TrackInformationAllocator
void TrackInformation::Print ( void  ) const
virtual

Definition at line 8 of file TrackInformation.cc.

References caloIDChecked(), getIDonCaloSurface(), hasHits_, idCaloVolume_, idLastVolume_, isGeneratedSecondary_, isInHistory_, isPrimary_, LogDebug, and storeTrack_.

8  {
9  LogDebug("TrackInformation") << " TrackInformation : storeTrack = " << storeTrack_ << "\n"
10  << " hasHits = " << hasHits_ << "\n"
11  << " isPrimary = " << isPrimary_ << "\n"
12  << " isGeneratedSecondary = " << isGeneratedSecondary_ << "\n"
13  << " isInHistory = " << isInHistory_ << "\n"
14  << " idOnCaloSurface = " << getIDonCaloSurface() << "\n"
15  << " caloIDChecked = " << caloIDChecked() << "\n"
16  << " idCaloVolume = " << idCaloVolume_ << "\n"
17  << " idLastVolume = " << idLastVolume_;
18 }
#define LogDebug(id)
int getIDonCaloSurface() const
bool caloIDChecked() const
void TrackInformation::putInHistory ( )
inline
void TrackInformation::setAncestor ( )
inline

Definition at line 33 of file TrackInformation.h.

References flagAncestor_.

33 { flagAncestor_ = true; }
void TrackInformation::setCaloIDChecked ( bool  f)
inline

Definition at line 43 of file TrackInformation.h.

References caloIDChecked_, and f.

Referenced by CaloTrkProcessing::update().

43 { caloIDChecked_ = f; }
double f[11][100]
void TrackInformation::setCaloSurfaceParticleP ( double  p)
inline
void TrackInformation::setCaloSurfaceParticlePID ( int  id)
inline

Definition at line 45 of file TrackInformation.h.

References caloSurfaceParticlePID_.

void TrackInformation::setGenParticleP ( double  p)
inline
void TrackInformation::setGenParticlePID ( int  id)
inline
void TrackInformation::setIDonCaloSurface ( int  id,
int  ical,
int  last,
int  pdgID,
double  p 
)
inline
bool TrackInformation::storeTrack ( ) const
inline
void TrackInformation::storeTrack ( bool  v)
inline

can only be set to true, cannot be reset to false!

Definition at line 17 of file TrackInformation.h.

References putInHistory(), storeTrack_, and findQualityFiles::v.

18  { if (v) storeTrack_ = v; if (v == true) putInHistory(); }

Friends And Related Function Documentation

friend class NewTrackAction
friend

Definition at line 76 of file TrackInformation.h.

Member Data Documentation

bool TrackInformation::caloIDChecked_
private

Definition at line 66 of file TrackInformation.h.

Referenced by caloIDChecked(), and setCaloIDChecked().

double TrackInformation::caloSurfaceParticleP_
private
int TrackInformation::caloSurfaceParticlePID_
private
bool TrackInformation::flagAncestor_
private

Definition at line 62 of file TrackInformation.h.

Referenced by isAncestor(), and setAncestor().

double TrackInformation::genParticleP_
private

Definition at line 68 of file TrackInformation.h.

Referenced by genParticleP(), and setGenParticleP().

int TrackInformation::genParticlePID_
private

Definition at line 67 of file TrackInformation.h.

Referenced by genParticlePID(), and setGenParticlePID().

bool TrackInformation::hasHits_
private

Definition at line 59 of file TrackInformation.h.

Referenced by hasHits(), and Print().

int TrackInformation::idCaloVolume_
private

Definition at line 64 of file TrackInformation.h.

Referenced by getIDCaloVolume(), Print(), and setIDonCaloSurface().

int TrackInformation::idLastVolume_
private

Definition at line 65 of file TrackInformation.h.

Referenced by getIDLastVolume(), Print(), and setIDonCaloSurface().

int TrackInformation::idOnCaloSurface_
private

Definition at line 63 of file TrackInformation.h.

Referenced by getIDonCaloSurface(), and setIDonCaloSurface().

bool TrackInformation::isGeneratedSecondary_
private

Definition at line 60 of file TrackInformation.h.

Referenced by isGeneratedSecondary(), and Print().

bool TrackInformation::isInHistory_
private

Definition at line 61 of file TrackInformation.h.

Referenced by isInHistory(), Print(), and putInHistory().

bool TrackInformation::isPrimary_
private

Definition at line 58 of file TrackInformation.h.

Referenced by isPrimary(), and Print().

bool TrackInformation::storeTrack_
private

Definition at line 57 of file TrackInformation.h.

Referenced by Print(), and storeTrack().