ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4TrajectoryChargeFilter Class Reference

#include <geant4/tree/geant4-10.6-release/source/visualization/modeling/include/G4TrajectoryChargeFilter.hh>

+ Inheritance diagram for G4TrajectoryChargeFilter:
+ Collaboration diagram for G4TrajectoryChargeFilter:

Public Member Functions

 G4TrajectoryChargeFilter (const G4String &name="Unspecified")
 
virtual ~G4TrajectoryChargeFilter ()
 
virtual bool Evaluate (const G4VTrajectory &) const
 
virtual void Print (std::ostream &ostr) const
 
virtual void Clear ()
 
void Add (const G4String &particle)
 
- Public Member Functions inherited from G4SmartFilter< G4VTrajectory >
 G4SmartFilter (const G4String &name)
 
virtual ~G4SmartFilter ()
 
G4bool Accept (const G4VTrajectory &) const
 
virtual void PrintAll (std::ostream &ostr) const
 
virtual void Reset ()
 
void SetActive (const G4bool &)
 
G4bool GetActive () const
 
void SetInvert (const G4bool &)
 
G4bool GetInvert () const
 
void SetVerbose (const G4bool &)
 
G4bool GetVerbose () const
 
- Public Member Functions inherited from G4VFilter< G4VTrajectory >
 G4VFilter (const G4String &name)
 
virtual ~G4VFilter ()
 
G4String Name () const
 
G4String GetName () const
 

Private Types

enum  MyCharge { Negative =-1, Neutral =0, Positive =1 }
 

Private Member Functions

G4bool ConvertToCharge (const G4String &, MyCharge &)
 
void Add (const MyCharge &chgear)
 

Private Attributes

std::vector< MyChargefCharges
 

Additional Inherited Members

- Public Types inherited from G4VFilter< G4VTrajectory >
typedef G4VTrajectory Type
 

Detailed Description

Definition at line 39 of file G4TrajectoryChargeFilter.hh.

View newest version in sPHENIX GitHub at line 39 of file G4TrajectoryChargeFilter.hh

Member Enumeration Documentation

Enumerator:
Negative 
Neutral 
Positive 

Definition at line 62 of file G4TrajectoryChargeFilter.hh.

View newest version in sPHENIX GitHub at line 62 of file G4TrajectoryChargeFilter.hh

Constructor & Destructor Documentation

G4TrajectoryChargeFilter::G4TrajectoryChargeFilter ( const G4String name = "Unspecified")

Definition at line 35 of file G4TrajectoryChargeFilter.cc.

View newest version in sPHENIX GitHub at line 35 of file G4TrajectoryChargeFilter.cc

G4TrajectoryChargeFilter::~G4TrajectoryChargeFilter ( )
virtual

Definition at line 39 of file G4TrajectoryChargeFilter.cc.

View newest version in sPHENIX GitHub at line 39 of file G4TrajectoryChargeFilter.cc

Member Function Documentation

void G4TrajectoryChargeFilter::Add ( const G4String particle)

Definition at line 63 of file G4TrajectoryChargeFilter.cc.

View newest version in sPHENIX GitHub at line 63 of file G4TrajectoryChargeFilter.cc

References charge, ConvertToCharge(), G4Exception(), and JustWarning.

+ Here is the call graph for this function:

void G4TrajectoryChargeFilter::Add ( const MyCharge chgear)
private

Definition at line 80 of file G4TrajectoryChargeFilter.cc.

View newest version in sPHENIX GitHub at line 80 of file G4TrajectoryChargeFilter.cc

References fCharges.

void G4TrajectoryChargeFilter::Clear ( )
virtual

Implements G4SmartFilter< G4VTrajectory >.

Definition at line 98 of file G4TrajectoryChargeFilter.cc.

View newest version in sPHENIX GitHub at line 98 of file G4TrajectoryChargeFilter.cc

References fCharges.

G4bool G4TrajectoryChargeFilter::ConvertToCharge ( const G4String string,
MyCharge myCharge 
)
private

Definition at line 105 of file G4TrajectoryChargeFilter.cc.

View newest version in sPHENIX GitHub at line 105 of file G4TrajectoryChargeFilter.cc

References charge, Negative, Neutral, and Positive.

Referenced by Add().

+ Here is the caller graph for this function:

bool G4TrajectoryChargeFilter::Evaluate ( const G4VTrajectory traj) const
virtual

Implements G4SmartFilter< G4VTrajectory >.

Definition at line 42 of file G4TrajectoryChargeFilter.cc.

View newest version in sPHENIX GitHub at line 42 of file G4TrajectoryChargeFilter.cc

References charge, fCharges, G4cout, G4endl, G4VTrajectory::GetCharge(), G4SmartFilter< G4VTrajectory >::GetVerbose(), Negative, Neutral, and Positive.

+ Here is the call graph for this function:

void G4TrajectoryChargeFilter::Print ( std::ostream &  ostr) const
virtual

Implements G4SmartFilter< G4VTrajectory >.

Definition at line 86 of file G4TrajectoryChargeFilter.cc.

View newest version in sPHENIX GitHub at line 86 of file G4TrajectoryChargeFilter.cc

References fCharges, and G4endl.

Member Data Documentation

std::vector<MyCharge> G4TrajectoryChargeFilter::fCharges
private

Definition at line 69 of file G4TrajectoryChargeFilter.hh.

View newest version in sPHENIX GitHub at line 69 of file G4TrajectoryChargeFilter.hh

Referenced by Add(), Clear(), Evaluate(), and Print().


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