#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 & | name, |
const edm::EventSetup & | es, | ||
const SensitiveDetectorCatalog & | clg, | ||
const edm::ParameterSet & | p, | ||
const SimTrackManager * | manager | ||
) |
|
override |
Definition at line 66 of file TimingSD.cc.
References slave, and theEnumerator.
|
protectedvirtual |
Reimplemented in Bcm1fSD, and PltSD.
Definition at line 221 of file TimingSD.cc.
References dqmMemoryStats::float, hitPoint, hitPointLocal, hitPointLocalExit, incidentEnergy, invdeg, invgev, preStepPoint, primaryID, G4ProcessTypeEnumerator::processId(), theEnumerator, theTrack, and tof.
Referenced by hitExists().
|
overridevirtual |
Implements SensitiveDetector.
Definition at line 371 of file TimingSD.cc.
References TrackingSlaveSD::Initialize(), and slave.
Referenced by update().
|
private |
Definition at line 259 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 ProcessHits().
|
override |
Definition at line 324 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 360 of file TimingSD.cc.
References TrackingSlaveSD::hits(), TrackingSlaveSD::name(), and slave.
|
inlineprotected |
|
inlineprotected |
Definition at line 66 of file TimingSD.h.
References hitPointLocal.
Referenced by Bcm1fSD::checkHit(), and PltSD::checkHit().
|
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, SensitiveDetector::setDetUnitId(), setToLocal(), mathSSE::sqrt(), theTrack, timeFactor, tof, tSlice, tSliceID, and unitID.
Referenced by 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 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 MtdSD::MtdSD().
|
protected |
|
private |
|
overrideprotectedvirtual |
This routine will be called when the appropriate signal arrives.
Implements Observer< const BeginOfEvent * >.
Definition at line 366 of file TimingSD.cc.
References clearHits(), and LogDebug.
Referenced by progressbar.ProgressBar::__next__(), MatrixUtil.Matrix::__setitem__(), MatrixUtil.Steps::__setitem__(), progressbar.ProgressBar::finish(), and MatrixUtil.Steps::overwrite().
|
private |
Definition at line 305 of file TimingSD.cc.
References BscG4Hit::addEnergyDeposit(), currentHit, edeposit, edepositEM, edepositHAD, postStepPoint, previousUnitID, primaryID, primID, tsID, tSliceID, and unitID.
Referenced by createNewHit(), 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().