#include <BscSD.h>
Public Member Functions | |
BscSD (const std::string &, const DDCompactView &, const SensitiveDetectorCatalog &, edm::ParameterSet const &, const SimTrackManager *) | |
void | clear () override |
void | clearHits () override |
void | DrawAll () override |
void | EndOfEvent (G4HCofThisEvent *eventHC) override |
void | fillHits (edm::PSimHitContainer &, const std::string &) override |
double | getEnergyDeposit (const G4Step *step) |
void | Initialize (G4HCofThisEvent *HCE) override |
void | PrintAll () override |
bool | ProcessHits (G4Step *, G4TouchableHistory *) override |
uint32_t | setDetUnitId (const G4Step *) override |
~BscSD () 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) | |
~SensitiveDetector () override | |
Public Member Functions inherited from Observer< const BeginOfRun * > | |
Observer () | |
void | slotForUpdate (const BeginOfRun * iT) |
virtual | ~Observer () |
Public Member Functions inherited from Observer< const BeginOfEvent * > | |
Observer () | |
void | slotForUpdate (const BeginOfEvent * iT) |
virtual | ~Observer () |
Public Member Functions inherited from Observer< const EndOfEvent * > | |
Observer () | |
void | slotForUpdate (const EndOfEvent * iT) |
virtual | ~Observer () |
Protected Attributes | |
float | edepositEM |
float | edepositHAD |
G4int | emPDG |
G4int | epPDG |
G4int | gammaPDG |
Private Member Functions | |
void | CreateNewHit () |
void | GetStepInfo (G4Step *aStep) |
G4bool | HitExists () |
void | ResetForNewPrimary () |
G4ThreeVector | SetToLocal (const G4ThreeVector &global) |
G4ThreeVector | SetToLocalExit (const G4ThreeVector &globalPoint) |
void | StoreHit (BscG4Hit *) |
void | Summarize () |
void | update (const BeginOfRun *) override |
This routine will be called when the appropriate signal arrives. More... | |
void | update (const BeginOfEvent *) override |
This routine will be called when the appropriate signal arrives. More... | |
void | update (const ::EndOfEvent *) override |
void | UpdateHit () |
Private Attributes | |
BscG4Hit * | currentHit |
G4VPhysicalVolume * | currentPV |
float | edeposit |
float | Eloss |
G4ThreeVector | entrancePoint |
int | eventno |
G4ThreeVector | exitPoint |
G4int | hcID |
G4ThreeVector | hitPoint |
G4ThreeVector | hitPointExit |
G4ThreeVector | hitPointLocal |
G4ThreeVector | hitPointLocalExit |
float | incidentEnergy |
BscNumberingScheme * | numberingScheme |
float | Pabs |
int | ParentId |
short | ParticleType |
float | PhiAtEntry |
G4StepPoint * | postStepPoint |
G4StepPoint * | preStepPoint |
uint32_t | previousUnitID |
G4int | primaryID |
G4int | primID |
TrackingSlaveSD * | slave |
G4ThreeVector | theEntryPoint |
G4ThreeVector | theExitPoint |
BscG4HitCollection * | theHC |
const SimTrackManager * | theManager |
float | ThetaAtEntry |
G4Track * | theTrack |
float | Tof |
G4int | tsID |
G4double | tSlice |
G4int | tSliceID |
uint32_t | unitID |
float | Vx |
float | Vy |
float | Vz |
float | X |
float | Y |
float | Z |
Additional Inherited Members | |
Protected Types inherited from SensitiveDetector | |
enum | coordinates { WorldCoordinates, LocalCoordinates } |
Protected Member Functions inherited from SensitiveDetector | |
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 > &) |
Protected Member Functions inherited from Observer< const EndOfEvent * > | |
virtual void | update (const EndOfEvent *)=0 |
This routine will be called when the appropriate signal arrives. More... | |
BscSD::BscSD | ( | const std::string & | name, |
const DDCompactView & | cpv, | ||
const SensitiveDetectorCatalog & | clg, | ||
edm::ParameterSet const & | p, | ||
const SimTrackManager * | manager | ||
) |
Definition at line 45 of file BscSD.cc.
References edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), numberingScheme, and slave.
|
override |
|
overridevirtual |
Implements SensitiveDetector.
Definition at line 395 of file BscSD.cc.
References TrackingSlaveSD::Initialize(), and slave.
Referenced by update().
|
private |
Definition at line 237 of file BscSD.cc.
References currentHit, currentPV, Eloss, hitPoint, hitPointLocal, hitPointLocalExit, incidentEnergy, LogDebug, Pabs, ParentId, ParticleType, PhiAtEntry, primaryID, BscG4Hit::setEnergyLoss(), BscG4Hit::setEntry(), BscG4Hit::setEntryLocalP(), BscG4Hit::setExitLocalP(), BscG4Hit::setIncidentEnergy(), BscG4Hit::setPabs(), BscG4Hit::setParentId(), BscG4Hit::setParticleType(), BscG4Hit::setPhiAtEntry(), BscG4Hit::setThetaAtEntry(), BscG4Hit::setTimeSlice(), BscG4Hit::setTof(), BscG4Hit::setTrackID(), BscG4Hit::setUnitID(), BscG4Hit::setVx(), BscG4Hit::setVy(), BscG4Hit::setVz(), BscG4Hit::setX(), BscG4Hit::setY(), BscG4Hit::setZ(), StoreHit(), ThetaAtEntry, theTrack, Tof, tSlice, tSliceID, unitID, UpdateHit(), Vx, Vy, Vz, X, Y, and Z.
Referenced by ProcessHits().
|
override |
Definition at line 330 of file BscSD.cc.
References BscG4Hit::getEnergyLoss(), BscG4Hit::getEntry(), BscG4Hit::getPabs(), BscG4Hit::getParticleType(), BscG4Hit::getPhiAtEntry(), BscG4Hit::getThetaAtEntry(), BscG4Hit::getTof(), BscG4Hit::getTrackID(), BscG4Hit::getUnitID(), LogDebug, TrackingSlaveSD::processHits(), slave, Summarize(), and theHC.
|
overridevirtual |
Implements SensitiveTkDetector.
Definition at line 371 of file BscSD.cc.
References TrackingSlaveSD::hits(), TrackingSlaveSD::name(), and slave.
double BscSD::getEnergyDeposit | ( | const G4Step * | step | ) |
Definition at line 81 of file BscSD.cc.
Referenced by GetStepInfo().
|
private |
Definition at line 122 of file BscSD.cc.
References currentPV, edeposit, edepositEM, edepositHAD, Eloss, emPDG, epPDG, gammaPDG, getEnergyDeposit(), GeV, hitPoint, hitPointExit, hitPointLocal, hitPointLocalExit, createfilelist::int, LogDebug, Pabs, ParentId, ParticleType, PhiAtEntry, postStepPoint, preStepPoint, primaryID, setDetUnitId(), ThetaAtEntry, theTrack, Tof, tSlice, tSliceID, unitID, Vx, Vy, Vz, X, Y, and Z.
Referenced by ProcessHits().
|
private |
Definition at line 173 of file BscSD.cc.
References currentHit, runEdmFileComparison::found, BscG4Hit::getTimeSliceID(), BscG4Hit::getTrackID(), BscG4Hit::getUnitID(), previousUnitID, primaryID, primID, ResetForNewPrimary(), theHC, tsID, tSliceID, unitID, and UpdateHit().
Referenced by ProcessHits().
|
override |
Definition at line 85 of file BscSD.cc.
References ecaldqm::collectionName, hcID, LogDebug, primID, theHC, and tsID.
|
override |
|
overridevirtual |
Implements SensitiveDetector.
Definition at line 101 of file BscSD.cc.
References CreateNewHit(), edeposit, GetStepInfo(), HitExists(), LogDebug, and theHC.
|
private |
Definition at line 218 of file BscSD.cc.
References entrancePoint, exitPoint, hitPoint, hitPointExit, incidentEnergy, preStepPoint, SetToLocal(), and SetToLocalExit().
Referenced by HitExists().
|
overridevirtual |
Implements SensitiveDetector.
Definition at line 169 of file BscSD.cc.
References BscNumberingScheme::getUnitID(), and numberingScheme.
Referenced by GetStepInfo().
|
private |
Definition at line 315 of file BscSD.cc.
References preStepPoint, and theEntryPoint.
Referenced by ResetForNewPrimary().
|
private |
Definition at line 322 of file BscSD.cc.
References postStepPoint, and theExitPoint.
Referenced by ResetForNewPrimary().
|
private |
Definition at line 226 of file BscSD.cc.
Referenced by CreateNewHit().
|
private |
|
overrideprivatevirtual |
This routine will be called when the appropriate signal arrives.
Implements Observer< const BeginOfRun * >.
Definition at line 382 of file BscSD.cc.
References emPDG, epPDG, gammaPDG, and HiggsValidation_cfi::particleName.
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().
|
overrideprivatevirtual |
This routine will be called when the appropriate signal arrives.
Implements Observer< const BeginOfEvent * >.
Definition at line 375 of file BscSD.cc.
References clearHits(), eventno, 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().
|
overrideprivate |
Definition at line 392 of file BscSD.cc.
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 295 of file BscSD.cc.
References BscG4Hit::addEnergyDeposit(), currentHit, edepositEM, edepositHAD, Eloss, LogDebug, postStepPoint, previousUnitID, primaryID, primID, BscG4Hit::setEnergyLoss(), tsID, tSliceID, and unitID.
Referenced by CreateNewHit(), and HitExists().
|
private |
Definition at line 93 of file BscSD.h.
Referenced by CreateNewHit(), HitExists(), and UpdateHit().
|
private |
Definition at line 95 of file BscSD.h.
Referenced by CreateNewHit(), and GetStepInfo().
|
private |
Definition at line 102 of file BscSD.h.
Referenced by GetStepInfo(), and ProcessHits().
|
protected |
Definition at line 126 of file BscSD.h.
Referenced by GetStepInfo(), and UpdateHit().
|
protected |
Definition at line 126 of file BscSD.h.
Referenced by GetStepInfo(), and UpdateHit().
|
private |
Definition at line 110 of file BscSD.h.
Referenced by CreateNewHit(), GetStepInfo(), and UpdateHit().
|
protected |
Definition at line 127 of file BscSD.h.
Referenced by GetStepInfo(), and update().
|
private |
Definition at line 81 of file BscSD.h.
Referenced by ResetForNewPrimary().
|
protected |
Definition at line 128 of file BscSD.h.
Referenced by GetStepInfo(), and update().
|
private |
Definition at line 81 of file BscSD.h.
Referenced by ResetForNewPrimary().
|
protected |
Definition at line 129 of file BscSD.h.
Referenced by GetStepInfo(), and update().
|
private |
Definition at line 88 of file BscSD.h.
Referenced by Initialize().
|
private |
Definition at line 104 of file BscSD.h.
Referenced by CreateNewHit(), GetStepInfo(), and ResetForNewPrimary().
|
private |
Definition at line 105 of file BscSD.h.
Referenced by GetStepInfo(), and ResetForNewPrimary().
|
private |
Definition at line 106 of file BscSD.h.
Referenced by CreateNewHit(), and GetStepInfo().
|
private |
Definition at line 107 of file BscSD.h.
Referenced by CreateNewHit(), and GetStepInfo().
|
private |
Definition at line 85 of file BscSD.h.
Referenced by CreateNewHit(), and ResetForNewPrimary().
|
private |
Definition at line 79 of file BscSD.h.
Referenced by BscSD(), setDetUnitId(), and ~BscSD().
|
private |
Definition at line 108 of file BscSD.h.
Referenced by CreateNewHit(), and GetStepInfo().
|
private |
Definition at line 116 of file BscSD.h.
Referenced by CreateNewHit(), and GetStepInfo().
|
private |
Definition at line 111 of file BscSD.h.
Referenced by CreateNewHit(), and GetStepInfo().
|
private |
Definition at line 114 of file BscSD.h.
Referenced by CreateNewHit(), and GetStepInfo().
|
private |
Definition at line 101 of file BscSD.h.
Referenced by GetStepInfo(), SetToLocalExit(), and UpdateHit().
|
private |
Definition at line 100 of file BscSD.h.
Referenced by GetStepInfo(), ResetForNewPrimary(), and SetToLocal().
|
private |
Definition at line 96 of file BscSD.h.
Referenced by HitExists(), and UpdateHit().
|
private |
Definition at line 97 of file BscSD.h.
Referenced by CreateNewHit(), GetStepInfo(), HitExists(), and UpdateHit().
|
private |
Definition at line 86 of file BscSD.h.
Referenced by HitExists(), Initialize(), StoreHit(), and UpdateHit().
|
private |
Definition at line 78 of file BscSD.h.
Referenced by BscSD(), clearHits(), EndOfEvent(), fillHits(), and ~BscSD().
|
private |
Definition at line 82 of file BscSD.h.
Referenced by SetToLocal().
|
private |
Definition at line 83 of file BscSD.h.
Referenced by SetToLocalExit().
|
private |
Definition at line 89 of file BscSD.h.
Referenced by EndOfEvent(), HitExists(), Initialize(), PrintAll(), ProcessHits(), and StoreHit().
|
private |
|
private |
Definition at line 113 of file BscSD.h.
Referenced by CreateNewHit(), and GetStepInfo().
|
private |
Definition at line 94 of file BscSD.h.
Referenced by CreateNewHit(), and GetStepInfo().
|
private |
Definition at line 109 of file BscSD.h.
Referenced by CreateNewHit(), and GetStepInfo().
|
private |
Definition at line 92 of file BscSD.h.
Referenced by HitExists(), Initialize(), and UpdateHit().
|
private |
Definition at line 98 of file BscSD.h.
Referenced by CreateNewHit(), and GetStepInfo().
|
private |
Definition at line 97 of file BscSD.h.
Referenced by CreateNewHit(), GetStepInfo(), HitExists(), and UpdateHit().
|
private |
Definition at line 96 of file BscSD.h.
Referenced by CreateNewHit(), GetStepInfo(), HitExists(), and UpdateHit().
|
private |
Definition at line 117 of file BscSD.h.
Referenced by CreateNewHit(), and GetStepInfo().
|
private |
Definition at line 117 of file BscSD.h.
Referenced by CreateNewHit(), and GetStepInfo().
|
private |
Definition at line 117 of file BscSD.h.
Referenced by CreateNewHit(), and GetStepInfo().
|
private |
Definition at line 118 of file BscSD.h.
Referenced by svgfig.Curve.Sample::__repr__(), CreateNewHit(), and GetStepInfo().
|
private |
Definition at line 118 of file BscSD.h.
Referenced by CreateNewHit(), and GetStepInfo().
|
private |
Definition at line 118 of file BscSD.h.
Referenced by CreateNewHit(), and GetStepInfo().