#include <SensitiveDetector.h>
|
void | AssignSD (const std::string &vname) |
|
Definition at line 19 of file SensitiveDetector.h.
◆ coordinates
◆ SensitiveDetector()
◆ ~SensitiveDetector()
SensitiveDetector::~SensitiveDetector |
( |
| ) |
|
|
override |
◆ AssignSD()
void SensitiveDetector::AssignSD |
( |
const std::string & |
vname | ) |
|
|
private |
Definition at line 45 of file SensitiveDetector.cc.
46 G4LogicalVolumeStore* theStore = G4LogicalVolumeStore::GetInstance();
47 for (
auto& lv : *theStore) {
48 if (vname == lv->GetName()) {
49 lv->SetSensitiveDetector(
this);
Referenced by SensitiveDetector().
◆ clearHits()
virtual void SensitiveDetector::clearHits |
( |
| ) |
|
|
pure virtual |
Implemented in PPSPixelSD, CaloSD, FP420SD, TotemSD, MuonSensitiveDetector, PPSDiamondSD, FiberSD, TotemRPSD, TkAccumulatingSensitiveDetector, CaloTrkProcessing, TimingSD, HFChamberSD, and HFWedgeSD.
◆ cmsTrackInformation()
TrackInformation * SensitiveDetector::cmsTrackInformation |
( |
const G4Track * |
aTrack | ) |
|
|
protected |
◆ ConvertToLocal3DPoint()
Local3DPoint SensitiveDetector::ConvertToLocal3DPoint |
( |
const G4ThreeVector & |
point | ) |
const |
|
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().
◆ EndOfEvent()
void SensitiveDetector::EndOfEvent |
( |
G4HCofThisEvent * |
eventHC | ) |
|
|
override |
◆ FinalStepPosition()
◆ getNames()
const std::vector<std::string>& SensitiveDetector::getNames |
( |
| ) |
const |
|
inline |
◆ Initialize()
void SensitiveDetector::Initialize |
( |
G4HCofThisEvent * |
eventHC | ) |
|
|
override |
◆ InitialStepPosition()
◆ isCaloSD()
bool SensitiveDetector::isCaloSD |
( |
| ) |
const |
|
inline |
◆ LocalPostStepPosition()
Local3DPoint SensitiveDetector::LocalPostStepPosition |
( |
const G4Step * |
step | ) |
const |
|
protected |
◆ LocalPreStepPosition()
Local3DPoint SensitiveDetector::LocalPreStepPosition |
( |
const G4Step * |
step | ) |
const |
|
protected |
◆ NaNTrap()
void SensitiveDetector::NaNTrap |
( |
const G4Step * |
step | ) |
const |
|
protected |
Definition at line 106 of file SensitiveDetector.cc.
107 const G4Track* CurrentTrk = aStep->GetTrack();
108 const G4ThreeVector& CurrentPos = CurrentTrk->GetPosition();
109 double xyz = CurrentPos.x() + CurrentPos.y() + CurrentPos.z();
110 const G4ThreeVector& CurrentMom = CurrentTrk->GetMomentum();
111 xyz += CurrentMom.x() + CurrentMom.y() + CurrentMom.z();
114 const G4VPhysicalVolume* pCurrentVol = aStep->GetPreStepPoint()->GetPhysicalVolume();
115 const G4String& NameOfVol = pCurrentVol->GetName();
116 throw SimG4Exception(
"SimG4CoreSensitiveDetector: Corrupted Event - NaN detected in volume " + NameOfVol);
References edm::isNotFinite().
Referenced by CaloSD::ProcessHits().
◆ ProcessHits()
G4bool SensitiveDetector::ProcessHits |
( |
G4Step * |
step, |
|
|
G4TouchableHistory * |
tHistory |
|
) |
| |
|
overridepure virtual |
Implemented in PPSDiamondSD, TotemRPSD, HFWedgeSD, CaloSD, FiberSD, HFChamberSD, FP420SD, PPSPixelSD, TotemSD, MuonSensitiveDetector, CaloTrkProcessing, TkAccumulatingSensitiveDetector, and TimingSD.
◆ setDetUnitId()
virtual uint32_t SensitiveDetector::setDetUnitId |
( |
const G4Step * |
step | ) |
|
|
pure virtual |
Implemented in CaloSD, PPSDiamondSD, HCalSD, TotemRPSD, CaloTrkProcessing, HcalTB02SD, CastorSD, HGCSD, HFNoseSD, HGCalSD, HGCScintSD, EcalTBH4BeamSD, HcalTB06BeamSD, ZdcSD, HGCalTB16SD01, AHCalSD, TotemT2ScintSD, FP420SD, PPSPixelSD, TotemSD, MuonSensitiveDetector, FiberSD, TkAccumulatingSensitiveDetector, ECalSD, HFChamberSD, HFWedgeSD, DreamSD, MtdSD, BHMSD, BscSD, Bcm1fSD, and PltSD.
Referenced by TimingSD::getStepInfo().
◆ setNames()
void SensitiveDetector::setNames |
( |
const std::vector< std::string > & |
hnames | ) |
|
|
protected |
◆ m_isCalo
bool SensitiveDetector::m_isCalo |
|
private |
◆ m_namesOfSD
std::vector<std::string> SensitiveDetector::m_namesOfSD |
|
private |