|
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 36 of file BDSSDFilterOr.hh.
|
explicit |
Definition at line 27 of file BDSSDFilterOr.cc.
|
virtual |
Definition at line 33 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 42 of file BDSSDFilterOr.cc.
References filters.
|
inline |
|
inline |
Register the filter.
Definition at line 48 of file BDSSDFilterOr.hh.
References filters.
Referenced by BDSSDManager::BDSSDManager().

|
inline |
|
private |
Vector of all filters.
Definition at line 62 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 59 of file BDSSDFilterOr.hh.