Changeset 629e819 in git
- Timestamp:
- Aug 25, 2016, 4:29:55 PM (8 years ago)
- Branches:
- ImprovedOutputFile, Timing, dual_readout, llp, master
- Children:
- b3bd4d2
- Parents:
- 70b9632
- Location:
- examples
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
examples/Validation.cpp
r70b9632 r629e819 188 188 TH1D *histRecoPtfwd = new TH1D(name+" reco spectra Eta",name+" reco spectra fwd", Nbins, TMath::Log10(ptrangemin), TMath::Log10(ptrangemax)); 189 189 190 histGenPtcen->SetDirectory(0); 191 histRecoPtcen->SetDirectory(0); 192 histGenPtfwd->SetDirectory(0); 193 histRecoPtfwd->SetDirectory(0); 190 194 191 195 BinLogX(histGenPtcen); … … 329 333 for (bin = 0; bin < Nbins; bin++) 330 334 { 331 if(pt > histos->at(bin).ptmin && pt < histos->at(bin).ptmax && eta > 0.0 && eta< 2.5)335 if(pt > histos->at(bin).ptmin && pt < histos->at(bin).ptmax && eta < 2.5) 332 336 { 333 337 if (eta < 1.5) {histos->at(bin).cenResolHist->Fill(recoMomentum.Pt()/bestGenMomentum.Pt());} … … 731 735 std::pair<TH1D*,TH1D*> histos_el = GetEff<Electron>(branchElectron, branchParticleElectron, "Electron", elID, treeReaderElectron); 732 736 737 histos_el.second->SaveAs("test1.pdf"); 738 733 739 // tracking reconstruction efficiency 734 740 std::pair <TH1D*,TH1D*> histos_eltrack = GetEff<Track>(branchTrackElectron, branchParticleElectron, "electronTrack", elID, treeReaderElectron); … … 795 801 DrawAxis(histos_eltrack.second, leg_el2, 0); 796 802 leg_el2->Draw(); 797 798 C_el1->cd(0);799 803 800 804 TString elRes = "electronERes"; … … 1276 1280 char *appName = "Validation"; 1277 1281 1278 if(argc != 3)1282 if(argc != 8) 1279 1283 { 1280 1284 cout << " Usage: " << appName << " input_file_electron input_file_muon input_file_photon input_file_jet input_file_bjet input_file_taujet output_file" << endl; -
examples/validation.sh
r70b9632 r629e819 13 13 runParticleGun jet 1 14 14 runParticleGun tau 15 15 exit16 # hadd delphes_all.root delphes_ParticleGunmu.root delphes_ParticleGunb.root delphes_ParticleGunjet.root17 hadd delphes_b_jet.root delphes_ParticleGunb.root delphes_ParticleGuntau.root delphes_ParticleGunjet.root18 15 19 ./Validation_electron delphes_ParticleGunel.root delphes_validation_electron.root 20 ./Validation_muon delphes_ParticleGunmu.root delphes_validation_muon.root 21 ./Validation_photon delphes_ParticleGunph.root delphes_validation_photon.root 22 ./Validation_jet delphes_b_tau_jet.root delphes_validation_jet.root 16 ./Validation delphes_ParticleGunel.root delphes_ParticleGunmu.root delphes_ParticleGunph.root delphes_ParticleGunjet.root delphes_ParticleGunb.root delphes_ParticleGuntau.root validation.root 17
Note:
See TracChangeset
for help on using the changeset viewer.