#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, const std::string &newcollname="") | |
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 41 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 48 of file SensitiveDetector.cc.
|
private |
Definition at line 54 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 101 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 49 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 52 of file SensitiveDetector.cc.
|
protected |
Definition at line 75 of file SensitiveDetector.cc.
References hippyaddtobaddatafiles::cd(), ConvertToLocal3DPoint(), and WorldCoordinates.
Referenced by MuonSensitiveDetector::createHit(), and MuonSensitiveDetector::updateHit().
|
inline |
Definition at line 35 of file SensitiveDetector.h.
References m_namesOfSD.
|
override |
Definition at line 50 of file SensitiveDetector.cc.
|
protected |
Definition at line 63 of file SensitiveDetector.cc.
References hippyaddtobaddatafiles::cd(), ConvertToLocal3DPoint(), and WorldCoordinates.
Referenced by MuonSensitiveDetector::createHit(), and MuonSensitiveDetector::ProcessHits().
|
inline |
|
protected |
Definition at line 94 of file SensitiveDetector.cc.
References ConvertToLocal3DPoint().
Referenced by TkAccumulatingSensitiveDetector::createHit(), and TkAccumulatingSensitiveDetector::updateHit().
|
protected |
Definition at line 87 of file SensitiveDetector.cc.
References ConvertToLocal3DPoint().
Referenced by TkAccumulatingSensitiveDetector::closeHit(), and TkAccumulatingSensitiveDetector::createHit().
|
protected |
Definition at line 117 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, HFWedgeSD, and ZdcSD.
|
pure virtual |
Implemented in CaloSD, PPSPixelSD, FP420SD, TotemSD, FiberSD, HCalSD, MuonSensitiveDetector, CaloTrkProcessing, PPSDiamondSD, TotemRPSD, TkAccumulatingSensitiveDetector, ECalSD, HcalTB02SD, CastorSD, HGCSD, HFChamberSD, HFWedgeSD, HGCalSD, HFNoseSD, DreamSD, HGCScintSD, EcalTBH4BeamSD, HcalTB06BeamSD, MtdSD, BHMSD, ZdcSD, BscSD, HGCalTB16SD01, Bcm1fSD, PltSD, AHCalSD, and TotemT2ScintSD.
Referenced by TimingSD::getStepInfo().
|
protected |
Definition at line 112 of file SensitiveDetector.cc.
References m_namesOfSD.
Referenced by TkAccumulatingSensitiveDetector::TkAccumulatingSensitiveDetector().
|
private |
Definition at line 62 of file SensitiveDetector.h.
Referenced by isCaloSD().
|
private |
Definition at line 61 of file SensitiveDetector.h.
Referenced by getNames(), SensitiveDetector(), and setNames().