Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:35:02

0001 #ifndef JetProducers_PileupJPTJetIdAlgo_h
0002 #define JetProducers_PileupJPTJetIdAlgo_h
0003 
0004 #include "DataFormats/JetReco/interface/JPTJet.h"
0005 
0006 // user include files
0007 #include <string>
0008 #include <memory>
0009 #include <map>
0010 #include <fstream>
0011 #include <iomanip>
0012 #include <iostream>
0013 #include <vector>
0014 
0015 namespace edm {
0016   class Event;
0017   class EventSetup;
0018   class ParameterSet;
0019 }  // namespace edm
0020 // For MVA analysis
0021 
0022 #include "TMVA/Tools.h"
0023 #include "TMVA/Reader.h"
0024 
0025 namespace cms {
0026 
0027   class PileupJPTJetIdAlgo {
0028   public:
0029     PileupJPTJetIdAlgo(const edm::ParameterSet& fParameters);
0030 
0031     virtual ~PileupJPTJetIdAlgo();
0032 
0033     void bookMVAReader();
0034 
0035     float fillJPTBlock(const reco::JPTJet* jet);
0036 
0037   private:
0038     int verbosity;
0039     // Variables for multivariate analysis
0040 
0041     float Nvtx, PtJ, EtaJ, Beta, MultCalo, dAxis1c, dAxis2c, MultTr, dAxis1t, dAxis2t;
0042     TMVA::Reader* reader_;
0043     TMVA::Reader* readerF_;
0044     std::string tmvaWeights_, tmvaWeightsF_, tmvaMethod_;
0045   };
0046 }  // namespace cms
0047 #endif