19#include "BDSSDFilterAnd.hh"
25#include "G4VSDFilter.hh"
29BDSSDFilterAnd::BDSSDFilterAnd(
const G4String& name,
30 G4bool ownsTheFiltersIn):
32 ownsTheFilters(ownsTheFiltersIn)
35BDSSDFilterAnd::~BDSSDFilterAnd()
47 for (
const auto filter :
filters)
48 {result &= filter->Accept(step);}
std::vector< G4VSDFilter * > filters
Vector of all filters.
G4bool ownsTheFilters
Whether to delete the filters or not at the end.
virtual G4bool Accept(const G4Step *step) const