![]() |
![]() |
00001 #ifndef CommonTools_Utils_cutParset_h 00002 #define CommonTools_Utils_cutParset_h 00003 #include "CommonTools/Utils/src/SelectorPtr.h" 00004 #include "CommonTools/Utils/interface/Exception.h" 00005 #include "FWCore/Utilities/interface/TypeWithDict.h" 00006 #include <string> 00007 00008 namespace reco { 00009 namespace parser { 00010 bool cutParser(const edm::TypeWithDict &t, const std::string & cut, SelectorPtr & sel, bool lazy) ; 00011 00012 template<typename T> 00013 inline bool cutParser(const std::string & cut, SelectorPtr & sel, bool lazy=false) { 00014 return reco::parser::cutParser(edm::TypeWithDict(typeid(T)), cut, sel, lazy); 00015 } 00016 } 00017 } 00018 00019 #endif