CMS 3D CMS Logo

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)
 
void Print () const override
 
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...
 
 ~TrackInformation () override
 

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

TrackInformation::~TrackInformation ( )
inlineoverride

Definition at line 10 of file TrackInformation.h.

References TrackInformation().

10 {}
TrackInformation::TrackInformation ( )
inlineprivate

Definition at line 91 of file TrackInformation.h.

Referenced by ~TrackInformation().

92  : G4VUserTrackInformation(),
93  storeTrack_(false),
94  isPrimary_(false),
95  hasHits_(false),
96  isGeneratedSecondary_(false),
97  isInHistory_(false),
98  flagAncestor_(false),
100  idCaloVolume_(-1),
101  idLastVolume_(-1),
102  caloIDChecked_(false),
103  genParticlePID_(-1),
105  genParticleP_(0),
107  hasCastorHit_(false),
108  castorHitPID_(0) {}
double caloSurfaceParticleP_

Member Function Documentation

bool TrackInformation::caloIDChecked ( ) const
inline

Definition at line 49 of file TrackInformation.h.

References caloIDChecked_.

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

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

Definition at line 53 of file TrackInformation.h.

References caloSurfaceParticleP_.

Referenced by NewTrackAction::addUserInfoToSecondary().

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

Definition at line 51 of file TrackInformation.h.

References caloSurfaceParticlePID_.

Referenced by NewTrackAction::addUserInfoToSecondary().

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

Definition at line 59 of file TrackInformation.h.

References genParticleP_.

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

59 { return genParticleP_; }
int TrackInformation::genParticlePID ( ) const
inline
int TrackInformation::getCastorHitPID ( ) const
inline

Definition at line 69 of file TrackInformation.h.

References castorHitPID_, and Print().

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

69 { return castorHitPID_; }
int TrackInformation::getIDCaloVolume ( ) const
inline

Definition at line 47 of file TrackInformation.h.

References idCaloVolume_.

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

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

Definition at line 48 of file TrackInformation.h.

References idLastVolume_.

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

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

Definition at line 26 of file TrackInformation.h.

References hasHits_.

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

Definition at line 27 of file TrackInformation.h.

References hasHits_, and findQualityFiles::v.

bool TrackInformation::isAncestor ( ) const
inline

Definition at line 35 of file TrackInformation.h.

References flagAncestor_.

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

Definition at line 29 of file TrackInformation.h.

References isGeneratedSecondary_.

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

Definition at line 32 of file TrackInformation.h.

References isInHistory_.

Referenced by CaloTrkProcessing::update().

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

Definition at line 24 of file TrackInformation.h.

References isPrimary_, and findQualityFiles::v.

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

Definition at line 120 of file TrackInformation.h.

References fpTrackInformationAllocator.

120  {
121  fpTrackInformationAllocator->FreeSingle((TrackInformation *)trkInfo);
122 }
G4ThreadLocal G4Allocator< TrackInformation > * fpTrackInformationAllocator
void * TrackInformation::operator new ( size_t  )
inline

Definition at line 114 of file TrackInformation.h.

References fpTrackInformationAllocator.

114  {
116  fpTrackInformationAllocator = new G4Allocator<TrackInformation>;
117  return (void *)fpTrackInformationAllocator->MallocSingle();
118 }
G4ThreadLocal G4Allocator< TrackInformation > * fpTrackInformationAllocator
void TrackInformation::Print ( void  ) const
override

Definition at line 8 of file TrackInformation.cc.

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

Referenced by getCastorHitPID().

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 36 of file TrackInformation.h.

References flagAncestor_.

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

Definition at line 50 of file TrackInformation.h.

References caloIDChecked_, and f.

Referenced by CaloTrkProcessing::update().

50 { caloIDChecked_ = f; }
double f[11][100]
void TrackInformation::setCaloSurfaceParticleP ( double  p)
inline
void TrackInformation::setCaloSurfaceParticlePID ( int  id)
inline
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 16 of file TrackInformation.h.

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

16  {
17  if (v)
18  storeTrack_ = v;
19  if (v == true)
20  putInHistory();
21  }

Friends And Related Function Documentation

friend class NewTrackAction
friend

Definition at line 109 of file TrackInformation.h.

Member Data Documentation

bool TrackInformation::caloIDChecked_
private

Definition at line 83 of file TrackInformation.h.

Referenced by caloIDChecked(), and setCaloIDChecked().

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

Definition at line 88 of file TrackInformation.h.

Referenced by getCastorHitPID(), and setCastorHitPID().

bool TrackInformation::flagAncestor_
private

Definition at line 79 of file TrackInformation.h.

Referenced by isAncestor(), and setAncestor().

double TrackInformation::genParticleP_
private

Definition at line 85 of file TrackInformation.h.

Referenced by genParticleP(), and setGenParticleP().

int TrackInformation::genParticlePID_
private

Definition at line 84 of file TrackInformation.h.

Referenced by genParticlePID(), and setGenParticlePID().

bool TrackInformation::hasCastorHit_
private

Definition at line 87 of file TrackInformation.h.

Referenced by hasCastorHit(), and setCastorHitPID().

bool TrackInformation::hasHits_
private

Definition at line 76 of file TrackInformation.h.

Referenced by hasHits(), and Print().

int TrackInformation::idCaloVolume_
private

Definition at line 81 of file TrackInformation.h.

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

int TrackInformation::idLastVolume_
private

Definition at line 82 of file TrackInformation.h.

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

int TrackInformation::idOnCaloSurface_
private

Definition at line 80 of file TrackInformation.h.

Referenced by getIDonCaloSurface(), and setIDonCaloSurface().

bool TrackInformation::isGeneratedSecondary_
private

Definition at line 77 of file TrackInformation.h.

Referenced by isGeneratedSecondary(), and Print().

bool TrackInformation::isInHistory_
private

Definition at line 78 of file TrackInformation.h.

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

bool TrackInformation::isPrimary_
private

Definition at line 75 of file TrackInformation.h.

Referenced by isPrimary(), and Print().

bool TrackInformation::storeTrack_
private

Definition at line 74 of file TrackInformation.h.

Referenced by Print(), and storeTrack().