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 getIDfineCalo () 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 setIDfineCalo (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 idFineCalo_
 
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::~TrackInformation ( )
inlineoverride

Definition at line 10 of file TrackInformation.h.

10 {}

◆ TrackInformation()

TrackInformation::TrackInformation ( )
inlineprivate

Definition at line 94 of file TrackInformation.h.

95  : G4VUserTrackInformation(),
96  storeTrack_(false),
97  isPrimary_(false),
98  hasHits_(false),
99  isGeneratedSecondary_(false),
100  isInHistory_(false),
101  flagAncestor_(false),
102  idOnCaloSurface_(0),
103  idCaloVolume_(-1),
104  idLastVolume_(-1),
105  caloIDChecked_(false),
106  idFineCalo_(-1),
107  genParticlePID_(-1),
109  genParticleP_(0),
111  hasCastorHit_(false),
112  castorHitPID_(0) {}

Member Function Documentation

◆ caloIDChecked()

bool TrackInformation::caloIDChecked ( ) const
inline

Definition at line 49 of file TrackInformation.h.

49 { return caloIDChecked_; }

References caloIDChecked_.

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

◆ caloSurfaceParticleP()

double TrackInformation::caloSurfaceParticleP ( ) const
inline

Definition at line 53 of file TrackInformation.h.

53 { return caloSurfaceParticleP_; }

References caloSurfaceParticleP_.

Referenced by NewTrackAction::addUserInfoToSecondary().

◆ caloSurfaceParticlePID()

int TrackInformation::caloSurfaceParticlePID ( ) const
inline

Definition at line 51 of file TrackInformation.h.

51 { return caloSurfaceParticlePID_; }

References caloSurfaceParticlePID_.

Referenced by NewTrackAction::addUserInfoToSecondary().

◆ genParticleP()

double TrackInformation::genParticleP ( ) const
inline

Definition at line 61 of file TrackInformation.h.

61 { return genParticleP_; }

References genParticleP_.

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

◆ genParticlePID()

int TrackInformation::genParticlePID ( ) const
inline

◆ getCastorHitPID()

int TrackInformation::getCastorHitPID ( ) const
inline

Definition at line 71 of file TrackInformation.h.

71 { return castorHitPID_; }

References castorHitPID_.

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

◆ getIDCaloVolume()

int TrackInformation::getIDCaloVolume ( ) const
inline

Definition at line 47 of file TrackInformation.h.

47 { return idCaloVolume_; }

References idCaloVolume_.

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

◆ getIDfineCalo()

int TrackInformation::getIDfineCalo ( ) const
inline

◆ getIDLastVolume()

int TrackInformation::getIDLastVolume ( ) const
inline

Definition at line 48 of file TrackInformation.h.

48 { return idLastVolume_; }

References idLastVolume_.

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

◆ getIDonCaloSurface()

int TrackInformation::getIDonCaloSurface ( ) const
inline

◆ hasCastorHit()

bool TrackInformation::hasCastorHit ( ) const
inline

◆ hasHits() [1/2]

bool TrackInformation::hasHits ( ) const
inline

Definition at line 26 of file TrackInformation.h.

26 { return hasHits_; }

References hasHits_.

◆ hasHits() [2/2]

void TrackInformation::hasHits ( bool  v)
inline

Definition at line 27 of file TrackInformation.h.

27 { hasHits_ = v; }

References hasHits_, and findQualityFiles::v.

◆ isAncestor()

bool TrackInformation::isAncestor ( ) const
inline

Definition at line 35 of file TrackInformation.h.

35 { return flagAncestor_; }

References flagAncestor_.

◆ isGeneratedSecondary() [1/2]

bool TrackInformation::isGeneratedSecondary ( ) const
inline

Definition at line 29 of file TrackInformation.h.

29 { return isGeneratedSecondary_; }

References isGeneratedSecondary_.

◆ isGeneratedSecondary() [2/2]

void TrackInformation::isGeneratedSecondary ( bool  v)
inline

Definition at line 30 of file TrackInformation.h.

References isGeneratedSecondary_, and findQualityFiles::v.

◆ isInHistory()

bool TrackInformation::isInHistory ( ) const
inline

Definition at line 32 of file TrackInformation.h.

32 { return isInHistory_; }

References isInHistory_.

Referenced by CaloTrkProcessing::update().

◆ isPrimary() [1/2]

bool TrackInformation::isPrimary ( ) const
inline

◆ isPrimary() [2/2]

void TrackInformation::isPrimary ( bool  v)
inline

Definition at line 24 of file TrackInformation.h.

24 { isPrimary_ = v; }

References isPrimary_, and findQualityFiles::v.

◆ operator delete()

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

Definition at line 124 of file TrackInformation.h.

124  {
125  fpTrackInformationAllocator->FreeSingle((TrackInformation *)trkInfo);
126 }

References fpTrackInformationAllocator.

◆ operator new()

void * TrackInformation::operator new ( size_t  )
inline

Definition at line 118 of file TrackInformation.h.

118  {
120  fpTrackInformationAllocator = new G4Allocator<TrackInformation>;
121  return (void *)fpTrackInformationAllocator->MallocSingle();
122 }

References fpTrackInformationAllocator.

◆ Print()

void TrackInformation::Print ( void  ) const
override

Definition at line 8 of file TrackInformation.cc.

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 }

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

