00001 #ifndef CAFUTIL_EMJETMATCHING_HPP__ 00002 #define CAFUTIL_EMJETMATCHING_HPP__ 00003 00004 00005 #include <string> 00006 #include "cafe/SelectUserObjects.hpp" 00007 #include "cafe/Event.hpp" 00008 #include "tmb_tree/TMBJet.hpp" 00009 #include "tmb_tree/TMBEMCluster.hpp" 00010 00011 namespace caf_util { 00012 00032 class EMJetMatching : public cafe::SelectUserObjects<TMBJet> 00033 { 00034 public : 00035 EMJetMatching(const char *name); 00036 ~EMJetMatching(){;}; 00037 bool processEvent(cafe::Event& event); 00038 bool selectObject(const TMBJet &jet); 00039 00040 private : 00041 00042 void after(cafe::Collection<TMBJet>& accepted, cafe::Collection<TMBJet>& rejected); 00043 00044 std::string _electronBranch; 00045 std::string _jetBranch; 00046 bool _debug; 00047 float _dR_Jet_EM; 00048 00049 cafe::Event* _event ; 00050 cafe::Variables _vars; 00051 00052 public: 00053 ClassDef(EMJetMatching, 0); 00054 }; 00055 } 00056 00057 #endif // CAFE_HPP__
1.3.4