Fork me on GitHub

Changeset ebf057e in git for examples


Ignore:
Timestamp:
Aug 26, 2016, 2:17:11 PM (8 years ago)
Author:
Alexandre Mertens <alexandre.mertens@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
058006a
Parents:
1160e4f (diff), 7da1826 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'dev_01' of https://github.com/delphes/delphes into ValidationWorkWithPavel

Location:
examples
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • examples/Pythia8/configParticleGun.cmnd

    r1160e4f rebf057e  
    33! 1) Settings used in the main program.
    44
    5 Main:numberOfEvents = 100000         ! number of events to generate
     5Main:numberOfEvents = 10000        ! number of events to generate
    66Main:timesAllowErrors = 3          ! how many aborts before run stops
    7 Main:spareFlag1 = on                ! true means particle gun
    8 Main:spareMode1 = ID               ! 1-5 - di-quark, 21 - di-gluon, 11 - single electron, 13 - single muon, 22 - single photon
    9 Main:spareParm1 = 10000           ! max pt
     7Main:spareFlag1 = on               ! true means particle gun
     8Main:spareMode1 = 11               ! 1-5 - di-quark, 21 - di-gluon, 11 - single electron, 13 - single muon, 15 - single tau, 22 - single photon
     9Main:spareParm1 = 10000            ! max pt
     10Main:spareParm2 = 2.5              ! max eta
    1011
    1112! 2) Settings related to output in init(), next() and stat().
  • examples/Validation.cpp

    r1160e4f rebf057e  
    740740  std::pair<TH1D*,TH1D*> histos_el = GetEff<Electron>(branchElectron, branchParticleElectron, "Electron", elID, treeReaderElectron);
    741741
    742   histos_el.second->SaveAs("test1.pdf");
    743 
    744742  // tracking reconstruction efficiency
    745743  std::pair <TH1D*,TH1D*> histos_eltrack = GetEff<Track>(branchTrackElectron, branchParticleElectron, "electronTrack", elID, treeReaderElectron);
     
    841839  DrawAxis(mg_elFwd, leg_elFwd, 0.2);
    842840
    843   C_el1->Print("validation.pdf(","pdf");
    844   C_el2->Print("validation.pdf","pdf");
     841  C_el1->Print("delphes_validation.pdf(","pdf");
     842  C_el2->Print("delphes_validation.pdf","pdf");
    845843
    846844  gDirectory->cd(0);
     
    942940  DrawAxis(mg_muFwd, leg_muFwd, 0.3);
    943941
    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");
     942  C_mu1->Print("delphes_validation.pdf","pdf");
     943  C_mu->Print("delphes_validation.pdf","pdf");
    949944
    950945  gDirectory->cd(0);
     
    10131008  leg_ph2->Draw();
    10141009
    1015   C_ph1->SaveAs(phEff+".eps");
    1016 
    10171010  TString phRes = "phERes";
    10181011  TString phResFwd = "phEResFwd";
     
    10481041  DrawAxis(mg_phFwd, leg_phFwd, 0.3);
    10491042
    1050   C_ph->SaveAs(phRes+".eps");
    1051 
    1052   C_ph1->Print("validation.pdf","pdf");
    1053   C_ph->Print("validation.pdf","pdf");
     1043  C_ph1->Print("delphes_validation.pdf","pdf");
     1044  C_ph->Print("delphes_validation.pdf","pdf");
    10541045
    10551046  gDirectory->cd(0);
     
    11821173  DrawAxis(mg_jetFwd, leg_jetFwd, 0.25);
    11831174
    1184   C_btag1->SaveAs(btagEff+".eps");
    1185   C_jet->SaveAs(jetRes+".eps");
    1186 
    11871175  TString metRes = "MetRes";
    11881176  TCanvas *C_met = new TCanvas(metRes,metRes, 800, 600);
     
    12041192  mg_met->GetYaxis()->SetTitle("#sigma(ME_{x}) [GeV]");
    12051193
    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");
     1194  C_jet->Print("delphes_validation.pdf","pdf");
     1195  C_btag1->Print("delphes_validation.pdf","pdf");
     1196  C_tautag1->Print("delphes_validation.pdf","pdf");
     1197  C_met->Print("delphes_validation.pdf)","pdf");
    12121198
    12131199  TFile *fout = new TFile(outputFile,"recreate");
  • examples/validation.sh

    r1160e4f rebf057e  
    1 #!/bin/bash
     1#! /bin/sh
    22function runParticleGun {
    3     in=$1
    4     ID=$2
    5     outcmnd="examples/Pythia8/configParticleGun$in.cmnd"
    6     sed 's/ID/'$ID'/g' examples/Pythia8/configParticleGun.cmnd > $outcmnd
    7     ./DelphesPythia8 cards/delphes_card_CMS.tcl $outcmnd delphes_ParticleGun$in.root
     3  name=$1
     4  pid=$2
     5  cmnd="examples/Pythia8/configParticleGun_$name.cmnd"
     6  sed '/Main:spareMode1/s/=[[:space:]]*[0-9]*/= '$pid'/' examples/Pythia8/configParticleGun.cmnd > $cmnd
     7  ./DelphesPythia8 cards/delphes_card_CMS.tcl $cmnd delphes_ParticleGun_$name.root
    88}
    9 runParticleGun el 11
    10 runParticleGun mu 13
    11 runParticleGun ph 22
    12 runParticleGun b 5
     9
     10runParticleGun electron 11
     11runParticleGun muon 13
     12runParticleGun photon 22
    1313runParticleGun jet 1
    14 runParticleGun tau 15
     14runParticleGun bjet 5
     15runParticleGun taujet 15
    1516
    16 ./Validation delphes_ParticleGunel.root delphes_ParticleGunmu.root delphes_ParticleGunph.root delphes_ParticleGunjet.root delphes_ParticleGunb.root delphes_ParticleGuntau.root validation.root
    17 
     17./Validation delphes_ParticleGun_electron.root delphes_ParticleGun_muon.root delphes_ParticleGun_photon.root delphes_ParticleGun_jet.root delphes_ParticleGun_bjet.root delphes_ParticleGun_taujet.root delphes_validation.root
Note: See TracChangeset for help on using the changeset viewer.