18#include "BDSSDFilterAnd.hh"
24#include "G4VSDFilter.hh"
28BDSSDFilterAnd::BDSSDFilterAnd(
const G4String& name,
29 G4bool ownsTheFiltersIn):
31 ownsTheFilters(ownsTheFiltersIn)
34BDSSDFilterAnd::~BDSSDFilterAnd()
46 for (
const auto filter :
filters)
47 {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