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;
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)
def setup(process, global_tag, zero_tesla=False)
bool isFullHadronic(bool excludeTauLeptons=false) const
check if the event can be classified as full hadronic
~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 &)
PhysicsTools::MVAComputerCache mvaComputer
bool isTtBar() const
check if the event can be classified as ttbar