33#ifndef G4SMARTFILTER_HH
34#define G4SMARTFILTER_HH
52 virtual void Print(std::ostream& ostr)
const = 0;
61 virtual void PrintAll(std::ostream& ostr)
const;
85 mutable size_t fNPassed;
86 mutable size_t fNProcessed;
121 G4bool passed = Evaluate(
object);
124 if (fInvert) passed = !passed;
126 if (passed) fNPassed++;
145 ostr<<
"Active ? : " <<fActive<<
G4endl;
146 ostr<<
"Inverted ? : " <<fInvert<<
G4endl;
147 ostr<<
"#Processed : " <<fNProcessed<<
G4endl;
148 ostr<<
"#Passed : " <<fNPassed<<
G4endl;
G4DLLIMPORT std::ostream G4cout
virtual void Print(std::ostream &ostr) const =0
virtual void PrintAll(std::ostream &ostr) const
void SetVerbose(const G4bool &)
G4SmartFilter(const G4String &name)
virtual G4bool Evaluate(const T &) const =0
G4bool GetVerbose() const
void SetActive(const G4bool &)
void SetInvert(const G4bool &)
G4bool Accept(const T &) const