#include <SensitiveDetector.h>
|
void | AssignSD (const std::string &vname) |
|
Definition at line 25 of file SensitiveDetector.h.
SensitiveDetector::~SensitiveDetector |
( |
| ) |
|
|
override |
void SensitiveDetector::AssignSD |
( |
const std::string & |
vname | ) |
|
|
private |
Definition at line 49 of file SensitiveDetector.cc.
Referenced by SensitiveDetector().
50 G4LogicalVolumeStore* theStore = G4LogicalVolumeStore::GetInstance();
51 for (
auto& lv : *theStore) {
52 if (vname == lv->GetName()) {
53 lv->SetSensitiveDetector(
this);
virtual void SensitiveDetector::clearHits |
( |
| ) |
|
|
pure virtual |
Implemented in PPSPixelSD, CaloSD, FP420SD, TotemSD, PPSDiamondSD, MuonSensitiveDetector, TotemRPSD, TimingSD, FiberSD, TkAccumulatingSensitiveDetector, HFChamberSD, HFWedgeSD, and CaloTrkProcessing.
TrackInformation * SensitiveDetector::cmsTrackInformation |
( |
const G4Track * |
aTrack | ) |
|
|
protected |
Local3DPoint SensitiveDetector::ConvertToLocal3DPoint |
( |
const G4ThreeVector & |
point | ) |
const |
|
inlineprotected |
Definition at line 56 of file SensitiveDetector.h.
References AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by TkAccumulatingSensitiveDetector::createHit(), MuonSensitiveDetector::createHit(), TimingSD::EndOfEvent(), FinalStepPosition(), MuonSensitiveDetector::FinalStepPositionVsParent(), InitialStepPosition(), MuonSensitiveDetector::InitialStepPositionVsParent(), LocalPostStepPosition(), LocalPreStepPosition(), TotemRPSD::stepInfo(), PPSDiamondSD::stepInfo(), and TkAccumulatingSensitiveDetector::updateHit().
*vegas h *****************************************************used in the default bin number in original ***version of VEGAS is ***a higher bin number might help to derive a more precise ***grade subtle point
Point3DBase< float, LocalTag > Local3DPoint
void SensitiveDetector::EndOfEvent |
( |
G4HCofThisEvent * |
eventHC | ) |
|
|
override |
const std::vector<std::string>& SensitiveDetector::getNames |
( |
| ) |
const |
|
inline |
void SensitiveDetector::Initialize |
( |
G4HCofThisEvent * |
eventHC | ) |
|
|
override |
bool SensitiveDetector::isCaloSD |
( |
| ) |
const |
|
inline |
Local3DPoint SensitiveDetector::LocalPostStepPosition |
( |
const G4Step * |
step | ) |
const |
|
protected |
Local3DPoint SensitiveDetector::LocalPreStepPosition |
( |
const G4Step * |
step | ) |
const |
|
protected |
void SensitiveDetector::NaNTrap |
( |
const G4Step * |
step | ) |
const |
|
protected |
Definition at line 110 of file SensitiveDetector.cc.
References edm::isNotFinite().
Referenced by CaloSD::ProcessHits().
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);
constexpr bool isNotFinite(T x)
G4bool SensitiveDetector::ProcessHits |
( |
G4Step * |
step, |
|
|
G4TouchableHistory * |
tHistory |
|
) |
| |
|
overridepure virtual |
Implemented in CaloSD, FP420SD, PPSPixelSD, TotemSD, PPSDiamondSD, TotemRPSD, MuonSensitiveDetector, FiberSD, TimingSD, TkAccumulatingSensitiveDetector, CaloTrkProcessing, HFChamberSD, and HFWedgeSD.
virtual uint32_t SensitiveDetector::setDetUnitId |
( |
const G4Step * |
step | ) |
|
|
pure virtual |
Implemented in CaloSD, FP420SD, PPSPixelSD, TotemSD, PPSDiamondSD, TotemRPSD, FiberSD, HCalSD, MuonSensitiveDetector, TkAccumulatingSensitiveDetector, ECalSD, CastorSD, HcalTB02SD, HFChamberSD, CaloTrkProcessing, HFWedgeSD, AHCalSD, HGCSD, HFNoseSD, HGCalSD, FastTimerSD, HGCScintSD, EcalTBH4BeamSD, MtdSD, HcalTB06BeamSD, DreamSD, BHMSD, BscSD, ZdcSD, HGCalTB16SD01, Bcm1fSD, and PltSD.
Referenced by TimingSD::getStepInfo().
void SensitiveDetector::setNames |
( |
const std::vector< std::string > & |
hnames | ) |
|
|
protected |
bool SensitiveDetector::m_isCalo |
|
private |
std::vector<std::string> SensitiveDetector::m_namesOfSD |
|
private |