File indexing completed on 2023-03-17 11:26:05
0001 #ifndef TtFullHadSignalSelMVAComputer_h
0002 #define TtFullHadSignalSelMVAComputer_h
0003
0004 #include "FWCore/Framework/interface/Event.h"
0005 #include "FWCore/Framework/interface/stream/EDProducer.h"
0006
0007 #include "PhysicsTools/MVAComputer/interface/HelperMacros.h"
0008 #include "PhysicsTools/MVAComputer/interface/MVAComputerCache.h"
0009
0010 #include "DataFormats/Math/interface/LorentzVector.h"
0011 #include "DataFormats/PatCandidates/interface/Jet.h"
0012
0013 #ifndef TtFullHadSignalSelMVARcd_defined
0014 #define TtFullHadSignalSelMVARcd_defined
0015 MVA_COMPUTER_CONTAINER_DEFINE(TtFullHadSignalSelMVA);
0016 #endif
0017
0018 class TtFullHadSignalSelMVAComputer : public edm::stream::EDProducer<> {
0019 public:
0020 explicit TtFullHadSignalSelMVAComputer(const edm::ParameterSet&);
0021
0022 private:
0023 void produce(edm::Event& evt, const edm::EventSetup& setup) override;
0024
0025 edm::ESGetToken<PhysicsTools::Calibration::MVAComputerContainer, TtFullHadSignalSelMVARcd> mvaToken_;
0026 edm::EDGetTokenT<std::vector<pat::Jet> > jetsToken_;
0027 edm::EDPutTokenT<double> putToken_;
0028
0029 PhysicsTools::MVAComputerCache mvaComputer;
0030 };
0031
0032 #endif