ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/cbrown/AnalysisFramework/Plotting/Modules/SUSYScan.C
(Generate patch)

Comparing UserCode/cbrown/AnalysisFramework/Plotting/Modules/SUSYScan.C (file contents):
Revision 1.10 by buchmann, Mon Aug 15 11:54:29 2011 UTC vs.
Revision 1.11 by buchmann, Mon Aug 15 12:35:49 2011 UTC

# Line 354 | Line 354 | void scan_SUSY_parameter_space(string mc
354            if(sigmas[0]>-0.5) { // negative sigmas are the error signature of do_limit_wrapper, so we want to exclude them.
355              limitmap->Fill(mglu,mlsp,sigmas[0]);
356              dout << "A limit has been added at " << sigmas[0] << " for m_{glu}="<<mglu << " and m_{lsp}="<<mlsp<<endl;
357 <            
358 <          } else { //end of if sigma is positive
357 >          } //end of if sigma is positive
358 >        //end of not systematics only condition
359 >        } else {
360              sysjesmap->Fill(mglu,mlsp,sys_jes);
361              sysjsumap->Fill(mglu,mlsp,sys_jsu);
362              sysresmap->Fill(mglu,mlsp,sys_res);
363 <          }
363 <        }//end of not systematics only condition
363 >        }
364        }
365      }
366    }
# Line 378 | Line 378 | void scan_SUSY_parameter_space(string mc
378      if(runninglocally) {
379        CompleteSave(limcanvas,"SUSYScan/Limits_JZB_geq"+any2string(jzb_cut[ibin]));
380      } else {
381 <      TFile *outputfile=new TFile(("output/DistributedLimits_job"+string(any2string(jobnumber))+"_of_"+string(any2string(njobs))+".root").c_str(),"UPDATE");
381 >      TFile *outputfile=new TFile(("output/DistributedLimits_job"+string(any2string(jobnumber))+"_of_"+string(any2string(njobs))+".root").c_str(),"UPDATE");//needs to be "UPDATE" as we can get to this point for different JZB cuts and don't want to erase the previous data :-)
382        limitmap->Write();
383        outputfile->Close();
384      }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines