32#ifndef G4SMARTFILTER_HH
33#define G4SMARTFILTER_HH
51 virtual void Print(std::ostream& ostr)
const = 0;
60 virtual void PrintAll(std::ostream& ostr)
const;
84 mutable size_t fNPassed;
85 mutable size_t fNProcessed;
120 G4bool passed = Evaluate(
object);
123 if (fInvert) passed = !passed;
125 if (passed) fNPassed++;
144 ostr<<
"Active ? : " <<fActive<<
G4endl;
145 ostr<<
"Inverted ? : " <<fInvert<<
G4endl;
146 ostr<<
"#Processed : " <<fNProcessed<<
G4endl;
147 ostr<<
"#Passed : " <<fNPassed<<
G4endl;
G4GLOB_DLL 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