Geant4  10.03
PrimaryKiller Class Reference

Kill the primary particle: More...

#include <PrimaryKiller.hh>

+ Inheritance diagram for PrimaryKiller:
+ Collaboration diagram for PrimaryKiller:

Public Member Functions

 PrimaryKiller (G4String name, G4int depth=0)
 
virtual ~PrimaryKiller ()
 
void SetEnergyThreshold (double energy)
 Set energy under which the particle should be killed. More...
 
void SetMinLossEnergyLimit (double energy)
 Set the energy loss from which the primary is killed. More...
 
void SetMaxLossEnergyLimit (double energy)
 Set the energy loss from which the event is aborted. More...
 
virtual void SetNewValue (G4UIcommand *command, G4String newValue)
 Method related to G4UImessenger used to control energy cuts through macro file. More...
 
virtual void Initialize (G4HCofThisEvent *)
 
virtual void EndOfEvent (G4HCofThisEvent *)
 
virtual void clear ()
 
virtual void DrawAll ()
 
virtual void PrintAll ()
 
- Public Member Functions inherited from G4VPrimitiveScorer
 G4VPrimitiveScorer (G4String name, G4int depth=0)
 
virtual ~G4VPrimitiveScorer ()
 
G4int GetCollectionID (G4int)
 
void SetUnit (const G4String &unit)
 
const G4StringGetUnit () const
 
G4double GetUnitValue () const
 
void SetMultiFunctionalDetector (G4MultiFunctionalDetector *d)
 
G4MultiFunctionalDetectorGetMultiFunctionalDetector () const
 
G4String GetName () const
 
void SetFilter (G4VSDFilter *f)
 
G4VSDFilterGetFilter () const
 
void SetVerboseLevel (G4int vl)
 
G4int GetVerboseLevel () const
 
void SetNijk (G4int i, G4int j, G4int k)
 
- Public Member Functions inherited from G4UImessenger
 G4UImessenger ()
 
 G4UImessenger (const G4String &path, const G4String &dsc, G4bool commandsToBeBroadcasted=true)
 
virtual ~G4UImessenger ()
 
virtual G4String GetCurrentValue (G4UIcommand *command)
 
G4bool operator== (const G4UImessenger &messenger) const
 
G4bool CommandsShouldBeInMaster () const
 

Protected Member Functions

virtual G4bool ProcessHits (G4Step *, G4TouchableHistory *)
 
- Protected Member Functions inherited from G4VPrimitiveScorer
virtual G4int GetIndex (G4Step *)
 
void CheckAndSetUnit (const G4String &unit, const G4String &category)
 
- Protected Member Functions inherited from G4UImessenger
G4String ItoS (G4int i)
 
G4String DtoS (G4double a)
 
G4String BtoS (G4bool b)
 
G4int StoI (G4String s)
 
G4double StoD (G4String s)
 
G4bool StoB (G4String s)
 
void AddUIcommand (G4UIcommand *newCommand)
 
void CreateDirectory (const G4String &path, const G4String &dsc, G4bool commandsToBeBroadcasted=true)
 
template<typename T >
T * CreateCommand (const G4String &cname, const G4String &dsc)
 

Private Attributes

double fELoss
 
double fELossRange_Min
 
double fELossRange_Max
 
double fKineticE_Min
 
G4UIcmdWithADoubleAndUnitfpELossUI
 
G4UIcmdWithADoubleAndUnitfpAbortEventIfELossUpperThan
 
G4UIcmdWithADoubleAndUnitfpMinKineticE
 

Additional Inherited Members

- Protected Attributes inherited from G4VPrimitiveScorer
G4String primitiveName
 
G4MultiFunctionalDetectordetector
 
G4VSDFilterfilter
 
G4int verboseLevel
 
G4int indexDepth
 
G4String unitName
 
G4double unitValue
 
G4int fNi
 
G4int fNj
 
G4int fNk
 
- Protected Attributes inherited from G4UImessenger
G4UIdirectorybaseDir
 
G4String baseDirName
 
G4bool commandsShouldBeInMaster
 

Detailed Description

Kill the primary particle:

  • either after a given energy loss
  • or after the primary particle has reached a given energy

