#include <EDepSimSegmentSD.hh>
Definition at line 17 of file EDepSimSegmentSD.hh.
EDepSim::SegmentSD::SegmentSD |
( |
G4String |
name | ) |
|
Definition at line 21 of file EDepSimSegmentSD.cc.
22 :G4VSensitiveDetector(
name),
32 collectionName.insert(
"SegmentHits");
int fLastHit
The last hit that was found.
int fHCID
The hit collection id of fHits.
EDepSim::HitSegment::HitSegmentCollection * fHits
static constexpr double mm
double fMaximumHitLength
The maximum allowed length;.
double fMaximumHitSagitta
The maximum allowed sagitta;.
EDepSim::SegmentSD::~SegmentSD |
( |
| ) |
|
|
virtual |
void EDepSim::SegmentSD::EndOfEvent |
( |
G4HCofThisEvent * |
| ) |
|
double EDepSim::SegmentSD::GetMaximumHitLength |
( |
void |
| ) |
|
|
inline |
double EDepSim::SegmentSD::GetMaximumHitSagitta |
( |
void |
| ) |
|
|
inline |
Definition at line 35 of file EDepSimSegmentSD.hh.
double fMaximumHitSagitta
The maximum allowed sagitta;.
void EDepSim::SegmentSD::Initialize |
( |
G4HCofThisEvent * |
HCE | ) |
|
Definition at line 37 of file EDepSimSegmentSD.cc.
39 GetCollectionName(0));
42 G4String hcName = GetName() +
"/" + GetCollectionName(0);
43 fHCID = G4SDManager::GetSDMpointer()->GetCollectionID(hcName);
45 << GetName() <<
"/" << GetCollectionName(0)
#define EDepSimLog(outStream)
int fHCID
The hit collection id of fHits.
EDepSim::HitSegment::HitSegmentCollection * fHits
G4THitsCollection< EDepSim::HitSegment > HitSegmentCollection
double fMaximumHitLength
The maximum allowed length;.
double fMaximumHitSagitta
The maximum allowed sagitta;.
G4bool EDepSim::SegmentSD::ProcessHits |
( |
G4Step * |
theStep, |
|
|
G4TouchableHistory * |
|
|
) |
| |
Definition at line 52 of file EDepSimSegmentSD.cc.
55 G4double energyDeposit = theStep->GetTotalEnergyDeposit();
56 if (energyDeposit <= 0.)
return true;
59 <<
" in " << theStep->GetTrack()->GetVolume()->GetName());
78 fHits->insert(currentHit);
81 currentHit->AddStep(theStep);
int fLastHit
The last hit that was found.
virtual bool SameHit(G4Step *theStep)
EDepSim::HitSegment::HitSegmentCollection * fHits
#define EDepSimTrace(outStream)
double fMaximumHitLength
The maximum allowed length;.
double fMaximumHitSagitta
The maximum allowed sagitta;.
void EDepSim::SegmentSD::SetMaximumHitLength |
( |
double |
length | ) |
|
|
inline |
Set the maximum length for the EDepSim::HitSegment objects created by this sensitive detector.
Definition at line 39 of file EDepSimSegmentSD.hh.
40 EDepSimLog(
"Set max segment length to " << length
41 <<
" for " << GetName());
#define EDepSimLog(outStream)
double fMaximumHitLength
The maximum allowed length;.
void EDepSim::SegmentSD::SetMaximumHitSagitta |
( |
double |
sagitta | ) |
|
|
inline |
Set the maximum sagitta for the EDepSim::HitSegment objects created by this sensitive detector.
Definition at line 30 of file EDepSimSegmentSD.hh.
31 EDepSimLog(
"Set max segment sagitta to " << sagitta
32 <<
" for " << GetName());
#define EDepSimLog(outStream)
double fMaximumHitSagitta
The maximum allowed sagitta;.
int EDepSim::SegmentSD::fHCID |
|
private |
The collection of hits that is being filled in the current event. It is constructed in Initialize, filled in ProcessHits, and added the the event in EndOfEvent.
Definition at line 50 of file EDepSimSegmentSD.hh.
int EDepSim::SegmentSD::fLastHit |
|
private |
double EDepSim::SegmentSD::fMaximumHitLength |
|
private |
double EDepSim::SegmentSD::fMaximumHitSagitta |
|
private |
The documentation for this class was generated from the following files: