Changeset f01dee6 in git
- Timestamp:
- Jun 28, 2016, 4:55:13 PM (8 years ago)
- Branches:
- ImprovedOutputFile, Timing, dual_readout, llp, master
- Children:
- 90ccc5d
- Parents:
- a3a556c
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
examples/Pythia8/configParticleGun.cmnd
ra3a556c rf01dee6 3 3 ! 1) Settings used in the main program. 4 4 5 Main:numberOfEvents = 10000 ! number of events to generate5 Main:numberOfEvents = 100000 ! number of events to generate 6 6 Main:timesAllowErrors = 3 ! how many aborts before run stops 7 7 Main:spareFlag1 = on ! true means particle gun 8 Main:spareMode1 = 11! 1-5 - di-quark, 21 - di-gluon, 11 - single electron, 13 - single muon, 22 - single photon8 Main:spareMode1 = ID ! 1-5 - di-quark, 21 - di-gluon, 11 - single electron, 13 - single muon, 22 - single photon 9 9 Main:spareParm1 = 10000 ! max pt 10 10 -
examples/Validation.C
ra3a556c rf01dee6 1 /*2 This macro shows how to compute jet energy scale.3 root -l examples/Example4.C'("delphes_output.root", "plots.root")'4 5 The output ROOT file contains the pT(MC)/pT(Reco) distributions for6 various pT(Reco) and |eta| bins. The peak value of such distribution is7 interpreted as the jet energy correction to be applied for that8 given pT(Reco), |eta| bin.9 10 This can be done by modifying the "ScaleFormula" input parameter to11 the JetEnergyScale module in the delphes_card_XXX.tcl12 13 e.g a smooth function:14 15 set ScaleFormula { sqrt(3.0 - 0.1*(abs(eta)))^2 / pt + 1.0) }16 17 or a binned function:18 19 set ScaleFormula {(abs(eta) > 0.0 && abs(eta) <= 2.5) * (pt > 20.0 && pt <= 50.0) * (1.10) +20 (abs(eta) > 0.0 && abs(eta) <= 2.5) * (pt > 50.0 && pt <= 100.0) * (1.05) +21 (abs(eta) > 0.0 && abs(eta) <= 2.5) * (pt > 100.0) * (1.00) +22 (abs(eta) > 2.5 && abs(eta) <= 5.0) * (pt > 20.0 && pt <= 50.0) * (1.10) +23 (abs(eta) > 2.5 && abs(eta) <= 5.0) * (pt > 50.0 && pt <= 100.0) * (1.05) +24 (abs(eta) > 2.5 && abs(eta) <= 5.0) * (pt > 100.0) * (1.00)}25 26 Be aware that a binned jet energy scale can produce "steps" in the corrected27 jet pt distribution ...28 */29 30 1 #ifdef __CLING__ 31 2 R__LOAD_LIBRARY(libDelphes) … … 304 275 if(pt > histos->at(bin).ptmin && pt < histos->at(bin).ptmax && eta > 0.0 && eta < 2.5) 305 276 { 306 if (eta < 1.5) {histos->at(bin).cenResolHist->Fill( (bestGenMomentum.E()-recoMomentum.E())/bestGenMomentum.E());}307 else if (eta < 2.5) {histos->at(bin).fwdResolHist->Fill( (bestGenMomentum.E()-recoMomentum.E())/bestGenMomentum.E());}277 if (eta < 1.5) {histos->at(bin).cenResolHist->Fill(recoMomentum.Pt()/bestGenMomentum.Pt());} 278 else if (eta < 2.5) {histos->at(bin).fwdResolHist->Fill(recoMomentum.Pt()/bestGenMomentum.Pt());} 308 279 } 309 280 } … … 660 631 gDirectory->cd(0); 661 632 662 /*663 633 /////////// 664 634 // Muons // … … 796 766 C_ph->SaveAs(phRes+".eps"); 797 767 798 */799 768 ////////// 800 769 // Jets // 801 770 ////////// 802 771 803 804 772 // PFJets Energy Resolution 805 773 std::vector<resolPlot> plots_pfjets; … … 856 824 } 857 825 858 /* 826 859 827 // gr.Write(); 860 828 histos_el.first->Write(); … … 875 843 //gr_eltrack.Write(); 876 844 //gr_eltower.Write(); 877 */ 845 878 846 879 847 C_el1->Write(); 880 848 C_el2->Write(); 881 849 C_jet->Write(); 882 /* 850 883 851 C_mu->Write(); 884 852 C_ph->Write(); 885 */ 853 886 854 gr_pfjets.Write(); 887 855 gr_calojets.Write();
Note:
See TracChangeset
for help on using the changeset viewer.