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 getCastorHitPID () const
 
int getIDCaloVolume () const
 
int getIDLastVolume () const
 
int getIDonCaloSurface () const
 
bool hasCastorHit () 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 setCastorHitPID (const int pid)
 
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_
 
int castorHitPID_
 
bool flagAncestor_
 
double genParticleP_
 
int genParticlePID_
 
bool hasCastorHit_
 
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 80 of file TrackInformation.h.

80  :G4VUserTrackInformation(),storeTrack_(false),isPrimary_(false),
81  hasHits_(false),isGeneratedSecondary_(false),isInHistory_(false),
85  hasCastorHit_(false), castorHitPID_(0) {}
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::getCastorHitPID ( ) const
inline

Definition at line 59 of file TrackInformation.h.

References castorHitPID_.

Referenced by NewTrackAction::addUserInfoToSecondary(), and CastorSD::getEnergyDeposit().

59 { return castorHitPID_; }
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::hasCastorHit ( ) const
inline

Definition at line 57 of file TrackInformation.h.

References hasCastorHit_.

Referenced by NewTrackAction::addUserInfoToSecondary(), and CastorSD::getEnergyDeposit().

57 { return hasCastorHit_; }
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 98 of file TrackInformation.h.

References fpTrackInformationAllocator.

99 {
100  fpTrackInformationAllocator->FreeSingle((TrackInformation*) trkInfo);
101 }
G4ThreadLocal G4Allocator< TrackInformation > * fpTrackInformationAllocator
void * TrackInformation::operator new ( size_t  )
inline

Definition at line 91 of file TrackInformation.h.

References fpTrackInformationAllocator.

92 {
94  new G4Allocator<TrackInformation>;
95  return (void*)fpTrackInformationAllocator->MallocSingle();
96 }
G4ThreadLocal G4Allocator< TrackInformation > * fpTrackInformationAllocator
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::setCastorHitPID ( const int  pid)
inline
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 86 of file TrackInformation.h.

Member Data Documentation

bool TrackInformation::caloIDChecked_
private

Definition at line 72 of file TrackInformation.h.

Referenced by caloIDChecked(), and setCaloIDChecked().

double TrackInformation::caloSurfaceParticleP_
private
int TrackInformation::caloSurfaceParticlePID_
private
int TrackInformation::castorHitPID_
private

Definition at line 77 of file TrackInformation.h.

Referenced by getCastorHitPID(), and setCastorHitPID().

bool TrackInformation::flagAncestor_
private

Definition at line 68 of file TrackInformation.h.

Referenced by isAncestor(), and setAncestor().

double TrackInformation::genParticleP_
private

Definition at line 74 of file TrackInformation.h.

Referenced by genParticleP(), and setGenParticleP().

int TrackInformation::genParticlePID_
private

Definition at line 73 of file TrackInformation.h.

Referenced by genParticlePID(), and setGenParticlePID().

bool TrackInformation::hasCastorHit_
private

Definition at line 76 of file TrackInformation.h.

Referenced by hasCastorHit(), and setCastorHitPID().

bool TrackInformation::hasHits_
private

Definition at line 65 of file TrackInformation.h.

Referenced by hasHits(), and Print().

int TrackInformation::idCaloVolume_
private

Definition at line 70 of file TrackInformation.h.

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

int TrackInformation::idLastVolume_
private

Definition at line 71 of file TrackInformation.h.

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

int TrackInformation::idOnCaloSurface_
private

Definition at line 69 of file TrackInformation.h.

Referenced by getIDonCaloSurface(), and setIDonCaloSurface().

bool TrackInformation::isGeneratedSecondary_
private

Definition at line 66 of file TrackInformation.h.

Referenced by isGeneratedSecondary(), and Print().

bool TrackInformation::isInHistory_
private

Definition at line 67 of file TrackInformation.h.

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

bool TrackInformation::isPrimary_
private

Definition at line 64 of file TrackInformation.h.

Referenced by isPrimary(), and Print().

bool TrackInformation::storeTrack_
private

Definition at line 63 of file TrackInformation.h.

Referenced by Print(), and storeTrack().