#include <TotemRPSD.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 *step, G4TouchableHistory *tHistory) override |
uint32_t | setDetUnitId (const G4Step *step) override |
TotemRPSD (const std::string &, const SensitiveDetectorCatalog &, edm::ParameterSet const &, const SimTrackManager *) | |
~TotemRPSD () override | |
Public Member Functions inherited from SensitiveTkDetector | |
SensitiveTkDetector (const std::string &iname, const SensitiveDetectorCatalog &clg) | |
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 SensitiveDetectorCatalog &, bool calo, const std::string &newcollname="") | |
~SensitiveDetector () override | |
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 Member Functions | |
void | update (const BeginOfEvent *) override |
This routine will be called when the appropriate signal arrives. More... | |
void | update (const ::EndOfEvent *) override |
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 > &) |
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... | |
Private Member Functions | |
void | createNewHit () |
void | printHitInfo () |
G4ThreeVector | setToLocal (const G4ThreeVector &globalPoint) |
void | stepInfo (const G4Step *aStep) |
void | storeHit (TotemRPG4Hit *) |
Private Attributes | |
TotemRPG4Hit * | currentHit_ = nullptr |
G4VPhysicalVolume * | currentPV_ = nullptr |
double | eloss_ = 0.0 |
int | eventno_ = 0 |
G4ThreeVector | exitPoint_ |
G4int | hcID_ = -1 |
G4ThreeVector | hitPoint_ |
double | incidentEnergy_ = 0.0 |
std::unique_ptr< TotemRPVDetectorOrganization > | numberingScheme_ |
double | pabs_ = 0.0 |
G4int | parentID_ = 0 |
short | particleType_ = 0 |
double | phiAtEntry_ = 0.0 |
G4StepPoint * | postStepPoint_ = nullptr |
G4StepPoint * | preStepPoint_ = nullptr |
G4int | primaryID_ = 0 |
std::unique_ptr< TrackingSlaveSD > | slave_ |
TotemRPG4HitCollection * | theHC_ = nullptr |
G4ThreeVector | theLocalEntryPoint_ |
G4ThreeVector | theLocalExitPoint_ |
double | thePx_ = 0.0 |
double | thePy_ = 0.0 |
double | thePz_ = 0.0 |
double | thetaAtEntry_ = 0.0 |
G4Track * | theTrack_ = nullptr |
double | tof_ = 0.0 |
G4double | tSlice_ = 0.0 |
G4int | tSliceID_ = 0 |
unsigned int | unitID_ = 0 |
int | verbosity_ |
double | vx_ = 0.0 |
double | vy_ = 0.0 |
double | vz_ = 0.0 |
Additional Inherited Members | |
Protected Types inherited from SensitiveDetector | |
enum | coordinates { WorldCoordinates, LocalCoordinates } |
Definition at line 30 of file TotemRPSD.h.
TotemRPSD::TotemRPSD | ( | const std::string & | pname, |
const SensitiveDetectorCatalog & | clg, | ||
edm::ParameterSet const & | p, | ||
const SimTrackManager * | manager | ||
) |
Definition at line 35 of file TotemRPSD.cc.
References bysipixelclustmulteventfilter_cfi::collectionName, edm::ParameterSet::getParameter(), numberingScheme_, AlCaHLTBitMon_ParallelJobs::p, unpackData-CaloStage2::pname, slave_, and verbosity_.
|
override |
Definition at line 56 of file TotemRPSD.cc.
|
overridevirtual |
Implements SensitiveDetector.
Definition at line 244 of file TotemRPSD.cc.
References slave_.
Referenced by update().
|
private |
Definition at line 161 of file TotemRPSD.cc.
References funct::abs(), currentHit_, eloss_, exitPoint_, hitPoint_, incidentEnergy_, pabs_, parentID_, particleType_, phiAtEntry_, primaryID_, rp_garage_position_, TotemRPG4Hit::setEnergyLoss(), TotemRPG4Hit::setEntry(), TotemRPG4Hit::setExit(), TotemRPG4Hit::setIncidentEnergy(), TotemRPG4Hit::setLocalEntry(), TotemRPG4Hit::setLocalExit(), TotemRPG4Hit::setP(), TotemRPG4Hit::setParentId(), TotemRPG4Hit::setParticleType(), TotemRPG4Hit::setPhiAtEntry(), TotemRPG4Hit::setPx(), TotemRPG4Hit::setPy(), TotemRPG4Hit::setPz(), TotemRPG4Hit::setThetaAtEntry(), TotemRPG4Hit::setTimeSlice(), TotemRPG4Hit::setTof(), TotemRPG4Hit::setTrackID(), TotemRPG4Hit::setUnitID(), TotemRPG4Hit::setVx(), TotemRPG4Hit::setVy(), TotemRPG4Hit::setVz(), storeHit(), theLocalEntryPoint_, theLocalExitPoint_, thePx_, thePy_, thePz_, thetaAtEntry_, tof_, tSlice_, unitID_, vx_, vy_, and vz_.
Referenced by ProcessHits().
|
override |
Definition at line 206 of file TotemRPSD.cc.
References TotemRPG4Hit::energyLoss(), mps_splice::entry, beamvalidation::exit(), createfilelist::int, dqmiolumiharvest::j, TotemRPG4Hit::localEntry(), TotemRPG4Hit::localExit(), TotemRPG4Hit::p(), TotemRPG4Hit::particleType(), TotemRPG4Hit::phiAtEntry(), slave_, theHC_, TotemRPG4Hit::thetaAtEntry(), TotemRPG4Hit::tof(), TotemRPG4Hit::trackID(), and TotemRPG4Hit::unitID().
|
overridevirtual |
Implements SensitiveTkDetector.
Definition at line 231 of file TotemRPSD.cc.
References DummyCfis::c, dqmiodumpmetadata::n, and slave_.
|
override |
Definition at line 58 of file TotemRPSD.cc.
References bysipixelclustmulteventfilter_cfi::collectionName, hcID_, LogDebug, and theHC_.
|
override |
|
private |
Definition at line 70 of file TotemRPSD.cc.
References currentPV_, eloss_, exitPoint_, hitPoint_, LogDebug, parentID_, primaryID_, theTrack_, tSliceID_, and unitID_.
|
overridevirtual |
Implements SensitiveDetector.
Definition at line 92 of file TotemRPSD.cc.
References createNewHit(), eloss_, stepInfo(), and theTrack_.
|
overridevirtual |
Implements SensitiveDetector.
Definition at line 148 of file TotemRPSD.cc.
References numberingScheme_.
Referenced by stepInfo().
|
private |
|
private |
Definition at line 104 of file TotemRPSD.cc.
References SensitiveDetector::ConvertToLocal3DPoint(), currentPV_, exitPoint_, hitPoint_, incidentEnergy_, createfilelist::int, LogDebug, pabs_, parentID_, particleType_, PV3DBase< T, PVType, FrameType >::phi(), phiAtEntry_, postStepPoint_, preStepPoint_, primaryID_, setDetUnitId(), setToLocal(), theLocalEntryPoint_, theLocalExitPoint_, thePx_, thePy_, thePz_, PV3DBase< T, PVType, FrameType >::theta(), thetaAtEntry_, theTrack_, tof_, tSlice_, tSliceID_, unitID_, verbosity_, vx_, vy_, and vz_.
Referenced by ProcessHits().
|
private |
Definition at line 152 of file TotemRPSD.cc.
References LogDebug, theHC_, and verbosity_.
Referenced by createNewHit().
|
overrideprotectedvirtual |
This routine will be called when the appropriate signal arrives.
Implements Observer< const BeginOfEvent *>.
Definition at line 237 of file TotemRPSD.cc.
References clearHits(), and eventno_.
Referenced by progressbar.ProgressBar::__next__(), MatrixUtil.Matrix::__setitem__(), MatrixUtil.Steps::__setitem__(), progressbar.ProgressBar::finish(), and MatrixUtil.Steps::overwrite().
|
overrideprotected |
Definition at line 242 of file TotemRPSD.cc.
Referenced by progressbar.ProgressBar::__next__(), MatrixUtil.Matrix::__setitem__(), MatrixUtil.Steps::__setitem__(), progressbar.ProgressBar::finish(), and MatrixUtil.Steps::overwrite().
|
private |
Definition at line 62 of file TotemRPSD.h.
Referenced by createNewHit().
|
private |
Definition at line 64 of file TotemRPSD.h.
Referenced by printHitInfo(), and stepInfo().
|
private |
Definition at line 84 of file TotemRPSD.h.
Referenced by createNewHit(), printHitInfo(), and ProcessHits().
|
private |
Definition at line 95 of file TotemRPSD.h.
Referenced by update().
|
private |
Definition at line 74 of file TotemRPSD.h.
Referenced by createNewHit(), printHitInfo(), and stepInfo().
|
private |
Definition at line 65 of file TotemRPSD.h.
Referenced by Initialize().
|
private |
Definition at line 73 of file TotemRPSD.h.
Referenced by createNewHit(), printHitInfo(), and stepInfo().
|
private |
Definition at line 78 of file TotemRPSD.h.
Referenced by createNewHit(), and stepInfo().
|
private |
Definition at line 59 of file TotemRPSD.h.
Referenced by setDetUnitId(), and TotemRPSD().
|
private |
Definition at line 79 of file TotemRPSD.h.
Referenced by createNewHit(), and stepInfo().
|
private |
Definition at line 67 of file TotemRPSD.h.
Referenced by createNewHit(), printHitInfo(), and stepInfo().
|
private |
Definition at line 96 of file TotemRPSD.h.
Referenced by createNewHit(), and stepInfo().
|
private |
Definition at line 87 of file TotemRPSD.h.
Referenced by createNewHit(), and stepInfo().
|
private |
Definition at line 72 of file TotemRPSD.h.
Referenced by stepInfo().
|
private |
Definition at line 71 of file TotemRPSD.h.
Referenced by setToLocal(), and stepInfo().
|
private |
Definition at line 66 of file TotemRPSD.h.
Referenced by createNewHit(), printHitInfo(), and stepInfo().
|
private |
Definition at line 58 of file TotemRPSD.h.
Referenced by clearHits(), EndOfEvent(), fillHits(), and TotemRPSD().
|
private |
Definition at line 61 of file TotemRPSD.h.
Referenced by EndOfEvent(), Initialize(), PrintAll(), and storeHit().
|
private |
Definition at line 75 of file TotemRPSD.h.
Referenced by createNewHit(), and stepInfo().
|
private |
Definition at line 76 of file TotemRPSD.h.
Referenced by createNewHit(), and stepInfo().
|
private |
Definition at line 80 of file TotemRPSD.h.
Referenced by createNewHit(), and stepInfo().
|
private |
Definition at line 81 of file TotemRPSD.h.
Referenced by createNewHit(), and stepInfo().
|
private |
Definition at line 82 of file TotemRPSD.h.
Referenced by createNewHit(), and stepInfo().
|
private |
Definition at line 86 of file TotemRPSD.h.
Referenced by createNewHit(), and stepInfo().
|
private |
Definition at line 63 of file TotemRPSD.h.
Referenced by printHitInfo(), ProcessHits(), and stepInfo().
|
private |
Definition at line 83 of file TotemRPSD.h.
Referenced by createNewHit(), and stepInfo().
|
private |
Definition at line 69 of file TotemRPSD.h.
Referenced by createNewHit(), and stepInfo().
|
private |
Definition at line 68 of file TotemRPSD.h.
Referenced by printHitInfo(), and stepInfo().
|
private |
Definition at line 93 of file TotemRPSD.h.
Referenced by createNewHit(), printHitInfo(), and stepInfo().
|
private |
Definition at line 94 of file TotemRPSD.h.
Referenced by stepInfo(), storeHit(), and TotemRPSD().
|
private |
Definition at line 89 of file TotemRPSD.h.
Referenced by createNewHit(), and stepInfo().
|
private |
Definition at line 90 of file TotemRPSD.h.
Referenced by createNewHit(), and stepInfo().
|
private |
Definition at line 91 of file TotemRPSD.h.
Referenced by createNewHit(), and stepInfo().