Fork me on GitHub

Changeset 360d17e in git for examples/Validation.cpp


Ignore:
Timestamp:
Aug 26, 2016, 1:36:30 PM (8 years ago)
Author:
Pavel Demin <pavel.demin@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
46fb86c
Parents:
5076b1b
Message:

improve validation code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • examples/Validation.cpp

    r5076b1b r360d17e  
    735735  std::pair<TH1D*,TH1D*> histos_el = GetEff<Electron>(branchElectron, branchParticleElectron, "Electron", elID, treeReaderElectron);
    736736
    737   histos_el.second->SaveAs("test1.pdf");
    738 
    739737  // tracking reconstruction efficiency
    740738  std::pair <TH1D*,TH1D*> histos_eltrack = GetEff<Track>(branchTrackElectron, branchParticleElectron, "electronTrack", elID, treeReaderElectron);
     
    836834  DrawAxis(mg_elFwd, leg_elFwd, 0.2);
    837835
    838   C_el1->Print("validation.pdf(","pdf");
    839   C_el2->Print("validation.pdf","pdf");
     836  C_el1->Print("delphes_validation.pdf(","pdf");
     837  C_el2->Print("delphes_validation.pdf","pdf");
    840838
    841839  gDirectory->cd(0);
     
    937935  DrawAxis(mg_muFwd, leg_muFwd, 0.3);
    938936
    939   //C_mu1->SaveAs(muEff+".eps");
    940   //C_mu->SaveAs(muRes+".eps");
    941 
    942   C_mu1->Print("validation.pdf","pdf");
    943   C_mu->Print("validation.pdf","pdf");
     937  C_mu1->Print("delphes_validation.pdf","pdf");
     938  C_mu->Print("delphes_validation.pdf","pdf");
    944939
    945940  gDirectory->cd(0);
     
    10081003  leg_ph2->Draw();
    10091004
    1010   C_ph1->SaveAs(phEff+".eps");
    1011 
    10121005  TString phRes = "phERes";
    10131006  TString phResFwd = "phEResFwd";
     
    10431036  DrawAxis(mg_phFwd, leg_phFwd, 0.3);
    10441037
    1045   C_ph->SaveAs(phRes+".eps");
    1046 
    1047   C_ph1->Print("validation.pdf","pdf");
    1048   C_ph->Print("validation.pdf","pdf");
     1038  C_ph1->Print("delphes_validation.pdf","pdf");
     1039  C_ph->Print("delphes_validation.pdf","pdf");
    10491040
    10501041  gDirectory->cd(0);
     
    11771168  DrawAxis(mg_jetFwd, leg_jetFwd, 0.25);
    11781169
    1179   C_btag1->SaveAs(btagEff+".eps");
    1180   C_jet->SaveAs(jetRes+".eps");
    1181 
    11821170  TString metRes = "MetRes";
    11831171  TCanvas *C_met = new TCanvas(metRes,metRes, 800, 600);
     
    11991187  mg_met->GetYaxis()->SetTitle("#sigma(ME_{x}) [GeV]");
    12001188
    1201   C_met->SaveAs(metRes+".eps");
    1202 
    1203   C_jet->Print("validation.pdf","pdf");
    1204   C_btag1->Print("validation.pdf","pdf");
    1205   C_tautag1->Print("validation.pdf","pdf");
    1206   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");
    12071193
    12081194  TFile *fout = new TFile(outputFile,"recreate");
Note: See TracChangeset for help on using the changeset viewer.