File indexing completed on 2024-04-06 12:11:32
0001 #ifndef Fireworks_Core_FWModelFilter_h
0002 #define Fireworks_Core_FWModelFilter_h
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022 #include <string>
0023 #include "FWCore/Reflection/interface/TypeWithDict.h"
0024
0025
0026 #include "CommonTools/Utils/interface/parser/SelectorPtr.h"
0027 #include "CommonTools/Utils/interface/parser/SelectorBase.h"
0028
0029
0030
0031 class FWModelFilter {
0032 public:
0033 FWModelFilter(const std::string& iExpression, const std::string& iClassName);
0034 virtual ~FWModelFilter();
0035
0036
0037
0038 const std::string& expression() const;
0039
0040 bool passesFilter(const void*) const;
0041
0042 bool trivialFilter() const;
0043
0044
0045
0046
0047 void setExpression(const std::string&);
0048 void setClassName(const std::string&);
0049
0050 private:
0051
0052
0053
0054
0055
0056 std::string m_expression;
0057 std::string m_className;
0058 reco::parser::SelectorPtr m_selector;
0059 edm::TypeWithDict m_type;
0060 };
0061
0062 #endif