Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-08-05 22:47:52

0001 #ifndef CommonTools_Utils_cutParset_h
0002 #define CommonTools_Utils_cutParset_h
0003 #include "CommonTools/Utils/interface/SelectorPtr.h"
0004 #include "CommonTools/Utils/interface/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   }  // namespace parser
0017 }  // namespace reco
0018 
0019 #endif