ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/Jeng/scripts/skim.C
(Generate patch)

Comparing UserCode/Jeng/scripts/skim.C (file contents):
Revision 1.2 by jengbou, Thu Apr 16 21:02:44 2009 UTC vs.
Revision 1.3 by jengbou, Mon Apr 20 23:41:31 2009 UTC

# Line 15 | Line 15
15   #include <TPaveStats.h>
16   #include <TTree.h>
17  
18 < TString fileName = "skimmed/QCDbin4_OldRelIso_rebin.root";
19 < // TString fileName = "skimmed/QCDbin4_OldRelIso_FastSim.root";
18 > // Output file
19 > TString fileName = "skimmed/QCDbinall_NewRelIso.root";
20   bool FastSim = false;
21 < TString isoname = "Old";
21 > TString isoname = "New";
22   // Jet bin:
23 < Int_t jbin = 4; // 1-3, 4 for >=4. Put in number less than 5
24 < double binwidth = 0.02; // 0.02,0.02,0.05,0.1 for New RelIso
23 > Int_t jbin = 0; // 1-3, 4 for >=4. Put in number less than 5; 0 for all jets
24 > double binwidth = 0.01; // 0.02,0.02,0.05,0.1 for New RelIso
25   // Histo range
26   double xMin = 0.0;
27   double xMax = 0.0;
# Line 147 | Line 147 | void skim::Loop()
147      bool goodD0sig = false; // d0sig condition
148  
149      if ( jbin > 4 ) {cout<<"Don't mess around!!! jbin should be less than 5!"<<endl;return;}
150 <    if (top_njets == jbin && jbin != 4) correctBin = true;
151 <    else if (top_njets >= jbin && jbin == 4) correctBin = true;
150 >    if ( jbin == 0 ){
151 >      if ( top_njets > jbin ) { correctBin = true; }
152 >    }
153 >    else if ( jbin == 4 ){
154 >      if ( top_njets >= jbin ) { correctBin = true; }
155 >    }
156 >    else {
157 >      if ( top_njets == jbin ) { correctBin = true; }
158 >    }
159 >    
160      if ( d0sig < d0sigCut ) goodD0sig = true;
161      
162      // Counting

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines