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

#include <G4SDNeutralFilter.hh>

+ Inheritance diagram for G4SDNeutralFilter:

Public Member Functions

 G4SDNeutralFilter (G4String name)
 
virtual ~G4SDNeutralFilter ()
 
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 G4SDNeutralFilter.hh.

Constructor & Destructor Documentation

◆ G4SDNeutralFilter()

G4SDNeutralFilter::G4SDNeutralFilter ( G4String  name)

Definition at line 45 of file G4SDNeutralFilter.cc.

46 :G4VSDFilter(name)
47{;}

◆ ~G4SDNeutralFilter()

G4SDNeutralFilter::~G4SDNeutralFilter ( )
virtual

Definition at line 49 of file G4SDNeutralFilter.cc.

50{;}

Member Function Documentation

◆ Accept()

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

Implements G4VSDFilter.

Definition at line 52 of file G4SDNeutralFilter.cc.

53{
54 if (aStep->GetPreStepPoint()->GetCharge()== 0. ) return TRUE;
55 return FALSE;
56}
#define TRUE
Definition: Globals.hh:27
#define FALSE
Definition: Globals.hh:23
G4double GetCharge() const
G4StepPoint * GetPreStepPoint() const

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