#include <SensitiveDetector.h>
|
void | AssignSD (const std::string &vname) |
|
Definition at line 22 of file SensitiveDetector.h.
Definition at line 18 of file SensitiveDetector.cc.
References AssignSD(), ecaldqm::collectionName, SensitiveDetectorCatalog::logicalNames(), and namesOfSD.
22 G4VSensitiveDetector(iname)
31 G4SDManager * SDman = G4SDManager::GetSDMpointer();
32 SDman->AddNewDetector(
this);
34 const std::vector<std::string>& lvNames = clg.
logicalNames(iname);
36 for (
auto & lvname : lvNames) {
41 <<
" <" << iname <<
"> : Assigns SD to LVs " << ss.str();
const std::vector< std::string > & logicalNames(const std::string &readoutName) const
void AssignSD(const std::string &vname)
std::string const collectionName[nCollections]
std::vector< std::string > namesOfSD
SensitiveDetector::~SensitiveDetector |
( |
| ) |
|
|
override |
void SensitiveDetector::AssignSD |
( |
const std::string & |
vname | ) |
|
|
private |
virtual void SensitiveDetector::clearHits |
( |
| ) |
|
|
pure virtual |
TrackInformation * SensitiveDetector::cmsTrackInformation |
( |
const G4Track * |
aTrack | ) |
|
|
protected |
Local3DPoint SensitiveDetector::ConvertToLocal3DPoint |
( |
const G4ThreeVector & |
point | ) |
const |
|
inlineprotected |
Definition at line 50 of file SensitiveDetector.h.
References AssignSD(), cmsTrackInformation(), NaNTrap(), setNames(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by TkAccumulatingSensitiveDetector::createHit(), MuonSensitiveDetector::createHit(), TimingSD::EndOfEvent(), FinalStepPosition(), MuonSensitiveDetector::FinalStepPositionVsParent(), InitialStepPosition(), MuonSensitiveDetector::InitialStepPositionVsParent(), LocalPostStepPosition(), LocalPreStepPosition(), and TkAccumulatingSensitiveDetector::updateHit().
Point3DBase< float, LocalTag > Local3DPoint
*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
void SensitiveDetector::EndOfEvent |
( |
G4HCofThisEvent * |
eventHC | ) |
|
|
override |
const std::vector<std::string>& SensitiveDetector::getNames |
( |
| ) |
const |
|
inline |
void SensitiveDetector::Initialize |
( |
G4HCofThisEvent * |
eventHC | ) |
|
|
override |
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 118 of file SensitiveDetector.cc.
References edm::isNotFinite().
Referenced by ConvertToLocal3DPoint(), and CaloSD::ProcessHits().
120 const G4Track* CurrentTrk = aStep->GetTrack();
121 const G4ThreeVector& CurrentPos = CurrentTrk->GetPosition();
122 double xyz = CurrentPos.x() + CurrentPos.y() + CurrentPos.z();
123 const G4ThreeVector& CurrentMom = CurrentTrk->GetMomentum();
124 xyz += CurrentMom.x() + CurrentMom.y() + CurrentMom.z();
128 const G4VPhysicalVolume* pCurrentVol = aStep->GetPreStepPoint()->GetPhysicalVolume();
129 const G4String& NameOfVol = pCurrentVol->GetName();
130 throw SimG4Exception(
"SimG4CoreSensitiveDetector: Corrupted Event - NaN detected in volume "
G4bool SensitiveDetector::ProcessHits |
( |
G4Step * |
step, |
|
|
G4TouchableHistory * |
tHistory |
|
) |
| |
|
overridepure virtual |
virtual uint32_t SensitiveDetector::setDetUnitId |
( |
const G4Step * |
step | ) |
|
|
pure virtual |
Implemented in CaloSD, FP420SD, TotemSD, FiberSD, MuonSensitiveDetector, HCalSD, TkAccumulatingSensitiveDetector, CaloTrkProcessing, ECalSD, CastorSD, HFChamberSD, HcalTB02SD, HFWedgeSD, HGCSD, HFNoseSD, HGCalSD, FastTimerSD, HGCScintSD, MtdSD, HcalTB06BeamSD, DreamSD, EcalTBH4BeamSD, HGCalTB16SD01, BHMSD, BscSD, ZdcSD, Bcm1fSD, PltSD, and AHCalSD.
Referenced by TimingSD::getStepInfo().
void SensitiveDetector::setNames |
( |
const std::vector< std::string > & |
hnames | ) |
|
|
protected |
std::vector<std::string> SensitiveDetector::namesOfSD |
|
private |