◆ putInHistory()

void TrackInformation::putInHistory ( )
inline

◆ setAncestor()

void TrackInformation::setAncestor ( )
inline

Definition at line 36 of file TrackInformation.h.

36 { flagAncestor_ = true; }

References flagAncestor_.

◆ setCaloIDChecked()

void TrackInformation::setCaloIDChecked ( bool  f)
inline

Definition at line 50 of file TrackInformation.h.

50 { caloIDChecked_ = f; }

References caloIDChecked_, and f.

Referenced by CaloTrkProcessing::update().

◆ setCaloSurfaceParticleP()

void TrackInformation::setCaloSurfaceParticleP ( double  p)
inline

Definition at line 54 of file TrackInformation.h.

References caloSurfaceParticleP_, and AlCaHLTBitMon_ParallelJobs::p.

◆ setCaloSurfaceParticlePID()

void TrackInformation::setCaloSurfaceParticlePID ( int  id)
inline

Definition at line 52 of file TrackInformation.h.

References caloSurfaceParticlePID_, and triggerObjects_cff::id.

◆ setCastorHitPID()

void TrackInformation::setCastorHitPID ( const int  pid)
inline

Definition at line 67 of file TrackInformation.h.

67  {
68  hasCastorHit_ = true;
69  castorHitPID_ = pid;
70  }

References castorHitPID_, and hasCastorHit_.

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

◆ setGenParticleP()

void TrackInformation::setGenParticleP ( double  p)
inline

◆ setGenParticlePID()

void TrackInformation::setGenParticlePID ( int  id)
inline

◆ setIDfineCalo()

void TrackInformation::setIDfineCalo ( int  id)
inline

◆ setIDonCaloSurface()

void TrackInformation::setIDonCaloSurface ( int  id,
int  ical,
int  last,
int  pdgID,
double  p 
)
inline

◆ storeTrack() [1/2]

bool TrackInformation::storeTrack ( ) const
inline

◆ storeTrack() [2/2]

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.

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

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

Friends And Related Function Documentation

◆ NewTrackAction

friend class NewTrackAction
friend

Definition at line 113 of file TrackInformation.h.

Member Data Documentation

◆ caloIDChecked_

bool TrackInformation::caloIDChecked_
private

Definition at line 85 of file TrackInformation.h.

Referenced by caloIDChecked(), and setCaloIDChecked().

◆ caloSurfaceParticleP_

double TrackInformation::caloSurfaceParticleP_
private

◆ caloSurfaceParticlePID_

int TrackInformation::caloSurfaceParticlePID_
private

◆ castorHitPID_

int TrackInformation::castorHitPID_
private

Definition at line 91 of file TrackInformation.h.

Referenced by getCastorHitPID(), and setCastorHitPID().

◆ flagAncestor_

bool TrackInformation::flagAncestor_
private

Definition at line 81 of file TrackInformation.h.

Referenced by isAncestor(), and setAncestor().

◆ genParticleP_

double TrackInformation::genParticleP_
private

Definition at line 88 of file TrackInformation.h.

Referenced by genParticleP(), and setGenParticleP().

◆ genParticlePID_

int TrackInformation::genParticlePID_
private

Definition at line 87 of file TrackInformation.h.

Referenced by genParticlePID(), and setGenParticlePID().

◆ hasCastorHit_

