#include <SimG4Core/Notification/interface/TrackInformation.h>
Public Member Functions | |
bool | caloIDChecked () const |
int | getIDCaloVolume () const |
int | getIDLastVolume () const |
int | getIDonCaloSurface () const |
void | hasHits (bool v) |
bool | hasHits () const |
void | isGeneratedSecondary (bool v) |
bool | isGeneratedSecondary () const |
bool | isInHistory () const |
void | isPrimary (bool v) |
bool | isPrimary () const |
void | operator delete (void *TrackInformation) |
void * | operator new (size_t) |
virtual void | Print () const |
void | putInHistory () |
void | setCaloIDChecked (bool f) |
void | setIDonCaloSurface (int id, int ical, int last) |
void | storeTrack (bool v) |
can only be set to true, cannot be reset to false! | |
bool | storeTrack () const |
virtual | ~TrackInformation () |
Private Member Functions | |
TrackInformation () | |
Private Attributes | |
bool | caloIDChecked_ |
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] |
TrackInformation::TrackInformation | ( | ) | [inline, private] |
Definition at line 54 of file TrackInformation.h.
00054 :G4VUserTrackInformation(),storeTrack_(false),isPrimary_(false), 00055 hasHits_(false),isGeneratedSecondary_(false),isInHistory_(false), 00056 idOnCaloSurface_(0),idCaloVolume_(-1),idLastVolume_(-1), 00057 caloIDChecked_(false) {}
bool TrackInformation::caloIDChecked | ( | ) | const [inline] |
Definition at line 38 of file TrackInformation.h.
References caloIDChecked_.
Referenced by Print(), and CaloTrkProcessing::update().
00038 { return caloIDChecked_; }
int TrackInformation::getIDCaloVolume | ( | ) | const [inline] |
Definition at line 36 of file TrackInformation.h.
References idCaloVolume_.
Referenced by NewTrackAction::addUserInfoToSecondary(), and CaloTrkProcessing::update().
00036 { return idCaloVolume_; }
int TrackInformation::getIDLastVolume | ( | ) | const [inline] |
Definition at line 37 of file TrackInformation.h.
References idLastVolume_.
Referenced by NewTrackAction::addUserInfoToSecondary(), and CaloTrkProcessing::update().
00037 { return idLastVolume_; }
int TrackInformation::getIDonCaloSurface | ( | ) | const [inline] |
Definition at line 33 of file TrackInformation.h.
References idOnCaloSurface_.
Referenced by NewTrackAction::addUserInfoToSecondary(), CaloSD::getStepInfo(), DreamSD::getStepInfo(), Print(), CaloSD::ProcessHits(), HCalSD::setTrackID(), CaloTrkProcessing::update(), and CaloSD::update().
00033 { return idOnCaloSurface_; }
bool TrackInformation::hasHits | ( | ) | const [inline] |
Definition at line 27 of file TrackInformation.h.
References isGeneratedSecondary_.
00027 { isGeneratedSecondary_ = v; }
bool TrackInformation::isGeneratedSecondary | ( | ) | const [inline] |
Definition at line 26 of file TrackInformation.h.
References isGeneratedSecondary_.
00026 { return isGeneratedSecondary_; }
bool TrackInformation::isInHistory | ( | ) | const [inline] |
Definition at line 29 of file TrackInformation.h.
References isInHistory_.
00029 { return isInHistory_; }
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(), and KillSecondariesTrackAction::update().
00020 { return isPrimary_; }
Definition at line 70 of file TrackInformation.h.
References TrackInformationAllocator.
00071 { TrackInformationAllocator.FreeSingle((TrackInformation*) trkInfo); }
void * TrackInformation::operator new | ( | size_t | ) | [inline] |
Definition at line 63 of file TrackInformation.h.
References TrackInformationAllocator.
00064 { 00065 void * trkInfo; 00066 trkInfo = (void *) TrackInformationAllocator.MallocSingle(); 00067 return trkInfo; 00068 }
void TrackInformation::Print | ( | ) | const [virtual] |
Definition at line 11 of file TrackInformation.cc.
References caloIDChecked(), getIDonCaloSurface(), hasHits_, idCaloVolume_, idLastVolume_, isGeneratedSecondary_, isInHistory_, isPrimary_, LogDebug, and storeTrack_.
00011 { 00012 LogDebug("TrackInformation") << " TrackInformation : storeTrack = " << storeTrack_ << "\n" 00013 << " hasHits = " << hasHits_ << "\n" 00014 << " isPrimary = " << isPrimary_ << "\n" 00015 << " isGeneratedSecondary = " << isGeneratedSecondary_ << "\n" 00016 << " isInHistory = " << isInHistory_ << "\n" 00017 << " idOnCaloSurface = " << getIDonCaloSurface() << "\n" 00018 << " caloIDChecked = " << caloIDChecked() << "\n" 00019 << " idCaloVolume = " << idCaloVolume_ << "\n" 00020 << " idLastVolume = " << idLastVolume_; 00021 }
void TrackInformation::putInHistory | ( | ) | [inline] |
Definition at line 30 of file TrackInformation.h.
References isInHistory_.
Referenced by NewTrackAction::addUserInfoToPrimary(), NewTrackAction::addUserInfoToSecondary(), CaloSD::createNewHit(), storeTrack(), CaloTrkProcessing::update(), and TkAccumulatingSensitiveDetector::update().
00030 { isInHistory_= true; }
Definition at line 39 of file TrackInformation.h.
References caloIDChecked_.
Referenced by CaloTrkProcessing::update().
00039 { caloIDChecked_ = f; }
Definition at line 34 of file TrackInformation.h.
References idCaloVolume_, idLastVolume_, and idOnCaloSurface_.
Referenced by NewTrackAction::addUserInfoToSecondary(), and CaloTrkProcessing::update().
00035 { idOnCaloSurface_ = id; idCaloVolume_ = ical; idLastVolume_ = last; }
can only be set to true, cannot be reset to false!
Definition at line 17 of file TrackInformation.h.
References putInHistory(), and storeTrack_.
00018 { 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(), TkAccumulatingSensitiveDetector::update(), and SaveSimTrack::update().
00015 { return storeTrack_; }
friend class NewTrackAction [friend] |
Definition at line 58 of file TrackInformation.h.
bool TrackInformation::caloIDChecked_ [private] |
Definition at line 51 of file TrackInformation.h.
Referenced by caloIDChecked(), and setCaloIDChecked().
bool TrackInformation::hasHits_ [private] |
int TrackInformation::idCaloVolume_ [private] |
Definition at line 49 of file TrackInformation.h.
Referenced by getIDCaloVolume(), Print(), and setIDonCaloSurface().
int TrackInformation::idLastVolume_ [private] |
Definition at line 50 of file TrackInformation.h.
Referenced by getIDLastVolume(), Print(), and setIDonCaloSurface().
int TrackInformation::idOnCaloSurface_ [private] |
Definition at line 48 of file TrackInformation.h.
Referenced by getIDonCaloSurface(), and setIDonCaloSurface().
bool TrackInformation::isGeneratedSecondary_ [private] |
Definition at line 46 of file TrackInformation.h.
Referenced by isGeneratedSecondary(), and Print().
bool TrackInformation::isInHistory_ [private] |
Definition at line 47 of file TrackInformation.h.
Referenced by isInHistory(), Print(), and putInHistory().
bool TrackInformation::isPrimary_ [private] |
bool TrackInformation::storeTrack_ [private] |