Fork me on GitHub

Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • examples/Validation.cpp

    r1160e4f r360d17e  
    476476  TF1 *f1 = new TF1("f1", "gaus", hist->GetMean()-2*hist->GetRMS(), hist->GetMean()+2*hist->GetRMS());
    477477  hist->Fit("f1","RQ");
    478 
    479   TF1 *f2 = new TF1("f2", "gaus", f1->GetParameter(1) - 2*f1->GetParameter(2), f1->GetParameter(1) + 2*f1->GetParameter(2));
    480   hist->Fit("f2","RQ"); 
    481 
    482   Double_t sig = f2->GetParameter(2);
    483   Double_t sigErr = f2->GetParError(2);
    484 
     478  Double_t sig = f1->GetParameter(2);
     479  Double_t sigErr = f1->GetParError(2);
    485480  delete f1;
    486481  return make_pair (sig, sigErr);
     
    740735  std::pair<TH1D*,TH1D*> histos_el = GetEff<Electron>(branchElectron, branchParticleElectron, "Electron", elID, treeReaderElectron);
    741736
    742   histos_el.second->SaveAs("test1.pdf");
    743 
    744737  // tracking reconstruction efficiency
    745738  std::pair <TH1D*,TH1D*> histos_eltrack = GetEff<Track>(branchTrackElectron, branchParticleElectron, "electronTrack", elID, treeReaderElectron);
     
    841834  DrawAxis(mg_elFwd, leg_elFwd, 0.2);
    842835
    843   C_el1->Print("validation.pdf(","pdf");
    844   C_el2->Print("validation.pdf","pdf");
     836  C_el1->Print("delphes_validation.pdf(","pdf");
     837  C_el2->Print("delphes_validation.pdf","pdf");
    845838
    846839  gDirectory->cd(0);
     
    942935  DrawAxis(mg_muFwd, leg_muFwd, 0.3);
    943936
    944   //C_mu1->SaveAs(muEff+".eps");
    945   //C_mu->SaveAs(muRes+".eps");
    946 
    947   C_mu1->Print("validation.pdf","pdf");
    948   C_mu->Print("validation.pdf","pdf");
     937  C_mu1->Print("delphes_validation.pdf","pdf");
     938  C_mu->Print("delphes_validation.pdf","pdf");
    949939
    950940  gDirectory->cd(0);
     
    10131003  leg_ph2->Draw();
    10141004
    1015   C_ph1->SaveAs(phEff+".eps");
    1016 
    10171005  TString phRes = "phERes";
    10181006  TString phResFwd = "phEResFwd";
     
    10481036  DrawAxis(mg_phFwd, leg_phFwd, 0.3);
    10491037
    1050   C_ph->SaveAs(phRes+".eps");
    1051 
    1052   C_ph1->Print("validation.pdf","pdf");
    1053   C_ph->Print("validation.pdf","pdf");
     1038  C_ph1->Print("delphes_validation.pdf","pdf");
     1039  C_ph->Print("delphes_validation.pdf","pdf");
    10541040
    10551041  gDirectory->cd(0);
     
    11821168  DrawAxis(mg_jetFwd, leg_jetFwd, 0.25);
    11831169
    1184   C_btag1->SaveAs(btagEff+".eps");
    1185   C_jet->SaveAs(jetRes+".eps");
    1186 
    11871170  TString metRes = "MetRes";
    11881171  TCanvas *C_met = new TCanvas(metRes,metRes, 800, 600);
     
    12041187  mg_met->GetYaxis()->SetTitle("#sigma(ME_{x}) [GeV]");
    12051188
    1206   C_met->SaveAs(metRes+".eps");
    1207 
    1208   C_jet->Print("validation.pdf","pdf");
    1209   C_btag1->Print("validation.pdf","pdf");
    1210   C_tautag1->Print("validation.pdf","pdf");
    1211   C_met->Print("validation.pdf)","pdf");
     1189  C_jet->Print("delphes_validation.pdf","pdf");
     1190  C_btag1->Print("delphes_validation.pdf","pdf");
     1191  C_tautag1->Print("delphes_validation.pdf","pdf");
     1192  C_met->Print("delphes_validation.pdf)","pdf");
    12121193
    12131194  TFile *fout = new TFile(outputFile,"recreate");
Note: See TracChangeset for help on using the changeset viewer.