#include <SensitiveDetector.h>
|
void | AssignSD (const std::string &vname) |
|
Definition at line 25 of file SensitiveDetector.h.
◆ coordinates
◆ SensitiveDetector()
◆ ~SensitiveDetector()
SensitiveDetector::~SensitiveDetector |
( |
| ) |
|
|
override |
◆ AssignSD()
void SensitiveDetector::AssignSD |
( |
const std::string & |
vname | ) |
|
|
private |
Definition at line 49 of file SensitiveDetector.cc.
50 G4LogicalVolumeStore* theStore = G4LogicalVolumeStore::GetInstance();
51 for (
auto& lv : *theStore) {
52 if (vname == lv->GetName()) {
53 lv->SetSensitiveDetector(
this);
Referenced by SensitiveDetector().
◆ clearHits()
virtual void SensitiveDetector::clearHits |
( |
| ) |
|
|
pure virtual |
Implemented in PPSPixelSD, CaloSD, FP420SD, TotemSD, PPSDiamondSD, MuonSensitiveDetector, TotemRPSD, TimingSD, FiberSD, TkAccumulatingSensitiveDetector, HFChamberSD, HFWedgeSD, and CaloTrkProcessing.
◆ cmsTrackInformation()
TrackInformation * SensitiveDetector::cmsTrackInformation |
( |
const G4Track * |
aTrack | ) |
|
|
protected |
◆ ConvertToLocal3DPoint()
Local3DPoint SensitiveDetector::ConvertToLocal3DPoint |
( |
const G4ThreeVector & |
point | ) |
const |
|
inlineprotected |
Definition at line 56 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 110 of file SensitiveDetector.cc.
111 const G4Track* CurrentTrk = aStep->GetTrack();
112 const G4ThreeVector& CurrentPos = CurrentTrk->GetPosition();
113 double xyz = CurrentPos.x() + CurrentPos.y() + CurrentPos.z();
114 const G4ThreeVector& CurrentMom = CurrentTrk->GetMomentum();
115 xyz += CurrentMom.x() + CurrentMom.y() + CurrentMom.z();
118 const G4VPhysicalVolume* pCurrentVol = aStep->GetPreStepPoint()->GetPhysicalVolume();
119 const G4String& NameOfVol = pCurrentVol->GetName();
120 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, TimingSD, TkAccumulatingSensitiveDetector, and CaloTrkProcessing.
◆ setDetUnitId()
virtual uint32_t SensitiveDetector::setDetUnitId |
( |
const G4Step * |
step | ) |
|
|
pure virtual |
Implemented in CaloSD, PPSDiamondSD, TotemRPSD, HCalSD, CastorSD, HcalTB02SD, CaloTrkProcessing, AHCalSD, HGCSD, HFNoseSD, HGCalSD, HGCScintSD, EcalTBH4BeamSD, HcalTB06BeamSD, ZdcSD, HGCalTB16SD01, TotemT2ScintSD, FP420SD, PPSPixelSD, TotemSD, FiberSD, MuonSensitiveDetector, TkAccumulatingSensitiveDetector, ECalSD, HFChamberSD, HFWedgeSD, MtdSD, DreamSD, 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 |