Changes in examples/Validation.cpp [1160e4f:360d17e] in git
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
examples/Validation.cpp
r1160e4f r360d17e 476 476 TF1 *f1 = new TF1("f1", "gaus", hist->GetMean()-2*hist->GetRMS(), hist->GetMean()+2*hist->GetRMS()); 477 477 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); 485 480 delete f1; 486 481 return make_pair (sig, sigErr); … … 740 735 std::pair<TH1D*,TH1D*> histos_el = GetEff<Electron>(branchElectron, branchParticleElectron, "Electron", elID, treeReaderElectron); 741 736 742 histos_el.second->SaveAs("test1.pdf");743 744 737 // tracking reconstruction efficiency 745 738 std::pair <TH1D*,TH1D*> histos_eltrack = GetEff<Track>(branchTrackElectron, branchParticleElectron, "electronTrack", elID, treeReaderElectron); … … 841 834 DrawAxis(mg_elFwd, leg_elFwd, 0.2); 842 835 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"); 845 838 846 839 gDirectory->cd(0); … … 942 935 DrawAxis(mg_muFwd, leg_muFwd, 0.3); 943 936 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"); 949 939 950 940 gDirectory->cd(0); … … 1013 1003 leg_ph2->Draw(); 1014 1004 1015 C_ph1->SaveAs(phEff+".eps");1016 1017 1005 TString phRes = "phERes"; 1018 1006 TString phResFwd = "phEResFwd"; … … 1048 1036 DrawAxis(mg_phFwd, leg_phFwd, 0.3); 1049 1037 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"); 1054 1040 1055 1041 gDirectory->cd(0); … … 1182 1168 DrawAxis(mg_jetFwd, leg_jetFwd, 0.25); 1183 1169 1184 C_btag1->SaveAs(btagEff+".eps");1185 C_jet->SaveAs(jetRes+".eps");1186 1187 1170 TString metRes = "MetRes"; 1188 1171 TCanvas *C_met = new TCanvas(metRes,metRes, 800, 600); … … 1204 1187 mg_met->GetYaxis()->SetTitle("#sigma(ME_{x}) [GeV]"); 1205 1188 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"); 1212 1193 1213 1194 TFile *fout = new TFile(outputFile,"recreate");
Note:
See TracChangeset
for help on using the changeset viewer.