Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
RMC01SD Class Reference

#include <Doxymodules_biasing.h>

Inheritance diagram for RMC01SD:
G4VSensitiveDetector

Public Member Functions

 RMC01SD (G4String name)
 
virtual ~RMC01SD ()
 
virtual void Initialize (G4HCofThisEvent *HCE)
 
virtual G4bool ProcessHits (G4Step *aStep, G4TouchableHistory *ROhist)
 
virtual void EndOfEvent (G4HCofThisEvent *HCE)
 
virtual void Clear ()
 
virtual void DrawAll ()
 
virtual void PrintAll ()
 

Private Attributes

G4double fTotalEventEdep
 
RMC01DoubleWithWeightHitsCollectionfEventEdepCollection
 
RMC01DoubleWithWeightHitsCollectionfProtonCurrentCollection
 
RMC01DoubleWithWeightHitsCollectionfGammaCurrentCollection
 
RMC01DoubleWithWeightHitsCollectionfElectronCurrentCollection
 

Detailed Description

Definition at line 178 of file Doxymodules_biasing.h.

Constructor & Destructor Documentation

◆ RMC01SD()

RMC01SD::RMC01SD ( G4String  name)

Definition at line 65 of file RMC01SD.cc.

70{
71 collectionName.insert("edep");
72 collectionName.insert("current_electron");
73 collectionName.insert("current_proton");
74 collectionName.insert("current_gamma");
75}
G4double fTotalEventEdep
Definition RMC01SD.hh:78
RMC01DoubleWithWeightHitsCollection * fProtonCurrentCollection
Definition RMC01SD.hh:80
RMC01DoubleWithWeightHitsCollection * fElectronCurrentCollection
Definition RMC01SD.hh:82
RMC01DoubleWithWeightHitsCollection * fEventEdepCollection
Definition RMC01SD.hh:79
RMC01DoubleWithWeightHitsCollection * fGammaCurrentCollection
Definition RMC01SD.hh:81

◆ ~RMC01SD()

RMC01SD::~RMC01SD ( )
virtual

Definition at line 79 of file RMC01SD.cc.

80{;
81}

Member Function Documentation

◆ Initialize()

void RMC01SD::Initialize ( G4HCofThisEvent HCE)
virtual

Definition at line 85 of file RMC01SD.cc.

86{
88 static G4int HCID = -1;
89
91 (SensitiveDetectorName,collectionName[0]);
92 HCID = GetCollectionID(0);
93 HCE->AddHitsCollection(HCID,fEventEdepCollection);
94
96 (SensitiveDetectorName,collectionName[1]);
97 HCID = GetCollectionID(1);
98 HCE->AddHitsCollection(HCID,fElectronCurrentCollection);
99
101 (SensitiveDetectorName,collectionName[2]);
102 HCID = GetCollectionID(2);
103 HCE->AddHitsCollection(HCID,fProtonCurrentCollection);
104
106 (SensitiveDetectorName,collectionName[3]);
107 HCID = GetCollectionID(3);
108 HCE->AddHitsCollection(HCID,fGammaCurrentCollection);
109}

◆ ProcessHits()

G4bool RMC01SD::ProcessHits ( G4Step aStep,
G4TouchableHistory ROhist 
)
virtual

Definition at line 113 of file RMC01SD.cc.

114{
115 G4double weight =aStep->GetTrack()->GetWeight();
116 G4double edep= aStep->GetTotalEnergyDeposit();
117 if (edep >0) fEventEdepCollection->insert(
118 new RMC01DoubleWithWeightHit(edep,weight));
119
120 G4StepPoint* preStepPoint =aStep->GetPreStepPoint();
121
122 if (preStepPoint->GetStepStatus() == fGeomBoundary ){
123 // Entering the sensitive volume
124 weight=preStepPoint->GetWeight();
125 G4double eKin = preStepPoint->GetKineticEnergy();
126 G4ParticleDefinition* thePartDef = aStep->GetTrack()->GetDefinition();
127 if (thePartDef == G4Electron::Electron()) fElectronCurrentCollection->
128 insert(new RMC01DoubleWithWeightHit(eKin,weight));
129 else if (thePartDef == G4Gamma::Gamma()) fGammaCurrentCollection->
130 insert(new RMC01DoubleWithWeightHit(eKin,weight));
131 else if (thePartDef == G4Proton::Proton()) fProtonCurrentCollection->
132 insert(new RMC01DoubleWithWeightHit(eKin,weight));
133 }
134 return true;
135}

◆ EndOfEvent()

void RMC01SD::EndOfEvent ( G4HCofThisEvent HCE)
virtual

Definition at line 139 of file RMC01SD.cc.

140{
141 fEventEdepCollection->insert(
143}

◆ Clear()

void RMC01SD::Clear ( )
virtual

Definition at line 147 of file RMC01SD.cc.

148{;
149}

◆ DrawAll()

void RMC01SD::DrawAll ( )
virtual

Definition at line 153 of file RMC01SD.cc.

154{;
155}

◆ PrintAll()

void RMC01SD::PrintAll ( )
virtual

Definition at line 159 of file RMC01SD.cc.

160{;
161}

Member Data Documentation

◆ fTotalEventEdep

G4double RMC01SD::fTotalEventEdep
private

Definition at line 78 of file RMC01SD.hh.

◆ fEventEdepCollection

RMC01DoubleWithWeightHitsCollection* RMC01SD::fEventEdepCollection
private

Definition at line 79 of file RMC01SD.hh.

◆ fProtonCurrentCollection

RMC01DoubleWithWeightHitsCollection* RMC01SD::fProtonCurrentCollection
private

Definition at line 80 of file RMC01SD.hh.

◆ fGammaCurrentCollection

RMC01DoubleWithWeightHitsCollection* RMC01SD::fGammaCurrentCollection
private

Definition at line 81 of file RMC01SD.hh.

◆ fElectronCurrentCollection

RMC01DoubleWithWeightHitsCollection* RMC01SD::fElectronCurrentCollection
private

Definition at line 82 of file RMC01SD.hh.


The documentation for this class was generated from the following files:

Applications | User Support | Publications | Collaboration