Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4SDChargedFilter Class Reference

#include <G4SDChargedFilter.hh>

+ Inheritance diagram for G4SDChargedFilter:

Public Member Functions

 G4SDChargedFilter (G4String name)
 
virtual ~G4SDChargedFilter ()
 
virtual G4bool Accept (const G4Step *) const
 
- Public Member Functions inherited from G4VSDFilter
 G4VSDFilter (G4String name)
 
virtual ~G4VSDFilter ()
 
virtual G4bool Accept (const G4Step *) const =0
 
G4String GetName () const
 

Additional Inherited Members

- Protected Attributes inherited from G4VSDFilter
G4String filterName
 

Detailed Description

Definition at line 49 of file G4SDChargedFilter.hh.

Constructor & Destructor Documentation

◆ G4SDChargedFilter()

G4SDChargedFilter::G4SDChargedFilter ( G4String  name)

Definition at line 46 of file G4SDChargedFilter.cc.

47 :G4VSDFilter(name)
48{;}

◆ ~G4SDChargedFilter()

G4SDChargedFilter::~G4SDChargedFilter ( )
virtual

Definition at line 50 of file G4SDChargedFilter.cc.

51{;}

Member Function Documentation

◆ Accept()

G4bool G4SDChargedFilter::Accept ( const G4Step aStep) const
virtual

Implements G4VSDFilter.

Definition at line 53 of file G4SDChargedFilter.cc.

54{
55 if (aStep->GetPreStepPoint()->GetCharge() != 0. ) return TRUE;
56 return FALSE;
57}
G4double GetCharge() const
G4StepPoint * GetPreStepPoint() const
#define TRUE
Definition: globals.hh:55
#define FALSE
Definition: globals.hh:52

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