Apply cut on a variable bb.Pt

Hi Friends,

I want to apply cut on bbPt as at some point given in a small part of my code. Could you please let me know how can I do this?

{
    //std::cout << __FILE__ << " : " << __LINE__ << " : " << "bs size is : " << bs.size () << std::endl;
    if(m_debug) Info("fill_1Lep","after onebexclmv");
    onebexclmv(bs_new, centralLight);
    //onebexcldr(bs, centralLight);
    solveNuPzdR(whad);
    //solveNuPzhighMass(whad, lepVec);
    if(m_debug) Info("fill_1Lep","afet solve pz nu");
    wlep = nu + lepVec;
    WW = wlep + whad;
    bb = bjet1 + bjet2;
    mbb = bb.M();
    hh = bb + WW;
    if (wlep.DeltaR(bjet1) < wlep.DeltaR(bjet2) )
    {
      leptop = wlep+bjet1;
      hadtop = whad+bjet2;
    }
    else
    {
      leptop = wlep+bjet2;
      hadtop = whad+bjet1;
    }
    //fillTreeVars();
    if (mbb < 100000 || mbb > 140000) pass_bbmass_CR = true;
}//close bjet=1

  **else if (bb.Pt()>=2)**

{

    if(LeptonPassed) 
    cutflow->Fill("1LepTrig_bjets",m_weight);
    if(lepton_plus_jets_passed)
    

Thanks in advance.

To be able to answer that I suspect we will need more information. Could you produce a minimal standalone example of what you are trying to do?

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.