BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
|
Filter that applies OR to a vector of filters. More...
#include <BDSSDFilterOr.hh>
Public Member Functions | |
BDSSDFilterOr (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 OR 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 BDSSDFilterOr.hh.
|
explicit |
Definition at line 28 of file BDSSDFilterOr.cc.
|
virtual |
Definition at line 34 of file BDSSDFilterOr.cc.
|
virtual |
Return the logical OR of all filter's Accept() method. If no filters are registered, it will return false and not accept anything.
Definition at line 43 of file BDSSDFilterOr.cc.
References filters.
|
inline |
|
inline |
Register the filter.
Definition at line 49 of file BDSSDFilterOr.hh.
References filters.
Referenced by BDSSDManager::BDSSDManager().
|
inline |
|
private |
Vector of all filters.
Definition at line 63 of file BDSSDFilterOr.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 BDSSDFilterOr.hh.