#include <TrackInformation.h>
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! | |
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 |
Definition at line 8 of file TrackInformation.h.
virtual TrackInformation::~TrackInformation | ( | ) | [inline, virtual] |
Definition at line 11 of file TrackInformation.h.
{}
TrackInformation::TrackInformation | ( | ) | [inline, private] |
Definition at line 71 of file TrackInformation.h.
:G4VUserTrackInformation(),storeTrack_(false),isPrimary_(false), hasHits_(false),isGeneratedSecondary_(false),isInHistory_(false), flagAncestor_(false),idOnCaloSurface_(0),idCaloVolume_(-1), idLastVolume_(-1),caloIDChecked_(false), genParticlePID_(-1), caloSurfaceParticlePID_(0), genParticleP_(0), caloSurfaceParticleP_(0) {}
bool TrackInformation::caloIDChecked | ( | ) | const [inline] |
Definition at line 42 of file TrackInformation.h.
References caloIDChecked_.
Referenced by Print(), and CaloTrkProcessing::update().
{ return caloIDChecked_; }
double TrackInformation::caloSurfaceParticleP | ( | ) | const [inline] |
Definition at line 46 of file TrackInformation.h.
References caloSurfaceParticleP_.
Referenced by NewTrackAction::addUserInfoToSecondary().
{ return caloSurfaceParticleP_; }
int TrackInformation::caloSurfaceParticlePID | ( | ) | const [inline] |
Definition at line 44 of file TrackInformation.h.
References caloSurfaceParticlePID_.
Referenced by NewTrackAction::addUserInfoToSecondary().
{ return caloSurfaceParticlePID_; }
double TrackInformation::genParticleP | ( | ) | const [inline] |
Definition at line 52 of file TrackInformation.h.
References genParticleP_.
Referenced by NewTrackAction::addUserInfoToSecondary(), and CaloSD::getResponseWt().
{ return genParticleP_; }
int TrackInformation::genParticlePID | ( | ) | const [inline] |
Definition at line 50 of file TrackInformation.h.
References genParticlePID_.
Referenced by NewTrackAction::addUserInfoToSecondary(), and CaloSD::getResponseWt().
{ return genParticlePID_; }
int TrackInformation::getIDCaloVolume | ( | ) | const [inline] |
Definition at line 40 of file TrackInformation.h.
References idCaloVolume_.
Referenced by NewTrackAction::addUserInfoToSecondary(), and CaloTrkProcessing::update().
{ return idCaloVolume_; }
int TrackInformation::getIDLastVolume | ( | ) | const [inline] |
Definition at line 41 of file TrackInformation.h.
References idLastVolume_.
Referenced by NewTrackAction::addUserInfoToSecondary(), and CaloTrkProcessing::update().
{ return idLastVolume_; }
int TrackInformation::getIDonCaloSurface | ( | ) | const [inline] |
Definition at line 36 of file TrackInformation.h.
References idOnCaloSurface_.
Referenced by NewTrackAction::addUserInfoToSecondary(), DreamSD::getStepInfo(), CaloSD::getTrackID(), Print(), ZdcSD::setTrackID(), HCalSD::setTrackID(), CastorSD::setTrackID(), CaloTrkProcessing::update(), and CaloSD::update().
{ return idOnCaloSurface_; }
void TrackInformation::hasHits | ( | bool | v | ) | [inline] |
bool TrackInformation::hasHits | ( | ) | const [inline] |
bool TrackInformation::isAncestor | ( | ) | const [inline] |
Definition at line 32 of file TrackInformation.h.
References flagAncestor_.
{ return flagAncestor_; }
bool TrackInformation::isGeneratedSecondary | ( | ) | const [inline] |
Definition at line 26 of file TrackInformation.h.
References isGeneratedSecondary_.
{ return isGeneratedSecondary_; }
void TrackInformation::isGeneratedSecondary | ( | bool | v | ) | [inline] |
Definition at line 27 of file TrackInformation.h.
References isGeneratedSecondary_, and v.
{ isGeneratedSecondary_ = v; }
bool TrackInformation::isInHistory | ( | ) | const [inline] |
bool TrackInformation::isPrimary | ( | ) | const [inline] |
Definition at line 20 of file TrackInformation.h.
References isPrimary_.
Referenced by NewTrackAction::addUserInfoToPrimary(), NewTrackAction::addUserInfoToSecondary(), HCalSD::getEnergyDeposit(), ECalSD::getEnergyDeposit(), StackingAction::isItFromPrimary(), StackingAction::isItPrimaryDecayProductOrConversion(), TrackingAction::isNewPrimary(), KillSecondariesTrackAction::update(), and CaloSD::update().
{ return isPrimary_; }
void TrackInformation::isPrimary | ( | bool | v | ) | [inline] |
void TrackInformation::operator delete | ( | void * | TrackInformation | ) | [inline] |
Definition at line 88 of file TrackInformation.h.
References TrackInformationAllocator.
{ TrackInformationAllocator.FreeSingle((TrackInformation*) trkInfo); }
void * TrackInformation::operator new | ( | size_t | ) | [inline] |
Definition at line 81 of file TrackInformation.h.
References TrackInformationAllocator.
{ void * trkInfo; trkInfo = (void *) TrackInformationAllocator.MallocSingle(); return trkInfo; }
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_.
{ LogDebug("TrackInformation") << " TrackInformation : storeTrack = " << storeTrack_ << "\n" << " hasHits = " << hasHits_ << "\n" << " isPrimary = " << isPrimary_ << "\n" << " isGeneratedSecondary = " << isGeneratedSecondary_ << "\n" << " isInHistory = " << isInHistory_ << "\n" << " idOnCaloSurface = " << getIDonCaloSurface() << "\n" << " caloIDChecked = " << caloIDChecked() << "\n" << " idCaloVolume = " << idCaloVolume_ << "\n" << " idLastVolume = " << idLastVolume_; }
void TrackInformation::putInHistory | ( | ) | [inline] |
Definition at line 30 of file TrackInformation.h.
References isInHistory_.
Referenced by NewTrackAction::addUserInfoToPrimary(), NewTrackAction::addUserInfoToSecondary(), CaloSD::createNewHit(), PLTSensitiveDetector::ProcessHits(), storeTrack(), CaloTrkProcessing::update(), and TkAccumulatingSensitiveDetector::update().
{ isInHistory_= true; }
void TrackInformation::setAncestor | ( | ) | [inline] |
Definition at line 33 of file TrackInformation.h.
References flagAncestor_.
{ flagAncestor_ = true; }
void TrackInformation::setCaloIDChecked | ( | bool | f | ) | [inline] |
Definition at line 43 of file TrackInformation.h.
References caloIDChecked_, and f.
Referenced by CaloTrkProcessing::update().
{ caloIDChecked_ = f; }
void TrackInformation::setCaloSurfaceParticleP | ( | double | p | ) | [inline] |
Definition at line 47 of file TrackInformation.h.
References caloSurfaceParticleP_, and L1TEmulatorMonitor_cff::p.
{ caloSurfaceParticleP_ = p; }
void TrackInformation::setCaloSurfaceParticlePID | ( | int | id | ) | [inline] |
Definition at line 45 of file TrackInformation.h.
References caloSurfaceParticlePID_.
{ caloSurfaceParticlePID_ = id; }
void TrackInformation::setGenParticleP | ( | double | p | ) | [inline] |
Definition at line 53 of file TrackInformation.h.
References genParticleP_, and L1TEmulatorMonitor_cff::p.
Referenced by NewTrackAction::addUserInfoToPrimary(), and NewTrackAction::addUserInfoToSecondary().
{ genParticleP_ = p; }
void TrackInformation::setGenParticlePID | ( | int | id | ) | [inline] |
Definition at line 51 of file TrackInformation.h.
References genParticlePID_.
Referenced by NewTrackAction::addUserInfoToPrimary(), and NewTrackAction::addUserInfoToSecondary().
{ genParticlePID_ = id; }
void TrackInformation::setIDonCaloSurface | ( | int | id, |
int | ical, | ||
int | last, | ||
int | pdgID, | ||
double | p | ||
) | [inline] |
Definition at line 37 of file TrackInformation.h.
References caloSurfaceParticleP_, caloSurfaceParticlePID_, idCaloVolume_, idLastVolume_, idOnCaloSurface_, prof2calltree::last, and L1TEmulatorMonitor_cff::p.
Referenced by NewTrackAction::addUserInfoToSecondary(), and CaloTrkProcessing::update().
{ idOnCaloSurface_ = id; idCaloVolume_ = ical; idLastVolume_ = last; caloSurfaceParticlePID_ = pdgID; caloSurfaceParticleP_= p;}
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 v.
{ if (v) storeTrack_ = v; if (v == true) putInHistory(); }
bool TrackInformation::storeTrack | ( | ) | const [inline] |
Definition at line 15 of file TrackInformation.h.
References storeTrack_.
Referenced by NewTrackAction::addUserInfoToPrimary(), NewTrackAction::addUserInfoToSecondary(), MuonSensitiveDetector::createHit(), TkAccumulatingSensitiveDetector::createHit(), CaloSD::createNewHit(), PLTSensitiveDetector::ProcessHits(), TkAccumulatingSensitiveDetector::update(), and SaveSimTrack::update().
{ return storeTrack_; }
friend class NewTrackAction [friend] |
Definition at line 76 of file TrackInformation.h.
bool TrackInformation::caloIDChecked_ [private] |
Definition at line 66 of file TrackInformation.h.
Referenced by caloIDChecked(), and setCaloIDChecked().
double TrackInformation::caloSurfaceParticleP_ [private] |
Definition at line 68 of file TrackInformation.h.
Referenced by caloSurfaceParticleP(), setCaloSurfaceParticleP(), and setIDonCaloSurface().
int TrackInformation::caloSurfaceParticlePID_ [private] |
Definition at line 67 of file TrackInformation.h.
Referenced by caloSurfaceParticlePID(), setCaloSurfaceParticlePID(), and setIDonCaloSurface().
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.
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().