Definition at line 52 of file PrimaryKiller.hh.

Constructor & Destructor Documentation

PrimaryKiller::PrimaryKiller ( G4String  name,
G4int  depth = 0 
)
PrimaryKiller::~PrimaryKiller ( )
virtual

Definition at line 75 of file PrimaryKiller.cc.

Member Function Documentation

void PrimaryKiller::clear ( void  )
virtual

Reimplemented from G4VPrimitiveScorer.

Definition at line 158 of file PrimaryKiller.cc.

References fELoss.

Referenced by Initialize().

+ Here is the caller graph for this function:

void PrimaryKiller::DrawAll ( void  )
virtual

Reimplemented from G4VPrimitiveScorer.

Definition at line 165 of file PrimaryKiller.cc.

void PrimaryKiller::EndOfEvent ( G4HCofThisEvent )
virtual

Reimplemented from G4VPrimitiveScorer.

Definition at line 152 of file PrimaryKiller.cc.

void PrimaryKiller::Initialize ( G4HCofThisEvent )
virtual

Reimplemented from G4VPrimitiveScorer.

Definition at line 145 of file PrimaryKiller.cc.

References clear().

+ Here is the call graph for this function:

void PrimaryKiller::PrintAll ( void  )
virtual

Reimplemented from G4VPrimitiveScorer.

Definition at line 170 of file PrimaryKiller.cc.

G4bool PrimaryKiller::ProcessHits ( G4Step aStep,
G4TouchableHistory  
)
protectedvirtual
void PrimaryKiller::SetEnergyThreshold ( double  energy)
inline

Set energy under which the particle should be killed.

Definition at line 73 of file PrimaryKiller.hh.

References G4INCL::KinematicsUtils::energy().

+ Here is the call graph for this function:

void PrimaryKiller::SetMaxLossEnergyLimit ( double  energy)
inline

Set the energy loss from which the event is aborted.

Definition at line 85 of file PrimaryKiller.hh.

References G4INCL::KinematicsUtils::energy().

+ Here is the call graph for this function:

void PrimaryKiller::SetMinLossEnergyLimit ( double  energy)
inline

Set the energy loss from which the primary is killed.

Definition at line 79 of file PrimaryKiller.hh.

References G4INCL::KinematicsUtils::energy().

+ Here is the call graph for this function:

void PrimaryKiller::SetNewValue ( G4UIcommand command,
G4String  newValue 
)
virtual

Method related to G4UImessenger used to control energy cuts through macro file.

Reimplemented from G4UImessenger.

Definition at line 80 of file PrimaryKiller.cc.

References fELossRange_Max, fELossRange_Min, fpAbortEventIfELossUpperThan, fpELossUI, and G4UIcmdWithADoubleAndUnit::GetNewDoubleValue().

+ Here is the call graph for this function:

Member Data Documentation

double PrimaryKiller::fELoss
private

Definition at line 56 of file PrimaryKiller.hh.

Referenced by clear(), PrimaryKiller(), and ProcessHits().

double PrimaryKiller::fELossRange_Max
private

Definition at line 59 of file PrimaryKiller.hh.

Referenced by PrimaryKiller(), ProcessHits(), and SetNewValue().

double PrimaryKiller::fELossRange_Min
private

Definition at line 58 of file PrimaryKiller.hh.

Referenced by PrimaryKiller(), ProcessHits(), and SetNewValue().

double PrimaryKiller::fKineticE_Min
private

Definition at line 60 of file PrimaryKiller.hh.

Referenced by PrimaryKiller(), and ProcessHits().

G4UIcmdWithADoubleAndUnit* PrimaryKiller::fpAbortEventIfELossUpperThan
private

Definition at line 63 of file PrimaryKiller.hh.

Referenced by PrimaryKiller(), and SetNewValue().

G4UIcmdWithADoubleAndUnit* PrimaryKiller::fpELossUI
private

Definition at line 62 of file PrimaryKiller.hh.

Referenced by PrimaryKiller(), and SetNewValue().

G4UIcmdWithADoubleAndUnit* PrimaryKiller::fpMinKineticE
private

Definition at line 64 of file PrimaryKiller.hh.

Referenced by PrimaryKiller().


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