BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Public Member Functions | Private Attributes
BDSSDFilterPDGIDSet Class Reference

Filter for a set of PDG IDs (ints). More...

#include <BDSSDFilterPDGIDSet.hh>

Inheritance diagram for BDSSDFilterPDGIDSet:
Inheritance graph
Collaboration diagram for BDSSDFilterPDGIDSet:
Collaboration graph

Public Member Functions

 BDSSDFilterPDGIDSet ()=delete
 No default constructor.
 
 BDSSDFilterPDGIDSet (const G4String &name, const std::set< G4int > &PDGIDsToAcceptIn)
 Construct with a set of PDG IDs to accept for a step and generate a hit. More...
 
virtual G4bool Accept (const G4Step *step) const
 Return true if the particle is an ion or not. More...
 

Private Attributes

std::set< G4int > PDGIDsToAccept
 

Detailed Description

Filter for a set of PDG IDs (ints).

Author
Laurie Nevay

Definition at line 34 of file BDSSDFilterPDGIDSet.hh.

Constructor & Destructor Documentation

◆ BDSSDFilterPDGIDSet()

BDSSDFilterPDGIDSet::BDSSDFilterPDGIDSet ( const G4String &  name,
const std::set< G4int > &  PDGIDsToAcceptIn 
)

Construct with a set of PDG IDs to accept for a step and generate a hit.

Definition at line 27 of file BDSSDFilterPDGIDSet.cc.

◆ ~BDSSDFilterPDGIDSet()

virtual BDSSDFilterPDGIDSet::~BDSSDFilterPDGIDSet ( )
inlinevirtual

Definition at line 43 of file BDSSDFilterPDGIDSet.hh.

Member Function Documentation

◆ Accept()

G4bool BDSSDFilterPDGIDSet::Accept ( const G4Step *  step) const
virtual

Return true if the particle is an ion or not.

Definition at line 33 of file BDSSDFilterPDGIDSet.cc.

Field Documentation

◆ PDGIDsToAccept

std::set<G4int> BDSSDFilterPDGIDSet::PDGIDsToAccept
private

Definition at line 49 of file BDSSDFilterPDGIDSet.hh.


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