#include <SensitiveDetector.h>
Public Member Functions | |
virtual void | clearHits ()=0 |
void | EndOfEvent (G4HCofThisEvent *eventHC) override |
const std::vector< std::string > & | getNames () const |
void | Initialize (G4HCofThisEvent *eventHC) override |
bool | isCaloSD () const |
G4bool | ProcessHits (G4Step *step, G4TouchableHistory *tHistory) override=0 |
SensitiveDetector (const std::string &iname, const SensitiveDetectorCatalog &, bool calo) | |
virtual uint32_t | setDetUnitId (const G4Step *step)=0 |
~SensitiveDetector () override | |
Protected Types | |
enum | coordinates { WorldCoordinates, LocalCoordinates } |
Protected Member Functions | |
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 | AssignSD (const std::string &vname) |
Private Attributes | |
bool | m_isCalo |
std::vector< std::string > | m_namesOfSD |
Definition at line 19 of file SensitiveDetector.h.
|
protected |
Enumerator | |
---|---|
WorldCoordinates | |
LocalCoordinates |
Definition at line 38 of file SensitiveDetector.h.
|
explicit |
Definition at line 17 of file SensitiveDetector.cc.
References AssignSD(), bysipixelclustmulteventfilter_cfi::collectionName, SensitiveDetectorCatalog::logicalNames(), materialBudgetVolume_cfi::lvNames, m_namesOfSD, and contentValuesCheck::ss.
|
override |
Definition at line 38 of file SensitiveDetector.cc.
|
private |
Definition at line 44 of file SensitiveDetector.cc.
Referenced by SensitiveDetector().
|
pure virtual |
Implemented in CaloSD, FP420SD, PPSPixelSD, TotemSD, MuonSensitiveDetector, FiberSD, TkAccumulatingSensitiveDetector, CaloTrkProcessing, PPSDiamondSD, TotemRPSD, TimingSD, HFChamberSD, and HFWedgeSD.
|
protected |
Definition at line 91 of file SensitiveDetector.cc.
References info().
Referenced by TkAccumulatingSensitiveDetector::createHit(), MuonSensitiveDetector::createHit(), CaloSD::createNewHit(), CaloSD::findBoundaryCrossingParent(), CaloSD::getResponseWt(), TimingSD::getStepInfo(), MtdSD::getTrackID(), CaloSD::getTrackID(), CaloSD::setTrackID(), TkAccumulatingSensitiveDetector::update(), and CaloSD::update().
|
inlineprotected |
Definition at line 46 of file SensitiveDetector.h.
References point.
Referenced by TkAccumulatingSensitiveDetector::createHit(), MuonSensitiveDetector::createHit(), TimingSD::EndOfEvent(), FinalStepPosition(), MuonSensitiveDetector::FinalStepPositionVsParent(), InitialStepPosition(), MuonSensitiveDetector::InitialStepPositionVsParent(), LocalPostStepPosition(), LocalPreStepPosition(), TotemRPSD::stepInfo(), PPSDiamondSD::stepInfo(), and TkAccumulatingSensitiveDetector::updateHit().
|
override |
Definition at line 42 of file SensitiveDetector.cc.
|
protected |
Definition at line 65 of file SensitiveDetector.cc.
References hippyaddtobaddatafiles::cd(), ConvertToLocal3DPoint(), and WorldCoordinates.
Referenced by MuonSensitiveDetector::createHit(), and MuonSensitiveDetector::updateHit().
|
inline |
Definition at line 32 of file SensitiveDetector.h.
References m_namesOfSD.
|
override |
Definition at line 40 of file SensitiveDetector.cc.
|
protected |
Definition at line 53 of file SensitiveDetector.cc.
References hippyaddtobaddatafiles::cd(), ConvertToLocal3DPoint(), and WorldCoordinates.
Referenced by MuonSensitiveDetector::createHit(), and MuonSensitiveDetector::ProcessHits().
|
inline |
|
protected |
Definition at line 84 of file SensitiveDetector.cc.
References ConvertToLocal3DPoint().
Referenced by TkAccumulatingSensitiveDetector::createHit(), and TkAccumulatingSensitiveDetector::updateHit().
|
protected |
Definition at line 77 of file SensitiveDetector.cc.
References ConvertToLocal3DPoint().
Referenced by TkAccumulatingSensitiveDetector::closeHit(), and TkAccumulatingSensitiveDetector::createHit().
|
protected |
Definition at line 107 of file SensitiveDetector.cc.
References edm::isNotFinite().
Referenced by CaloSD::ProcessHits().
|
overridepure virtual |
Implemented in CaloSD, PPSPixelSD, FP420SD, TotemSD, MuonSensitiveDetector, CaloTrkProcessing, FiberSD, TkAccumulatingSensitiveDetector, PPSDiamondSD, TotemRPSD, TimingSD, HFChamberSD, and HFWedgeSD.
|
pure virtual |
Implemented in PPSPixelSD, CaloSD, FP420SD, TotemSD, FiberSD, HCalSD, MuonSensitiveDetector, CaloTrkProcessing, PPSDiamondSD, TotemRPSD, TkAccumulatingSensitiveDetector, ECalSD, HcalTB02SD, CastorSD, HFChamberSD, HFWedgeSD, DreamSD, HGCSD, HFNoseSD, HGCalSD, HGCScintSD, EcalTBH4BeamSD, HcalTB06BeamSD, MtdSD, BHMSD, BscSD, ZdcSD, HGCalTB16SD01, Bcm1fSD, PltSD, AHCalSD, and TotemT2ScintSD.
Referenced by TimingSD::getStepInfo().
|
protected |
Definition at line 102 of file SensitiveDetector.cc.
References m_namesOfSD.
Referenced by TkAccumulatingSensitiveDetector::TkAccumulatingSensitiveDetector().
|
private |
Definition at line 59 of file SensitiveDetector.h.
Referenced by isCaloSD().
|
private |
Definition at line 58 of file SensitiveDetector.h.
Referenced by getNames(), SensitiveDetector(), and setNames().