#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 edm::EventSetup &, const SensitiveDetectorCatalog &, const edm::ParameterSet &, const SimTrackManager *) | |
~TimingSD () override | |
Public Member Functions inherited from SensitiveTkDetector | |
SensitiveTkDetector (const std::string &iname, const edm::EventSetup &es, 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 |
bool | isCaloSD () const |
SensitiveDetector (const std::string &iname, const edm::EventSetup &es, const SensitiveDetectorCatalog &, edm::ParameterSet const &p, bool calo) | |
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 edm::EventSetup & | , | ||
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 220 of file TimingSD.cc.
References dqmMemoryStats::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 370 of file TimingSD.cc.
References TrackingSlaveSD::Initialize(), and slave.
Referenced by update().
|
private |
Definition at line 258 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 323 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(), dqmiolumiharvest::j, nhits, TrackingSlaveSD::processHits(), slave, and theHC.
|
overridevirtual |
Implements SensitiveTkDetector.
Definition at line 359 of file TimingSD.cc.
References TrackingSlaveSD::hits(), TrackingSlaveSD::name(), and slave.
|
inlineprotected |
Definition at line 67 of file TimingSD.h.
References createNewHit(), getStepInfo(), hitExists(), hitPoint, storeHit(), and updateHit().
Referenced by FastTimerSD::setDetUnitId().
|
inlineprotected |
Definition at line 66 of file TimingSD.h.
References hitPointLocal.
Referenced by Bcm1fSD::checkHit(), PltSD::checkHit(), and FastTimerSD::setDetUnitId().
|
private |
Definition at line 120 of file TimingSD.cc.
References SensitiveDetector::cmsTrackInformation(), MillePedeFileConverter_cfg::e, edeposit, edepositEM, edepositHAD, energyCut, energyHistoryCut, dqmMemoryStats::float, hitPoint, hitPointExit, hitPointLocal, hitPointLocalExit, incidentEnergy, info(), createfilelist::int, invgev, invns, G4TrackToParticleID::isGammaElectronPositron(), LogDebug, postStepPoint, funct::pow(), preStepPoint, primaryID, TrackInformation::putInHistory(), SensitiveDetector::setDetUnitId(), setToLocal(), mathSSE::sqrt(), TrackInformation::storeTrack(), theTrack, timeFactor, tof, tSlice, tSliceID, and unitID.
Referenced by getGlobalEntryPoint(), and ProcessHits().
|
private |
Definition at line 189 of file TimingSD.cc.
References checkHit(), currentHit, newFWLiteAna::found, BscG4Hit::getTimeSliceID(), BscG4Hit::getUnitID(), dqmiolumiharvest::j, previousUnitID, theHC, tsID, tSliceID, unitID, and updateHit().
Referenced by getGlobalEntryPoint(), and ProcessHits().
|
override |
Definition at line 71 of file TimingSD.cc.
References bysipixelclustmulteventfilter_cfi::collectionName, energyCut, energyHistoryCut, GeV, hcID, primID, theHC, timeFactor, and tsID.
|
override |
|
overridevirtual |
Implements SensitiveDetector.
Definition at line 109 of file TimingSD.cc.
References createNewHit(), edeposit, f, getStepInfo(), and hitExists().
|
protected |
Definition at line 96 of file TimingSD.cc.
References energyCut, energyHistoryCut, and GeV.
Referenced by Bcm1fSD::Bcm1fSD(), and PltSD::PltSD().
|
protected |
Definition at line 86 of file TimingSD.cc.
References timeFactor, and heppy_batch::val.
Referenced by FastTimerSD::FastTimerSD(), and MtdSD::MtdSD().
|
protected |
Definition at line 318 of file TimingSD.cc.
Referenced by getStepInfo().
|
private |
Definition at line 247 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 365 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 304 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 82 of file TimingSD.h.
Referenced by createNewHit(), hitExists(), and updateHit().
|
private |
Definition at line 108 of file TimingSD.h.
Referenced by getStepInfo(), ProcessHits(), and updateHit().
|
private |
Definition at line 109 of file TimingSD.h.
Referenced by getStepInfo(), and updateHit().
|
private |
Definition at line 109 of file TimingSD.h.
Referenced by getStepInfo(), and updateHit().
|
private |
Definition at line 103 of file TimingSD.h.
Referenced by getStepInfo(), Initialize(), and setCuts().
|
private |
Definition at line 104 of file TimingSD.h.
Referenced by getStepInfo(), Initialize(), and setCuts().
|
private |
Definition at line 90 of file TimingSD.h.
Referenced by Initialize().
|
private |
Definition at line 95 of file TimingSD.h.
Referenced by checkHit(), createNewHit(), getGlobalEntryPoint(), and getStepInfo().
|
private |
Definition at line 96 of file TimingSD.h.
Referenced by getStepInfo().
|
private |
Definition at line 97 of file TimingSD.h.
Referenced by checkHit(), createNewHit(), getLocalEntryPoint(), and getStepInfo().
|
private |
Definition at line 98 of file TimingSD.h.
Referenced by checkHit(), createNewHit(), and getStepInfo().
|
private |
Definition at line 106 of file TimingSD.h.
Referenced by checkHit(), createNewHit(), and getStepInfo().
|
private |
Definition at line 85 of file TimingSD.h.
Referenced by getStepInfo(), and updateHit().
|
private |
Definition at line 84 of file TimingSD.h.
Referenced by checkHit(), createNewHit(), and getStepInfo().
|
private |
Definition at line 87 of file TimingSD.h.
Referenced by hitExists(), and updateHit().
|
private |
Definition at line 92 of file TimingSD.h.
Referenced by checkHit(), createNewHit(), getStepInfo(), and updateHit().
|
private |
Definition at line 89 of file TimingSD.h.
Referenced by Initialize(), storeHit(), and updateHit().
|
private |
Definition at line 76 of file TimingSD.h.
Referenced by clearHits(), EndOfEvent(), fillHits(), TimingSD(), and ~TimingSD().
|
private |
Definition at line 77 of file TimingSD.h.
Referenced by checkHit(), createNewHit(), TimingSD(), and ~TimingSD().
|
private |
Definition at line 80 of file TimingSD.h.
Referenced by EndOfEvent(), hitExists(), Initialize(), PrintAll(), and storeHit().
|
private |
Definition at line 79 of file TimingSD.h.
|
private |
Definition at line 83 of file TimingSD.h.
Referenced by checkHit(), createNewHit(), and getStepInfo().
|
private |
Definition at line 101 of file TimingSD.h.
Referenced by getStepInfo(), Initialize(), and setTimeFactor().
|
private |
Definition at line 107 of file TimingSD.h.
Referenced by checkHit(), createNewHit(), and getStepInfo().
|
private |
Definition at line 91 of file TimingSD.h.
Referenced by hitExists(), Initialize(), and updateHit().
|
private |
Definition at line 100 of file TimingSD.h.
Referenced by createNewHit(), and getStepInfo().
|
private |
Definition at line 93 of file TimingSD.h.
Referenced by createNewHit(), getStepInfo(), hitExists(), and updateHit().
|
private |
Definition at line 87 of file TimingSD.h.
Referenced by createNewHit(), getStepInfo(), hitExists(), and updateHit().