#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 m_namesOfSD.
23 G4VSensitiveDetector(iname),
m_isCalo(calo)
32 G4SDManager * SDman = G4SDManager::GetSDMpointer();
33 SDman->AddNewDetector(
this);
35 const std::vector<std::string>& lvNames = clg.
logicalNames(iname);
37 for (
auto & lvname : lvNames) {
42 <<
" <" << 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::vector< std::string > m_namesOfSD
std::string const collectionName[nCollections]
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 55 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 |
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 119 of file SensitiveDetector.cc.
References edm::isNotFinite().
Referenced by ConvertToLocal3DPoint(), and CaloSD::ProcessHits().
121 const G4Track* CurrentTrk = aStep->GetTrack();
122 const G4ThreeVector& CurrentPos = CurrentTrk->GetPosition();
123 double xyz = CurrentPos.x() + CurrentPos.y() + CurrentPos.z();
124 const G4ThreeVector& CurrentMom = CurrentTrk->GetMomentum();
125 xyz += CurrentMom.x() + CurrentMom.y() + CurrentMom.z();
129 const G4VPhysicalVolume* pCurrentVol = aStep->GetPreStepPoint()->GetPhysicalVolume();
130 const G4String& NameOfVol = pCurrentVol->GetName();
131 throw SimG4Exception(
"SimG4CoreSensitiveDetector: Corrupted Event - NaN detected in volume " constexpr bool isNotFinite(T x)
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, HCalSD, MuonSensitiveDetector, TkAccumulatingSensitiveDetector, ECalSD, CastorSD, CaloTrkProcessing, HFChamberSD, HcalTB02SD, HFWedgeSD, HGCSD, HFNoseSD, HGCalSD, FastTimerSD, AHCalSD, HGCScintSD, MtdSD, EcalTBH4BeamSD, HcalTB06BeamSD, HGCalTB16SD01, DreamSD, BHMSD, BscSD, ZdcSD, 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 |