BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
|
Filter that applies AND to a vector of filters. More...
#include <BDSSDFilterAnd.hh>
Public Member Functions | |
BDSSDFilterAnd (const G4String &name, G4bool ownsTheFiltersIn=false) | |
virtual G4bool | Accept (const G4Step *step) const |
void | RegisterFilter (G4VSDFilter *filterIn) |
Register the filter. | |
const std::vector< G4VSDFilter * > & | Filters () const |
Accessor. | |
size_t | size () const |
Accessor. | |
Private Attributes | |
G4bool | ownsTheFilters |
Whether to delete the filters or not at the end. | |
std::vector< G4VSDFilter * > | filters |
Vector of all filters. | |
Filter that applies AND to a vector of filters.
Can optionally own the filters. If the ownsTheFiltersIn argument is true, they'll be deleted afterwards.
Definition at line 37 of file BDSSDFilterAnd.hh.
|
explicit |
Definition at line 29 of file BDSSDFilterAnd.cc.
|
virtual |
Definition at line 35 of file BDSSDFilterAnd.cc.
|
virtual |
Return logical AND of all filters Accept(). If no filters are registered, it will return false and not accept anything.
Definition at line 44 of file BDSSDFilterAnd.cc.
References filters.
|
inline |
|
inline |
Register the filter.
Definition at line 49 of file BDSSDFilterAnd.hh.
References filters.
Referenced by BDSScorerFactory::CreateFilter().
|
inline |
Accessor.
Definition at line 53 of file BDSSDFilterAnd.hh.
References filters.
Referenced by BDSScorerFactory::CreateFilter().
|
private |
Vector of all filters.
Definition at line 63 of file BDSSDFilterAnd.hh.
Referenced by Accept(), Filters(), RegisterFilter(), and size().
|
private |
Whether to delete the filters or not at the end.
Definition at line 60 of file BDSSDFilterAnd.hh.