14 jetsToken_ (consumes< std::vector<pat::
Jet> >(cfg.getParameter<edm::
InputTag>(
"jets"))),
16 whatData_ (cfg.getParameter<int>(
"whatData")),
17 maxEv_ (cfg.getParameter<int>(
"maxEv")),
18 weight_ (cfg.getParameter<double>(
"weight"))
59 bool isSignal =
false;
60 if(genEvt->isTtBar()){
61 if(genEvt->isFullHadronic()) isSignal =
true;
77 else std::cout<<
"Config File Error!! Please check <whatData> in TtFullHadSignalSelMVATrainer_cfi";
84 std::cout<<
"Config File Error!! Please check <whatData> in TtFullHadSignalSelMVATrainer_cfi"<<std::endl;;
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define MVA_TRAINER_IMPLEMENT(N)
~TtFullHadSignalSelMVATrainer()
Class derived from the TopGenEvent for ttbar events.
double evaluateTtFullHadSignalSel(PhysicsTools::MVAComputerCache &mvaComputer, const TtFullHadSignalSel &sigsel, double weight=1.0, const bool training=false, const bool isSignal=false)
edm::EDGetTokenT< std::vector< pat::Jet > > jetsToken_
edm::EDGetTokenT< TtGenEvent > genEvtToken_
virtual void analyze(const edm::Event &evt, const edm::EventSetup &setup)
TtFullHadSignalSelMVATrainer(const edm::ParameterSet &)
genEvtToken_(mayConsume< TtGenEvent >(genEvt_))
PhysicsTools::MVAComputerCache mvaComputer
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")