Fork me on GitHub

Changeset eb3be06 in git


Ignore:
Timestamp:
Apr 12, 2017, 5:20:15 PM (8 years ago)
Author:
Michele Selvaggi <michele.selvaggi@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
c4e18da
Parents:
2871513
Message:

updated range, and added runJetGun

Location:
examples
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • examples/Validation.cpp

    r2871513 reb3be06  
    22632263
    22642264    mg_met_res_ht->Draw("APE");
    2265     DrawAxis(mg_met_res_ht, leg_met_res_ht, 10, 10000, 0.1, 1000, " #sum p_{T} [GeV]", "resolution in E_{x,y}^{miss} [GeV]", true, true);
     2265    DrawAxis(mg_met_res_ht, leg_met_res_ht, 100, 100000, 0.1, 1000, " #sum p_{T} [GeV]", "resolution in E_{x,y}^{miss} [GeV]", true, true);
    22662266
    22672267    leg_met_res_ht->Draw();
     
    26422642
    26432643    mg_recbjet_lmis_pt->Draw("APE");
    2644     DrawAxis(mg_recbjet_lmis_pt, leg_recbjet_lmis_pt, ptMin, ptMax, 0.0, 0.5, "p_{T} [GeV]", "light - mistag rate (%)", true, false);
     2644    DrawAxis(mg_recbjet_lmis_pt, leg_recbjet_lmis_pt, ptMin, ptMax, 0.0, 10, "p_{T} [GeV]", "light - mistag rate (%)", true, false);
    26452645    leg_recbjet_lmis_pt->Draw();
    26462646    pave->Draw();
     
    26532653
    26542654    mg_recbjet_lmis_eta->Draw("APE");
    2655     DrawAxis(mg_recbjet_lmis_eta, leg_recbjet_lmis_eta, etaMin, etaMax, 0.0, 0.5, " #eta ", "light - mistag rate (%)", false, false);
     2655    DrawAxis(mg_recbjet_lmis_eta, leg_recbjet_lmis_eta, etaMin, etaMax, 0.0, 20.0, " #eta ", "light - mistag rate (%)", false, false);
    26562656    leg_recbjet_lmis_eta->Draw();
    26572657    pave->Draw();
  • examples/validation.sh

    r2871513 reb3be06  
     1#!/bin/sh
    12##############################################################################################
    23#
     
    2021############################################################################################
    2122
    22 #! /bin/sh
    23 
    2423EXPECTED_ARGS=2
    2524E_BADARGS=65
     
    4241version=$(cat VERSION)
    4342outpdf=$mainoutputdir/${output%.*}.pdf
     43qcdPgLocation="/home/fynu/mselvaggi/storage/DelphesValidationSamples"
    4444
    4545mkdir -p $outputroot
     
    4747
    4848sed 's/delphes_card_CMS.tcl/'$cardbase'/g' cards/validation_card.tcl  > $validationCard
     49sed -i "1i set MaxEvents ${nEvents}" "$validationCard"
    4950
    5051function runParticleGun {
     
    5960}
    6061
    61 runParticleGun pion 211
    62 runParticleGun electron 11
    63 runParticleGun muon 13
    64 runParticleGun photon 22
    65 runParticleGun neutron 2112
    66 runParticleGun jet 1
    67 runParticleGun bjet 5
    68 runParticleGun cjet 4
    69 runParticleGun taujet 15
     62
     63function runJetsGun {
     64  name=$1
     65  pid=$2
     66  inputroot="${qcdPgLocation}/${pid}.root"
     67  rootfile="particleGun_${name}_${cardlabel}.root"
     68  ./DelphesROOT $validationCard $outputroot/$rootfile $inputroot
     69  echo "./DelphesROOT $validationCard $outputroot/$rootfile $inputroot"
     70}
     71
     72
     73runParticleGun pion 211
     74runParticleGun electron 11
     75runParticleGun muon 13
     76runParticleGun photon 22
     77runParticleGun neutron 2112
     78runParticleGun taujet 15
     79runJetsGun jet 1 &
     80runJetsGun bjet 5 &
     81runJetsGun cjet 4 &
     82
     83wait
     84echo all particle guns complete ...
     85
    7086
    7187./Validation $outputroot/particleGun_pion_$cardlabel.root $outputroot/particleGun_electron_$cardlabel.root $outputroot/particleGun_muon_$cardlabel.root $outputroot/particleGun_photon_$cardlabel.root $outputroot/particleGun_neutron_$cardlabel.root $outputroot/particleGun_jet_$cardlabel.root $outputroot/particleGun_bjet_$cardlabel.root $outputroot/particleGun_cjet_$cardlabel.root $outputroot/particleGun_taujet_$cardlabel.root $mainoutputdir/$output $version
Note: See TracChangeset for help on using the changeset viewer.