CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_2_7_hltpatch2/src/TopQuarkAnalysis/TopEventSelection/plugins/TtFullHadSignalSelMVATrainer.h

Go to the documentation of this file.
00001 #ifndef TtFullHadSignalSelMVATrainer_h
00002 #define TtFullHadSignalSelMVATrainer_h
00003 
00004 #include "FWCore/Framework/interface/Event.h"
00005 #include "FWCore/Framework/interface/EventSetup.h"
00006 #include "FWCore/Framework/interface/EDAnalyzer.h"
00007 #include "FWCore/Framework/interface/Frameworkfwd.h"
00008 #include "FWCore/Framework/interface/MakerMacros.h"
00009 #include "FWCore/Framework/interface/ESHandle.h"
00010 #include "FWCore/Utilities/interface/InputTag.h"
00011 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00012 
00013 #include "PhysicsTools/MVAComputer/interface/HelperMacros.h"
00014 #include "PhysicsTools/MVAComputer/interface/MVAComputerCache.h"
00015 
00016 #include "DataFormats/PatCandidates/interface/Jet.h"
00017 #include "DataFormats/RecoCandidate/interface/RecoCandidate.h"
00018 
00019 #ifndef TtFullHadSignalSelMVARcd_defined  // to avoid conflicts with the TtFullHadSignalSelMVAComputer
00020 #define TtFullHadSignalSelMVARcd_defined
00021 MVA_COMPUTER_CONTAINER_DEFINE(TtFullHadSignalSelMVA);  // defines TtFullHadSignalSelMVA
00022 #endif
00023 
00024 class TtFullHadSignalSelMVATrainer : public edm::EDAnalyzer {
00025   
00026  public:
00027   
00028   explicit TtFullHadSignalSelMVATrainer(const edm::ParameterSet&);
00029   ~TtFullHadSignalSelMVATrainer();
00030   
00031  private:
00032   
00033   virtual void analyze(const edm::Event& evt, const edm::EventSetup& setup);
00034   virtual void beginJob();
00035 
00036   edm::InputTag jets_;
00037 
00038   int whatData_;
00039   int maxEv_;
00040   int selEv;
00041   double weight_;
00042 
00043   PhysicsTools::MVAComputerCache mvaComputer;
00044 
00045 };
00046 
00047 #endif