#include <TimingSD.h>
Public Member Functions | |
void | clearHits () override |
void | EndOfEvent (G4HCofThisEvent *eventHC) override |
void | fillHits (edm::PSimHitContainer &, const std::string &) override |
void | Initialize (G4HCofThisEvent *HCE) override |
void | PrintAll () override |
bool | ProcessHits (G4Step *, G4TouchableHistory *) override |
TimingSD (const std::string &, const DDCompactView &, const SensitiveDetectorCatalog &, const edm::ParameterSet &, const SimTrackManager *) | |
~TimingSD () override | |
Public Member Functions inherited from SensitiveTkDetector | |
SensitiveTkDetector (const std::string &iname, const DDCompactView &cpv, const SensitiveDetectorCatalog &clg, edm::ParameterSet const &p) | |
Public Member Functions inherited from SensitiveDetector | |
void | EndOfEvent (G4HCofThisEvent *eventHC) override |
const std::vector< std::string > & | getNames () const |
void | Initialize (G4HCofThisEvent *eventHC) override |
SensitiveDetector (const std::string &iname, const DDCompactView &cpv, const SensitiveDetectorCatalog &, edm::ParameterSet const &p) | |
virtual uint32_t | setDetUnitId (const G4Step *step)=0 |
~SensitiveDetector () override | |
Public Member Functions inherited from Observer< const BeginOfEvent * > | |
Observer () | |
void | slotForUpdate (const BeginOfEvent * iT) |
virtual | ~Observer () |
Protected Member Functions | |
virtual bool | checkHit (const G4Step *, BscG4Hit *) |
const G4ThreeVector & | getGlobalEntryPoint () const |
const G4ThreeVector & | getLocalEntryPoint () const |
void | setCuts (double eCut, double historyCut) |
void | setTimeFactor (double) |
void | setToLocal (const G4StepPoint *stepPoint, const G4ThreeVector &globalPoint, G4ThreeVector &localPoint) |
void | update (const BeginOfEvent *) override |
This routine will be called when the appropriate signal arrives. More... | |
Protected Member Functions inherited from SensitiveDetector | |
TrackInformation * | cmsTrackInformation (const G4Track *aTrack) |
Local3DPoint | ConvertToLocal3DPoint (const G4ThreeVector &point) const |
Local3DPoint | FinalStepPosition (const G4Step *step, coordinates) const |
Local3DPoint | InitialStepPosition (const G4Step *step, coordinates) const |
Local3DPoint | LocalPostStepPosition (const G4Step *step) const |
Local3DPoint | LocalPreStepPosition (const G4Step *step) const |
void | NaNTrap (const G4Step *step) const |
void | setNames (const std::vector< std::string > &) |
Private Member Functions | |
void | createNewHit (const G4Step *) |
void | getStepInfo (const G4Step *) |
bool | hitExists (const G4Step *) |
void | storeHit (BscG4Hit *) |
void | updateHit () |
Private Attributes | |
BscG4Hit * | currentHit |
float | edeposit |
float | edepositEM |
float | edepositHAD |
double | energyCut |
double | energyHistoryCut |
int | hcID |
G4ThreeVector | hitPoint |
G4ThreeVector | hitPointExit |
G4ThreeVector | hitPointLocal |
G4ThreeVector | hitPointLocalExit |
double | incidentEnergy |
const G4StepPoint * | postStepPoint |
const G4StepPoint * | preStepPoint |
uint32_t | previousUnitID |
int | primaryID |
int | primID |
TrackingSlaveSD * | slave |
G4ProcessTypeEnumerator * | theEnumerator |
BscG4HitCollection * | theHC |
const SimTrackManager * | theManager |
const G4Track * | theTrack |
double | timeFactor |
float | tof |
int | tsID |
double | tSlice |
int | tSliceID |
uint32_t | unitID |
Additional Inherited Members | |
Protected Types inherited from SensitiveDetector | |
enum | coordinates { WorldCoordinates, LocalCoordinates } |
Definition at line 29 of file TimingSD.h.
TimingSD::TimingSD | ( | const std::string & | , |
const DDCompactView & | , | ||
const SensitiveDetectorCatalog & | , | ||
const edm::ParameterSet & | , | ||
const SimTrackManager * | |||
) |
Definition at line 40 of file TimingSD.cc.
References slave, and theEnumerator.
|
override |
|
protectedvirtual |
Reimplemented in Bcm1fSD, and PltSD.
Definition at line 189 of file TimingSD.cc.
References objects.autophobj::float, hitPoint, hitPointLocal, hitPointLocalExit, incidentEnergy, invdeg, invgev, preStepPoint, primaryID, G4ProcessTypeEnumerator::processId(), BscG4Hit::setEntry(), BscG4Hit::setEntryLocalP(), BscG4Hit::setExitLocalP(), BscG4Hit::setIncidentEnergy(), BscG4Hit::setPabs(), BscG4Hit::setParentId(), BscG4Hit::setParticleType(), BscG4Hit::setPhiAtEntry(), BscG4Hit::setProcessId(), BscG4Hit::setThetaAtEntry(), BscG4Hit::setTof(), BscG4Hit::setTrackID(), BscG4Hit::setVertexPosition(), theEnumerator, theTrack, and tof.
Referenced by hitExists().
|
overridevirtual |
Implements SensitiveDetector.
Definition at line 346 of file TimingSD.cc.
References TrackingSlaveSD::Initialize(), and slave.
Referenced by update().
|
private |
Definition at line 228 of file TimingSD.cc.
References currentHit, hitPoint, hitPointLocal, hitPointLocalExit, incidentEnergy, invdeg, invgev, preStepPoint, primaryID, G4ProcessTypeEnumerator::processId(), BscG4Hit::setEntry(), BscG4Hit::setEntryLocalP(), BscG4Hit::setExitLocalP(), BscG4Hit::setIncidentEnergy(), BscG4Hit::setPabs(), BscG4Hit::setParentId(), BscG4Hit::setParticleType(), BscG4Hit::setPhiAtEntry(), BscG4Hit::setProcessId(), BscG4Hit::setThetaAtEntry(), BscG4Hit::setTimeSlice(), BscG4Hit::setTof(), BscG4Hit::setTrackID(), BscG4Hit::setUnitID(), BscG4Hit::setVertexPosition(), storeHit(), theEnumerator, theTrack, tof, tSlice, tSliceID, unitID, and updateHit().
Referenced by getGlobalEntryPoint(), and ProcessHits().
|
override |
Definition at line 308 of file TimingSD.cc.
References SensitiveDetector::ConvertToLocal3DPoint(), BscG4Hit::getEnergyLoss(), BscG4Hit::getEntryLocalP(), BscG4Hit::getExitLocalP(), BscG4Hit::getPabs(), BscG4Hit::getParticleType(), BscG4Hit::getPhiAtEntry(), BscG4Hit::getProcessId(), BscG4Hit::getThetaAtEntry(), BscG4Hit::getTof(), BscG4Hit::getTrackID(), BscG4Hit::getUnitID(), nhits, TrackingSlaveSD::processHits(), slave, and theHC.
|
overridevirtual |
Implements SensitiveTkDetector.
Definition at line 337 of file TimingSD.cc.
References TrackingSlaveSD::hits(), TrackingSlaveSD::name(), and slave.
|
inlineprotected |
Definition at line 70 of file TimingSD.h.
References createNewHit(), getStepInfo(), hitExists(), hitPoint, storeHit(), and updateHit().
Referenced by FastTimerSD::setDetUnitId().
|
inlineprotected |
Definition at line 69 of file TimingSD.h.
References hitPointLocal.
Referenced by Bcm1fSD::checkHit(), PltSD::checkHit(), and FastTimerSD::setDetUnitId().
|
private |
Definition at line 111 of file TimingSD.cc.
References SensitiveDetector::cmsTrackInformation(), edeposit, edepositEM, edepositHAD, energyCut, energyHistoryCut, objects.autophobj::float, hitPoint, hitPointExit, hitPointLocal, hitPointLocalExit, incidentEnergy, info(), createfilelist::int, invgev, invns, G4TrackToParticleID::isGammaElectronPositron(), postStepPoint, preStepPoint, primaryID, TrackInformation::putInHistory(), SensitiveDetector::setDetUnitId(), setToLocal(), TrackInformation::storeTrack(), theTrack, timeFactor, tof, tSlice, tSliceID, and unitID.
Referenced by getGlobalEntryPoint(), and ProcessHits().
|
private |
Definition at line 161 of file TimingSD.cc.
References checkHit(), currentHit, runEdmFileComparison::found, BscG4Hit::getTimeSliceID(), BscG4Hit::getUnitID(), previousUnitID, theHC, tsID, tSliceID, unitID, and updateHit().
Referenced by getGlobalEntryPoint(), and ProcessHits().
|
override |
Definition at line 59 of file TimingSD.cc.
References ecaldqm::collectionName, energyCut, energyHistoryCut, GeV, hcID, primID, theHC, timeFactor, and tsID.
|
override |
|
overridevirtual |
Implements SensitiveDetector.
Definition at line 99 of file TimingSD.cc.
References createNewHit(), edeposit, f, getStepInfo(), and hitExists().
|
protected |
Definition at line 87 of file TimingSD.cc.
References energyCut, energyHistoryCut, and GeV.
Referenced by Bcm1fSD::Bcm1fSD(), and PltSD::PltSD().
|
protected |
Definition at line 77 of file TimingSD.cc.
References timeFactor.
Referenced by FastTimerSD::FastTimerSD(), and MtdSD::MtdSD().
|
protected |
Definition at line 299 of file TimingSD.cc.
Referenced by getStepInfo().
|
private |
Definition at line 217 of file TimingSD.cc.
Referenced by createNewHit(), and getGlobalEntryPoint().
|
overrideprotectedvirtual |
This routine will be called when the appropriate signal arrives.
Implements Observer< const BeginOfEvent * >.
Definition at line 341 of file TimingSD.cc.
References clearHits(), and LogDebug.
Referenced by progressbar.ProgressBar::__next__(), MatrixUtil.Matrix::__setitem__(), MatrixUtil.Steps::__setitem__(), Vispa.Gui.VispaWidget.VispaWidget::autosize(), Vispa.Views.LineDecayView.LineDecayContainer::createObject(), Vispa.Views.LineDecayView.LineDecayContainer::deselectAllObjects(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::deselectAllWidgets(), Vispa.Gui.VispaWidget.VispaWidget::enableAutosizing(), progressbar.ProgressBar::finish(), Vispa.Gui.MenuWidget.MenuWidget::leaveEvent(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::mouseMoveEvent(), Vispa.Gui.MenuWidget.MenuWidget::mouseMoveEvent(), Vispa.Views.LineDecayView.LineDecayContainer::mouseMoveEvent(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::mouseReleaseEvent(), Vispa.Views.LineDecayView.LineDecayContainer::objectMoved(), MatrixUtil.Steps::overwrite(), Vispa.Views.LineDecayView.LineDecayContainer::removeObject(), Vispa.Gui.ConnectableWidget.ConnectableWidget::removePorts(), Vispa.Gui.FindDialog.FindDialog::reset(), Vispa.Gui.PortConnection.PointToPointConnection::select(), Vispa.Gui.VispaWidget.VispaWidget::select(), Vispa.Views.LineDecayView.LineDecayContainer::select(), Vispa.Gui.VispaWidget.VispaWidget::setText(), Vispa.Gui.VispaWidget.VispaWidget::setTitle(), Vispa.Gui.ZoomableWidget.ZoomableWidget::setZoom(), Vispa.Views.LineDecayView.LineDecayContainer::setZoom(), and Vispa.Gui.PortConnection.PointToPointConnection::updateConnection().
|
private |
Definition at line 282 of file TimingSD.cc.
References BscG4Hit::addEnergyDeposit(), currentHit, edeposit, edepositEM, edepositHAD, postStepPoint, previousUnitID, primaryID, primID, tsID, tSliceID, and unitID.
Referenced by createNewHit(), getGlobalEntryPoint(), and hitExists().
|
private |
Definition at line 85 of file TimingSD.h.
Referenced by createNewHit(), hitExists(), and updateHit().
|
private |
Definition at line 111 of file TimingSD.h.
Referenced by getStepInfo(), ProcessHits(), and updateHit().
|
private |
Definition at line 112 of file TimingSD.h.
Referenced by getStepInfo(), and updateHit().
|
private |
Definition at line 112 of file TimingSD.h.
Referenced by getStepInfo(), and updateHit().
|
private |
Definition at line 106 of file TimingSD.h.
Referenced by getStepInfo(), Initialize(), and setCuts().
|
private |
Definition at line 107 of file TimingSD.h.
Referenced by getStepInfo(), Initialize(), and setCuts().
|
private |
Definition at line 93 of file TimingSD.h.
Referenced by Initialize().
|
private |
Definition at line 98 of file TimingSD.h.
Referenced by checkHit(), createNewHit(), getGlobalEntryPoint(), and getStepInfo().
|
private |
Definition at line 99 of file TimingSD.h.
Referenced by getStepInfo().
|
private |
Definition at line 100 of file TimingSD.h.
Referenced by checkHit(), createNewHit(), getLocalEntryPoint(), and getStepInfo().
|
private |
Definition at line 101 of file TimingSD.h.
Referenced by checkHit(), createNewHit(), and getStepInfo().
|
private |
Definition at line 109 of file TimingSD.h.
Referenced by checkHit(), createNewHit(), and getStepInfo().
|
private |
Definition at line 88 of file TimingSD.h.
Referenced by getStepInfo(), and updateHit().
|
private |
Definition at line 87 of file TimingSD.h.
Referenced by checkHit(), createNewHit(), and getStepInfo().
|
private |
Definition at line 90 of file TimingSD.h.
Referenced by hitExists(), and updateHit().
|
private |
Definition at line 95 of file TimingSD.h.
Referenced by checkHit(), createNewHit(), getStepInfo(), and updateHit().
|
private |
Definition at line 92 of file TimingSD.h.
Referenced by Initialize(), storeHit(), and updateHit().
|
private |
Definition at line 79 of file TimingSD.h.
Referenced by clearHits(), EndOfEvent(), fillHits(), TimingSD(), and ~TimingSD().
|
private |
Definition at line 80 of file TimingSD.h.
Referenced by checkHit(), createNewHit(), TimingSD(), and ~TimingSD().
|
private |
Definition at line 83 of file TimingSD.h.
Referenced by EndOfEvent(), hitExists(), Initialize(), PrintAll(), and storeHit().
|
private |
Definition at line 82 of file TimingSD.h.
|
private |
Definition at line 86 of file TimingSD.h.
Referenced by checkHit(), createNewHit(), and getStepInfo().
|
private |
Definition at line 104 of file TimingSD.h.
Referenced by getStepInfo(), Initialize(), and setTimeFactor().
|
private |
Definition at line 110 of file TimingSD.h.
Referenced by checkHit(), createNewHit(), and getStepInfo().
|
private |
Definition at line 94 of file TimingSD.h.
Referenced by hitExists(), Initialize(), and updateHit().
|
private |
Definition at line 103 of file TimingSD.h.
Referenced by createNewHit(), and getStepInfo().
|
private |
Definition at line 96 of file TimingSD.h.
Referenced by createNewHit(), getStepInfo(), hitExists(), and updateHit().
|
private |
Definition at line 90 of file TimingSD.h.
Referenced by createNewHit(), getStepInfo(), hitExists(), and updateHit().