ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitHzz4l/Selection/src/Selection.cc
(Generate patch)

Comparing UserCode/MitHzz4l/Selection/src/Selection.cc (file contents):
Revision 1.6 by khahn, Thu Oct 13 14:20:55 2011 UTC vs.
Revision 1.7 by khahn, Fri Oct 14 11:20:25 2011 UTC

# Line 1 | Line 1
1   #include "Selection.h"
2   #include "PassHLT.h"
3 +
4 + #include "SiMVAElectronSelection.h"
5 +
6   #include "HZZCiCElectronSelection.h"
7   #include "HZZLikelihoodElectronSelection.h"
8   #include "HZZBDTElectronSelection.h"
# Line 163 | Line 166 | unsigned fails_HZZ4L_selection(ControlFl
166      }
167      unsigned  failsBDT=0;
168      if(ctrl.eleSele=="bdt") {
169 <      failsBDT = failsBDTSelection(ele,ctrl.kinematics,ctrl.eleSeleScheme);
169 >      failsBDT = failsBDTSelection(ctrl,ele);
170        FAIL = failsBDT;
171      }
172 +    unsigned  failsSi=0;
173 +    if(ctrl.eleSele=="si") {
174 +      failsSi = failsSiMVAElectronSelection(ctrl, ele, 0.95, ctrl.kinematics);
175 +      FAIL = failsSi;
176 +    }
177 +
178 +
179 +
180  
181      if( ctrl.debug ){
182        cout << "CIC category: " << cicCategory(ele)
# Line 580 | Line 591 | unsigned fails_HZZ4L_selection(ControlFl
591            unsigned evt   = info->evtNum;
592            unsigned lumi  = info->lumiSec;
593            unsigned chan  = channel;
594 +          double   w     = eventweight;
595            float mZ1      = Z1Candidate.M() ;
596            float mZ2      = Z2Candidate.M() ;
597            float m4l      = ZZSystem.M() ;
# Line 591 | Line 603 | unsigned fails_HZZ4L_selection(ControlFl
603            passtuple->SetBranchAddress("mZ2",  &mZ2);
604            passtuple->SetBranchAddress("m4l",  &m4l);
605            passtuple->SetBranchAddress("pt4l", &pt4l);
606 <          passtuple->SetBranchAddress("w",    &eventweight);
606 >          passtuple->SetBranchAddress("w",    &w);
607            passtuple->Fill( );
608          }
609  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines