#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) {
40 edm::LogInfo(
"SensitiveDetector") <<
" <" << iname <<
"> : Assigns SD to LVs " 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 |
Definition at line 73 of file SensitiveDetector.cc.
References ConvertToLocal3DPoint(), and WorldCoordinates.
Referenced by MuonSensitiveDetector::createHit(), and MuonSensitiveDetector::updateHit().
75 const G4StepPoint * postStepPoint =
step->GetPostStepPoint();
76 const G4ThreeVector& globalCoordinates = postStepPoint->GetPosition();
78 const G4StepPoint * preStepPoint =
step->GetPreStepPoint();
79 G4TouchableHistory * theTouchable = (G4TouchableHistory *)(preStepPoint->GetTouchable());
80 const G4ThreeVector localCoordinates = theTouchable->GetHistory()
81 ->GetTopTransform().TransformPoint(globalCoordinates);
Local3DPoint ConvertToLocal3DPoint(const G4ThreeVector &point) const
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 123 of file SensitiveDetector.cc.
References edm::isNotFinite().
Referenced by ConvertToLocal3DPoint(), and CaloSD::ProcessHits().
125 const G4Track* CurrentTrk = aStep->GetTrack();
126 const G4ThreeVector& CurrentPos = CurrentTrk->GetPosition();
127 double xyz = CurrentPos.x() + CurrentPos.y() + CurrentPos.z();
128 const G4ThreeVector& CurrentMom = CurrentTrk->GetMomentum();
129 xyz += CurrentMom.x() + CurrentMom.y() + CurrentMom.z();
133 const G4VPhysicalVolume* pCurrentVol = aStep->GetPreStepPoint()->GetPhysicalVolume();
134 const G4String& NameOfVol = pCurrentVol->GetName();
135 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, 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 |