bool TrackInformation::hasCastorHit_
private

Definition at line 90 of file TrackInformation.h.

Referenced by hasCastorHit(), and setCastorHitPID().

◆ hasHits_

bool TrackInformation::hasHits_
private

Definition at line 78 of file TrackInformation.h.

Referenced by hasHits(), and Print().

◆ idCaloVolume_

int TrackInformation::idCaloVolume_
private

Definition at line 83 of file TrackInformation.h.

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

◆ idFineCalo_

int TrackInformation::idFineCalo_
private

Definition at line 86 of file TrackInformation.h.

Referenced by getIDfineCalo(), and setIDfineCalo().

◆ idLastVolume_

int TrackInformation::idLastVolume_
private

Definition at line 84 of file TrackInformation.h.

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

◆ idOnCaloSurface_

int TrackInformation::idOnCaloSurface_
private

Definition at line 82 of file TrackInformation.h.

Referenced by getIDfineCalo(), getIDonCaloSurface(), and setIDonCaloSurface().

◆ isGeneratedSecondary_

bool TrackInformation::isGeneratedSecondary_
private

Definition at line 79 of file TrackInformation.h.

Referenced by isGeneratedSecondary(), and Print().

◆ isInHistory_

bool TrackInformation::isInHistory_
private

Definition at line 80 of file TrackInformation.h.

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

◆ isPrimary_

bool TrackInformation::isPrimary_
private

Definition at line 77 of file TrackInformation.h.

Referenced by isPrimary(), and Print().

◆ storeTrack_

bool TrackInformation::storeTrack_
private

Definition at line 76 of file TrackInformation.h.

Referenced by Print(), and storeTrack().

TrackInformation::castorHitPID_
int castorHitPID_
Definition: TrackInformation.h:91
TrackInformation::idFineCalo_
int idFineCalo_
Definition: TrackInformation.h:86
TrackInformation::getIDonCaloSurface
int getIDonCaloSurface() const
Definition: TrackInformation.h:39
TrackInformation::hasCastorHit_
bool hasCastorHit_
Definition: TrackInformation.h:90
TrackInformation::caloSurfaceParticleP_
double caloSurfaceParticleP_
Definition: TrackInformation.h:88
f
double f[11][100]
Definition: MuScleFitUtils.cc:78
TrackInformation::flagAncestor_
bool flagAncestor_
Definition: TrackInformation.h:81
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
TrackInformation::idCaloVolume_
int idCaloVolume_
Definition: TrackInformation.h:83
TrackInformation::putInHistory
void putInHistory()
Definition: TrackInformation.h:33
findQualityFiles.v
v
Definition: findQualityFiles.py:179
TrackInformation::idOnCaloSurface_
int idOnCaloSurface_
Definition: TrackInformation.h:82
TrackInformation::genParticleP_
double genParticleP_
Definition: TrackInformation.h:88
TrackInformation::storeTrack_
bool storeTrack_
Definition: TrackInformation.h:76
dqmdumpme.last
last
Definition: dqmdumpme.py:56
TrackInformation::idLastVolume_
int idLastVolume_
Definition: TrackInformation.h:84
fpTrackInformationAllocator
G4ThreadLocal G4Allocator< TrackInformation > * fpTrackInformationAllocator
Definition: TrackInformation.cc:6
TrackInformation::caloSurfaceParticlePID_
int caloSurfaceParticlePID_
Definition: TrackInformation.h:87
TrackInformation::hasHits_
bool hasHits_
Definition: TrackInformation.h:78
TrackInformation::isGeneratedSecondary_
bool isGeneratedSecondary_
Definition: TrackInformation.h:79
LogDebug
#define LogDebug(id)
Definition: MessageLogger.h:670
TrackInformation::isPrimary_
bool isPrimary_
Definition: TrackInformation.h:77
TrackInformation
Definition: TrackInformation.h:8
TrackInformation::isInHistory_
bool isInHistory_
Definition: TrackInformation.h:80
TrackInformation::genParticlePID_
int genParticlePID_
Definition: TrackInformation.h:87
triggerObjects_cff.id
id
Definition: triggerObjects_cff.py:31
TrackInformation::caloIDChecked
bool caloIDChecked() const
Definition: TrackInformation.h:49
TrackInformation::caloIDChecked_
bool caloIDChecked_
Definition: TrackInformation.h:85