File indexing completed on 2024-04-06 12:01:18
0001 #ifndef CommonTools_Utils_cutParset_h
0002 #define CommonTools_Utils_cutParset_h
0003 #include "CommonTools/Utils/interface/parser/SelectorPtr.h"
0004 #include "CommonTools/Utils/interface/parser/Exception.h"
0005 #include "FWCore/Reflection/interface/TypeWithDict.h"
0006 #include <string>
0007
0008 namespace reco {
0009 namespace parser {
0010 bool cutParser(const edm::TypeWithDict &t, const std::string &cut, SelectorPtr &sel, bool lazy);
0011
0012 template <typename T>
0013 inline bool cutParser(const std::string &cut, SelectorPtr &sel, bool lazy = false) {
0014 return reco::parser::cutParser(edm::TypeWithDict(typeid(T)), cut, sel, lazy);
0015 }
0016 }
0017 }
0018
0019 #endif