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

Comparing UserCode/MitHzz4l/Selection/src/applySelection.cc (file contents):
Revision 1.4 by dkralph, Thu Sep 22 18:01:19 2011 UTC vs.
Revision 1.5 by dkralph, Wed Oct 12 17:25:15 2011 UTC

# Line 47 | Line 47 | using namespace std;
47   #include "Selection.h"
48   #include "HZZCiCElectronSelection.h"
49   #include "HZZLikelihoodElectronSelection.h"
50 + #include "HZZBDTElectronSelection.h"
51   #include "SampleWeight.h"
52  
53   //#define THEIR_EVENTS
# Line 98 | Line 99 | int main(int argc, char** argv)
99    TH1F * h_evtfail = new TH1F("hevtfail", "hevtfail", 1024, 0, 1024 );
100    TNtuple * passtuple = new TNtuple( "passtuple", "passtuple", "run:evt:lumi:channel:mZ1:mZ2:m4l:pt4l:w" );
101    initCiCSelection();
102 <  initLikSelection();
102 >  if(ctrl.eleSele=="lik") initLikSelection();
103 >  if(ctrl.eleSele=="bdt") initBDTSelection();
104    initRunLumiRangeMap();
105  
106    //
# Line 132 | Line 134 | int main(int argc, char** argv)
134  
135  
136    cout << "nEntries: " << chain->GetEntries() << endl;
137 <  for(UInt_t ientry=0; ientry<chain->GetEntries(); ientry++) {          
137 >  for(UInt_t ientry=0; ientry<chain->GetEntries(); ientry++) {
138  
139      chain->GetEntry(ientry);
140      if(!(ientry%100000)) cout << "entry: " << ientry << endl;
# Line 197 | Line 199 | int main(int argc, char** argv)
199    file->Close();
200    delete file;
201  
202 +  // map<TString,TMVA::Reader*>::iterator it;
203 +  // for(it=readers.begin(); it!=readers.end(); it++) delete (*it).second;
204 +
205    cerr << "done!" << endl;
206   }
207  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines