CMS 3D CMS Logo

TtSemiLepJetCombMVATrainer.h
Go to the documentation of this file.
1 #ifndef TtSemiLepJetCombMVATrainer_h
2 #define TtSemiLepJetCombMVATrainer_h
3 
12 
16 
20 
23 
24 #ifndef TtSemiLepJetCombMVARcd_defined // to avoid conflicts with the TtSemiLepJetCombMVAComputer
25 #define TtSemiLepJetCombMVARcd_defined
26 MVA_COMPUTER_CONTAINER_DEFINE(TtSemiLepJetCombMVA); // defines TtSemiLepJetCombMVARcd
27 #endif
28 
29 class TtSemiLepJetCombMVATrainer : public edm::EDAnalyzer {
30 public:
32  ~TtSemiLepJetCombMVATrainer() override;
33 
34 private:
35  void beginJob() override;
36  void analyze(const edm::Event& evt, const edm::EventSetup& setup) override;
37  void endJob() override;
38 
40 
46 
47  int maxNJets_;
48 
50 
52 
53  unsigned int nEvents[5];
54 };
55 
56 #endif
PhysicsTools::MVAComputerCache mvaComputer
void beginJob() override
edm::EDGetTokenT< std::vector< std::vector< int > > > matchingToken_
WDecay::LeptonType readLeptonType(const std::string &str)
edm::EDGetTokenT< edm::View< reco::RecoCandidate > > lepsToken_
edm::EDGetTokenT< TtGenEvent > genEvtToken_
#define MVA_COMPUTER_CONTAINER_DEFINE(N)
Definition: HelperMacros.h:51
edm::EDGetTokenT< std::vector< pat::MET > > metsToken_
TtSemiLepJetCombMVATrainer(const edm::ParameterSet &)
edm::EDGetTokenT< std::vector< pat::Jet > > jetsToken_
Creates and and MVAComputer from calibrations via EventSetup.
~TtSemiLepJetCombMVATrainer() override
#define str(s)
void analyze(const edm::Event &evt, const edm::EventSetup &setup) override