CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_3/src/CommonTools/Utils/interface/cutParser.h

Go to the documentation of this file.
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 <Reflex/Type.h>
00006 #include <string>
00007 
00008 namespace reco {
00009   namespace parser {
00010     bool cutParser(const Reflex::Type &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(Reflex::Type::ByTypeInfo(typeid(T)), cut, sel, lazy);
00015     }
00016   }
00017 }
00018 
00019 #endif