00001 #ifndef CAFUTIL_METSELECTOR_HPP__ 00002 #define CAFUTIL_METSELECTOR_HPP__ 00003 00004 #include "cafe/Event.hpp" 00005 #include "cafe/Processor.hpp" 00006 00007 #include <string> 00008 00009 namespace caf_util { 00010 00057 class METSelector : public cafe::Processor 00058 { 00059 private: 00060 float _minMET ; //< lower cut on MET 00061 float _maxMET ; //< upper cut on MET 00062 00063 float _minSET ; //< lower cut on SET 00064 float _maxSET ; //< upper cut on SET 00065 00066 bool _muCorrected ; //< use MET corected for muons 00067 bool _MCsmeared ; //< use smeared MET for MC 00068 00069 std::string _algo ;//< algo name for MET calculation 00070 std::string _fromBranch ;//< branch with MET 00071 00073 cafe::Variables _vars, _mcvars ; 00074 00075 public: 00076 00077 METSelector(const char *name); 00078 ~METSelector() {} 00079 bool processEvent(cafe::Event &event); 00080 00081 ClassDef(METSelector, 0) ; 00082 }; 00083 00084 } 00085 #endif // CAFUTIL_METSELECTOR_HPP__
1.3.4