Skip to content

Commit

Permalink
add analysis and simplify environment
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkzerwas committed Jul 10, 2024
1 parent ccd5d65 commit 83aaeea
Show file tree
Hide file tree
Showing 70 changed files with 2,721 additions and 86 deletions.
15 changes: 15 additions & 0 deletions python/Generators/GeneratorBase.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,26 @@ def __init__(self,procinfo, settings,name,inputFileExtension):
self.key4hep_config += " source /cvmfs/sw-nightlies.hsf.org/key4hep/setup.sh\n"
self.key4hep_config += "fi\n\n"

self.analysis = self.write_analysis()

def write_analysis(self):
# write the analysis part based on the final state
analysis = ""
finalStateList = self.procinfo.get_final_pdg_list()
if len(finalStateList) == 2:
analysis+= "analyze2f -a {0} -b {1} ".format(finalStateList[0],finalStateList[1])
else:
return ""
analysis += "-i {0}.edm4hep -f {0}.root\n".format(self.GeneratorDatacardBase)
return analysis

def write_GeneratorDatacard(self,content):
with open(self.GeneratorDatacard, "w+") as file:
file.write(content)

def write_Key4hepScript(self,content):
# append the analysis to the content
content += self.analysis
# open the file for the evgen generation in EDM4HEP format
with open(self.key4hepScript, "w+") as file:
# set up KEY4HEP
Expand Down
4 changes: 2 additions & 2 deletions test/ref-results/Babayaga/Photon91.0/Run_Photon91.0.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ if [ -z "${KEY4HEP_STACK}" ]; then
fi

cat Photon91.0.dat | babayaga-fcc.exe
$CONVERTHEPMC2EDM4HEP/convertHepMC2EDM4HEP -i lhe -o hepmc3 events.lhe Photon91.0.hepmc3
$CONVERTHEPMC2EDM4HEP/convertHepMC2EDM4HEP -i hepmc3 -o edm4hep Photon91.0.hepmc3 Photon91.0.edm4hep
$K4GENERATORSCONFIG/convertHepMC2EDM4HEP -i lhe -o hepmc3 events.lhe Photon91.0.hepmc3
$K4GENERATORSCONFIG/convertHepMC2EDM4HEP -i hepmc3 -o edm4hep Photon91.0.hepmc3 Photon91.0.edm4hep
420 changes: 420 additions & 0 deletions test/ref-results/KKMC/Muon350/Muon350_ISR.dat

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions test/ref-results/KKMC/Muon350/Run_Muon350_ISR.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash
if [ -z "${KEY4HEP_STACK}" ]; then
source /cvmfs/sw-nightlies.hsf.org/key4hep/setup.sh
fi

KKMCee -c Muon350_ISR.dat -o Muon350_ISR.hepmc3
$K4GENERATORSCONFIG/convertHepMC2EDM4HEP -i hepmc3 -o edm4hep Muon350_ISR.hepmc3 Muon350_ISR.edm4hep
analyze2f -a 13 -b -13 -i Muon350_ISR.edm4hep -f Muon350_ISR.root
420 changes: 420 additions & 0 deletions test/ref-results/KKMC/Muon91.2/Muon91.2.dat

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions test/ref-results/KKMC/Muon91.2/Run_Muon91.2.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash
if [ -z "${KEY4HEP_STACK}" ]; then
source /cvmfs/sw-nightlies.hsf.org/key4hep/setup.sh
fi

KKMCee -c Muon91.2.dat -o Muon91.2.hepmc3
$K4GENERATORSCONFIG/convertHepMC2EDM4HEP -i hepmc3 -o edm4hep Muon91.2.hepmc3 Muon91.2.edm4hep
analyze2f -a 13 -b -13 -i Muon91.2.edm4hep -f Muon91.2.root
420 changes: 420 additions & 0 deletions test/ref-results/KKMC/MuonNeutrino350/MuonNeutrino350.dat

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions test/ref-results/KKMC/MuonNeutrino350/Run_MuonNeutrino350.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash
if [ -z "${KEY4HEP_STACK}" ]; then
source /cvmfs/sw-nightlies.hsf.org/key4hep/setup.sh
fi

KKMCee -c MuonNeutrino350.dat -o MuonNeutrino350.hepmc3
$K4GENERATORSCONFIG/convertHepMC2EDM4HEP -i hepmc3 -o edm4hep MuonNeutrino350.hepmc3 MuonNeutrino350.edm4hep
analyze2f -a 14 -b -14 -i MuonNeutrino350.edm4hep -f MuonNeutrino350.root
420 changes: 420 additions & 0 deletions test/ref-results/KKMC/MuonNeutrino91.2/MuonNeutrino91.2_ISR.dat

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash
if [ -z "${KEY4HEP_STACK}" ]; then
source /cvmfs/sw-nightlies.hsf.org/key4hep/setup.sh
fi

KKMCee -c MuonNeutrino91.2_ISR.dat -o MuonNeutrino91.2_ISR.hepmc3
$K4GENERATORSCONFIG/convertHepMC2EDM4HEP -i hepmc3 -o edm4hep MuonNeutrino91.2_ISR.hepmc3 MuonNeutrino91.2_ISR.edm4hep
analyze2f -a 14 -b -14 -i MuonNeutrino91.2_ISR.edm4hep -f MuonNeutrino91.2_ISR.root
8 changes: 8 additions & 0 deletions test/ref-results/KKMC/Tau350/Run_Tau350.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash
if [ -z "${KEY4HEP_STACK}" ]; then
source /cvmfs/sw-nightlies.hsf.org/key4hep/setup.sh
fi

KKMCee -c Tau350.dat -o Tau350.hepmc3
$K4GENERATORSCONFIG/convertHepMC2EDM4HEP -i hepmc3 -o edm4hep Tau350.hepmc3 Tau350.edm4hep
analyze2f -a 15 -b -15 -i Tau350.edm4hep -f Tau350.root
420 changes: 420 additions & 0 deletions test/ref-results/KKMC/Tau350/Tau350.dat

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions test/ref-results/KKMC/Tau91.2/Run_Tau91.2_ISR.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash
if [ -z "${KEY4HEP_STACK}" ]; then
source /cvmfs/sw-nightlies.hsf.org/key4hep/setup.sh
fi

KKMCee -c Tau91.2_ISR.dat -o Tau91.2_ISR.hepmc3
$K4GENERATORSCONFIG/convertHepMC2EDM4HEP -i hepmc3 -o edm4hep Tau91.2_ISR.hepmc3 Tau91.2_ISR.edm4hep
analyze2f -a 15 -b -15 -i Tau91.2_ISR.edm4hep -f Tau91.2_ISR.root
420 changes: 420 additions & 0 deletions test/ref-results/KKMC/Tau91.2/Tau91.2_ISR.dat

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ mg5_aMC Difermion_Polarized_ISR_BSTilc.dat
gunzip Output/Events/run_01/unweighted_events.lhe.gz
ln -sf Output/Events/run_01/unweighted_events.lhe unweighted_events.lhe
sed -i '/<header>/,/<\/header>/{//!d}' unweighted_events.lhe
$CONVERTHEPMC2EDM4HEP/convertHepMC2EDM4HEP -i lhe -o hepmc3 unweighted_events.lhe Difermion_Polarized_ISR_BSTilc.hepmc
$CONVERTHEPMC2EDM4HEP/convertHepMC2EDM4HEP -i hepmc3 -o edm4hep Difermion_Polarized_ISR_BSTilc.hepmc Difermion_Polarized_ISR_BSTilc.edm4hep
$K4GENERATORSCONFIG/convertHepMC2EDM4HEP -i lhe -o hepmc3 unweighted_events.lhe Difermion_Polarized_ISR_BSTilc.hepmc
$K4GENERATORSCONFIG/convertHepMC2EDM4HEP -i hepmc3 -o edm4hep Difermion_Polarized_ISR_BSTilc.hepmc Difermion_Polarized_ISR_BSTilc.edm4hep
analyze2f -a 13 -b -13 -i Difermion_Polarized_ISR_BSTilc.edm4hep -f Difermion_Polarized_ISR_BSTilc.root
5 changes: 3 additions & 2 deletions test/ref-results/Madgraph/Muon240/Run_Muon240_ISR_BSTcepc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ mg5_aMC Muon240_ISR_BSTcepc.dat
gunzip Output/Events/run_01/unweighted_events.lhe.gz
ln -sf Output/Events/run_01/unweighted_events.lhe unweighted_events.lhe
sed -i '/<header>/,/<\/header>/{//!d}' unweighted_events.lhe
$CONVERTHEPMC2EDM4HEP/convertHepMC2EDM4HEP -i lhe -o hepmc3 unweighted_events.lhe Muon240_ISR_BSTcepc.hepmc
$CONVERTHEPMC2EDM4HEP/convertHepMC2EDM4HEP -i hepmc3 -o edm4hep Muon240_ISR_BSTcepc.hepmc Muon240_ISR_BSTcepc.edm4hep
$K4GENERATORSCONFIG/convertHepMC2EDM4HEP -i lhe -o hepmc3 unweighted_events.lhe Muon240_ISR_BSTcepc.hepmc
$K4GENERATORSCONFIG/convertHepMC2EDM4HEP -i hepmc3 -o edm4hep Muon240_ISR_BSTcepc.hepmc Muon240_ISR_BSTcepc.edm4hep
analyze2f -a 13 -b -13 -i Muon240_ISR_BSTcepc.edm4hep -f Muon240_ISR_BSTcepc.root
5 changes: 3 additions & 2 deletions test/ref-results/Madgraph/Muon350/Run_Muon350_ISR.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ mg5_aMC Muon350_ISR.dat
gunzip Output/Events/run_01/unweighted_events.lhe.gz
ln -sf Output/Events/run_01/unweighted_events.lhe unweighted_events.lhe
sed -i '/<header>/,/<\/header>/{//!d}' unweighted_events.lhe
$CONVERTHEPMC2EDM4HEP/convertHepMC2EDM4HEP -i lhe -o hepmc3 unweighted_events.lhe Muon350_ISR.hepmc
$CONVERTHEPMC2EDM4HEP/convertHepMC2EDM4HEP -i hepmc3 -o edm4hep Muon350_ISR.hepmc Muon350_ISR.edm4hep
$K4GENERATORSCONFIG/convertHepMC2EDM4HEP -i lhe -o hepmc3 unweighted_events.lhe Muon350_ISR.hepmc
$K4GENERATORSCONFIG/convertHepMC2EDM4HEP -i hepmc3 -o edm4hep Muon350_ISR.hepmc Muon350_ISR.edm4hep
analyze2f -a 13 -b -13 -i Muon350_ISR.edm4hep -f Muon350_ISR.root
5 changes: 3 additions & 2 deletions test/ref-results/Madgraph/Muon91.2/Run_Muon91.2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ mg5_aMC Muon91.2.dat
gunzip Output/Events/run_01/unweighted_events.lhe.gz
ln -sf Output/Events/run_01/unweighted_events.lhe unweighted_events.lhe
sed -i '/<header>/,/<\/header>/{//!d}' unweighted_events.lhe
$CONVERTHEPMC2EDM4HEP/convertHepMC2EDM4HEP -i lhe -o hepmc3 unweighted_events.lhe Muon91.2.hepmc
$CONVERTHEPMC2EDM4HEP/convertHepMC2EDM4HEP -i hepmc3 -o edm4hep Muon91.2.hepmc Muon91.2.edm4hep
$K4GENERATORSCONFIG/convertHepMC2EDM4HEP -i lhe -o hepmc3 unweighted_events.lhe Muon91.2.hepmc
$K4GENERATORSCONFIG/convertHepMC2EDM4HEP -i hepmc3 -o edm4hep Muon91.2.hepmc Muon91.2.edm4hep
analyze2f -a 13 -b -13 -i Muon91.2.edm4hep -f Muon91.2.root
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ mg5_aMC MuonNeutrino350.dat
gunzip Output/Events/run_01/unweighted_events.lhe.gz
ln -sf Output/Events/run_01/unweighted_events.lhe unweighted_events.lhe
sed -i '/<header>/,/<\/header>/{//!d}' unweighted_events.lhe
$CONVERTHEPMC2EDM4HEP/convertHepMC2EDM4HEP -i lhe -o hepmc3 unweighted_events.lhe MuonNeutrino350.hepmc
$CONVERTHEPMC2EDM4HEP/convertHepMC2EDM4HEP -i hepmc3 -o edm4hep MuonNeutrino350.hepmc MuonNeutrino350.edm4hep
$K4GENERATORSCONFIG/convertHepMC2EDM4HEP -i lhe -o hepmc3 unweighted_events.lhe MuonNeutrino350.hepmc
$K4GENERATORSCONFIG/convertHepMC2EDM4HEP -i hepmc3 -o edm4hep MuonNeutrino350.hepmc MuonNeutrino350.edm4hep
analyze2f -a 14 -b -14 -i MuonNeutrino350.edm4hep -f MuonNeutrino350.root
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ mg5_aMC MuonNeutrino91.2_ISR.dat
gunzip Output/Events/run_01/unweighted_events.lhe.gz
ln -sf Output/Events/run_01/unweighted_events.lhe unweighted_events.lhe
sed -i '/<header>/,/<\/header>/{//!d}' unweighted_events.lhe
$CONVERTHEPMC2EDM4HEP/convertHepMC2EDM4HEP -i lhe -o hepmc3 unweighted_events.lhe MuonNeutrino91.2_ISR.hepmc
$CONVERTHEPMC2EDM4HEP/convertHepMC2EDM4HEP -i hepmc3 -o edm4hep MuonNeutrino91.2_ISR.hepmc MuonNeutrino91.2_ISR.edm4hep
$K4GENERATORSCONFIG/convertHepMC2EDM4HEP -i lhe -o hepmc3 unweighted_events.lhe MuonNeutrino91.2_ISR.hepmc
$K4GENERATORSCONFIG/convertHepMC2EDM4HEP -i hepmc3 -o edm4hep MuonNeutrino91.2_ISR.hepmc MuonNeutrino91.2_ISR.edm4hep
analyze2f -a 14 -b -14 -i MuonNeutrino91.2_ISR.edm4hep -f MuonNeutrino91.2_ISR.root
4 changes: 2 additions & 2 deletions test/ref-results/Madgraph/Photon91.0/Run_Photon91.0.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ mg5_aMC Photon91.0.dat
gunzip Output/Events/run_01/unweighted_events.lhe.gz
ln -sf Output/Events/run_01/unweighted_events.lhe unweighted_events.lhe
sed -i '/<header>/,/<\/header>/{//!d}' unweighted_events.lhe
$CONVERTHEPMC2EDM4HEP/convertHepMC2EDM4HEP -i lhe -o hepmc3 unweighted_events.lhe Photon91.0.hepmc
$CONVERTHEPMC2EDM4HEP/convertHepMC2EDM4HEP -i hepmc3 -o edm4hep Photon91.0.hepmc Photon91.0.edm4hep
$K4GENERATORSCONFIG/convertHepMC2EDM4HEP -i lhe -o hepmc3 unweighted_events.lhe Photon91.0.hepmc
$K4GENERATORSCONFIG/convertHepMC2EDM4HEP -i hepmc3 -o edm4hep Photon91.0.hepmc Photon91.0.edm4hep
5 changes: 3 additions & 2 deletions test/ref-results/Madgraph/Tau350/Run_Tau350.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ mg5_aMC Tau350.dat
gunzip Output/Events/run_01/unweighted_events.lhe.gz
ln -sf Output/Events/run_01/unweighted_events.lhe unweighted_events.lhe
sed -i '/<header>/,/<\/header>/{//!d}' unweighted_events.lhe
$CONVERTHEPMC2EDM4HEP/convertHepMC2EDM4HEP -i lhe -o hepmc3 unweighted_events.lhe Tau350.hepmc
$CONVERTHEPMC2EDM4HEP/convertHepMC2EDM4HEP -i hepmc3 -o edm4hep Tau350.hepmc Tau350.edm4hep
$K4GENERATORSCONFIG/convertHepMC2EDM4HEP -i lhe -o hepmc3 unweighted_events.lhe Tau350.hepmc
$K4GENERATORSCONFIG/convertHepMC2EDM4HEP -i hepmc3 -o edm4hep Tau350.hepmc Tau350.edm4hep
analyze2f -a 15 -b -15 -i Tau350.edm4hep -f Tau350.root
5 changes: 3 additions & 2 deletions test/ref-results/Madgraph/Tau91.2/Run_Tau91.2_ISR.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ mg5_aMC Tau91.2_ISR.dat
gunzip Output/Events/run_01/unweighted_events.lhe.gz
ln -sf Output/Events/run_01/unweighted_events.lhe unweighted_events.lhe
sed -i '/<header>/,/<\/header>/{//!d}' unweighted_events.lhe
$CONVERTHEPMC2EDM4HEP/convertHepMC2EDM4HEP -i lhe -o hepmc3 unweighted_events.lhe Tau91.2_ISR.hepmc
$CONVERTHEPMC2EDM4HEP/convertHepMC2EDM4HEP -i hepmc3 -o edm4hep Tau91.2_ISR.hepmc Tau91.2_ISR.edm4hep
$K4GENERATORSCONFIG/convertHepMC2EDM4HEP -i lhe -o hepmc3 unweighted_events.lhe Tau91.2_ISR.hepmc
$K4GENERATORSCONFIG/convertHepMC2EDM4HEP -i hepmc3 -o edm4hep Tau91.2_ISR.hepmc Tau91.2_ISR.edm4hep
analyze2f -a 15 -b -15 -i Tau91.2_ISR.edm4hep -f Tau91.2_ISR.root
5 changes: 3 additions & 2 deletions test/ref-results/Madgraph/Top1000/Run_Top1000_ISR.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ mg5_aMC Top1000_ISR.dat
gunzip Output/Events/run_01/unweighted_events.lhe.gz
ln -sf Output/Events/run_01/unweighted_events.lhe unweighted_events.lhe
sed -i '/<header>/,/<\/header>/{//!d}' unweighted_events.lhe
$CONVERTHEPMC2EDM4HEP/convertHepMC2EDM4HEP -i lhe -o hepmc3 unweighted_events.lhe Top1000_ISR.hepmc
$CONVERTHEPMC2EDM4HEP/convertHepMC2EDM4HEP -i hepmc3 -o edm4hep Top1000_ISR.hepmc Top1000_ISR.edm4hep
$K4GENERATORSCONFIG/convertHepMC2EDM4HEP -i lhe -o hepmc3 unweighted_events.lhe Top1000_ISR.hepmc
$K4GENERATORSCONFIG/convertHepMC2EDM4HEP -i hepmc3 -o edm4hep Top1000_ISR.hepmc Top1000_ISR.edm4hep
analyze2f -a 6 -b -6 -i Top1000_ISR.edm4hep -f Top1000_ISR.root
5 changes: 3 additions & 2 deletions test/ref-results/Madgraph/Top350/Run_Top350_ISR.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ mg5_aMC Top350_ISR.dat
gunzip Output/Events/run_01/unweighted_events.lhe.gz
ln -sf Output/Events/run_01/unweighted_events.lhe unweighted_events.lhe
sed -i '/<header>/,/<\/header>/{//!d}' unweighted_events.lhe
$CONVERTHEPMC2EDM4HEP/convertHepMC2EDM4HEP -i lhe -o hepmc3 unweighted_events.lhe Top350_ISR.hepmc
$CONVERTHEPMC2EDM4HEP/convertHepMC2EDM4HEP -i hepmc3 -o edm4hep Top350_ISR.hepmc Top350_ISR.edm4hep
$K4GENERATORSCONFIG/convertHepMC2EDM4HEP -i lhe -o hepmc3 unweighted_events.lhe Top350_ISR.hepmc
$K4GENERATORSCONFIG/convertHepMC2EDM4HEP -i hepmc3 -o edm4hep Top350_ISR.hepmc Top350_ISR.edm4hep
analyze2f -a 6 -b -6 -i Top350_ISR.edm4hep -f Top350_ISR.root
5 changes: 3 additions & 2 deletions test/ref-results/Madgraph/ZH250/Run_ZH250_ISR.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ mg5_aMC ZH250_ISR.dat
gunzip Output/Events/run_01/unweighted_events.lhe.gz
ln -sf Output/Events/run_01/unweighted_events.lhe unweighted_events.lhe
sed -i '/<header>/,/<\/header>/{//!d}' unweighted_events.lhe
$CONVERTHEPMC2EDM4HEP/convertHepMC2EDM4HEP -i lhe -o hepmc3 unweighted_events.lhe ZH250_ISR.hepmc
$CONVERTHEPMC2EDM4HEP/convertHepMC2EDM4HEP -i hepmc3 -o edm4hep ZH250_ISR.hepmc ZH250_ISR.edm4hep
$K4GENERATORSCONFIG/convertHepMC2EDM4HEP -i lhe -o hepmc3 unweighted_events.lhe ZH250_ISR.hepmc
$K4GENERATORSCONFIG/convertHepMC2EDM4HEP -i hepmc3 -o edm4hep ZH250_ISR.hepmc ZH250_ISR.edm4hep
analyze2f -a 23 -b 25 -i ZH250_ISR.edm4hep -f ZH250_ISR.root
5 changes: 3 additions & 2 deletions test/ref-results/Madgraph/ZH350/Run_ZH350_ISR.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ mg5_aMC ZH350_ISR.dat
gunzip Output/Events/run_01/unweighted_events.lhe.gz
ln -sf Output/Events/run_01/unweighted_events.lhe unweighted_events.lhe
sed -i '/<header>/,/<\/header>/{//!d}' unweighted_events.lhe
$CONVERTHEPMC2EDM4HEP/convertHepMC2EDM4HEP -i lhe -o hepmc3 unweighted_events.lhe ZH350_ISR.hepmc
$CONVERTHEPMC2EDM4HEP/convertHepMC2EDM4HEP -i hepmc3 -o edm4hep ZH350_ISR.hepmc ZH350_ISR.edm4hep
$K4GENERATORSCONFIG/convertHepMC2EDM4HEP -i lhe -o hepmc3 unweighted_events.lhe ZH350_ISR.hepmc
$K4GENERATORSCONFIG/convertHepMC2EDM4HEP -i hepmc3 -o edm4hep ZH350_ISR.hepmc ZH350_ISR.edm4hep
analyze2f -a 23 -b 25 -i ZH350_ISR.edm4hep -f ZH350_ISR.root
5 changes: 3 additions & 2 deletions test/ref-results/Madgraph/ZHDecay250/Run_ZHDecay250.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ mg5_aMC ZHDecay250.dat
gunzip Output/Events/run_01/unweighted_events.lhe.gz
ln -sf Output/Events/run_01/unweighted_events.lhe unweighted_events.lhe
sed -i '/<header>/,/<\/header>/{//!d}' unweighted_events.lhe
$CONVERTHEPMC2EDM4HEP/convertHepMC2EDM4HEP -i lhe -o hepmc3 unweighted_events.lhe ZHDecay250.hepmc
$CONVERTHEPMC2EDM4HEP/convertHepMC2EDM4HEP -i hepmc3 -o edm4hep ZHDecay250.hepmc ZHDecay250.edm4hep
$K4GENERATORSCONFIG/convertHepMC2EDM4HEP -i lhe -o hepmc3 unweighted_events.lhe ZHDecay250.hepmc
$K4GENERATORSCONFIG/convertHepMC2EDM4HEP -i hepmc3 -o edm4hep ZHDecay250.hepmc ZHDecay250.edm4hep
analyze2f -a 23 -b 25 -i ZHDecay250.edm4hep -f ZHDecay250.root
5 changes: 3 additions & 2 deletions test/ref-results/Madgraph/ZHDecay350/Run_ZHDecay350.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ mg5_aMC ZHDecay350.dat
gunzip Output/Events/run_01/unweighted_events.lhe.gz
ln -sf Output/Events/run_01/unweighted_events.lhe unweighted_events.lhe
sed -i '/<header>/,/<\/header>/{//!d}' unweighted_events.lhe
$CONVERTHEPMC2EDM4HEP/convertHepMC2EDM4HEP -i lhe -o hepmc3 unweighted_events.lhe ZHDecay350.hepmc
$CONVERTHEPMC2EDM4HEP/convertHepMC2EDM4HEP -i hepmc3 -o edm4hep ZHDecay350.hepmc ZHDecay350.edm4hep
$K4GENERATORSCONFIG/convertHepMC2EDM4HEP -i lhe -o hepmc3 unweighted_events.lhe ZHDecay350.hepmc
$K4GENERATORSCONFIG/convertHepMC2EDM4HEP -i hepmc3 -o edm4hep ZHDecay350.hepmc ZHDecay350.edm4hep
analyze2f -a 23 -b 25 -i ZHDecay350.edm4hep -f ZHDecay350.root
5 changes: 3 additions & 2 deletions test/ref-results/Pythia/Muon350/Run_Muon350_ISR.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ if [ -z "${KEY4HEP_STACK}" ]; then
source /cvmfs/sw-nightlies.hsf.org/key4hep/setup.sh
fi

$PYTHIA8RUNNER/pythiaRunner -f Muon350_ISR.dat
$CONVERTHEPMC2EDM4HEP/convertHepMC2EDM4HEP -i hepmc3 -o edm4hep Muon350_ISR.hepmc3 Muon350_ISR.edm4hep
$K4GENERATORSCONFIG/pythiaRunner -f Muon350_ISR.dat
$K4GENERATORSCONFIG/convertHepMC2EDM4HEP -i hepmc3 -o edm4hep Muon350_ISR.hepmc3 Muon350_ISR.edm4hep
analyze2f -a 13 -b -13 -i Muon350_ISR.edm4hep -f Muon350_ISR.root
5 changes: 3 additions & 2 deletions test/ref-results/Pythia/Muon91.2/Run_Muon91.2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ if [ -z "${KEY4HEP_STACK}" ]; then
source /cvmfs/sw-nightlies.hsf.org/key4hep/setup.sh
fi

$PYTHIA8RUNNER/pythiaRunner -f Muon91.2.dat
$CONVERTHEPMC2EDM4HEP/convertHepMC2EDM4HEP -i hepmc3 -o edm4hep Muon91.2.hepmc3 Muon91.2.edm4hep
$K4GENERATORSCONFIG/pythiaRunner -f Muon91.2.dat
$K4GENERATORSCONFIG/convertHepMC2EDM4HEP -i hepmc3 -o edm4hep Muon91.2.hepmc3 Muon91.2.edm4hep
analyze2f -a 13 -b -13 -i Muon91.2.edm4hep -f Muon91.2.root
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ if [ -z "${KEY4HEP_STACK}" ]; then
source /cvmfs/sw-nightlies.hsf.org/key4hep/setup.sh
fi

$PYTHIA8RUNNER/pythiaRunner -f MuonNeutrino350.dat
$CONVERTHEPMC2EDM4HEP/convertHepMC2EDM4HEP -i hepmc3 -o edm4hep MuonNeutrino350.hepmc3 MuonNeutrino350.edm4hep
$K4GENERATORSCONFIG/pythiaRunner -f MuonNeutrino350.dat
$K4GENERATORSCONFIG/convertHepMC2EDM4HEP -i hepmc3 -o edm4hep MuonNeutrino350.hepmc3 MuonNeutrino350.edm4hep
analyze2f -a 14 -b -14 -i MuonNeutrino350.edm4hep -f MuonNeutrino350.root
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ if [ -z "${KEY4HEP_STACK}" ]; then
source /cvmfs/sw-nightlies.hsf.org/key4hep/setup.sh
fi

$PYTHIA8RUNNER/pythiaRunner -f MuonNeutrino91.2_ISR.dat
$CONVERTHEPMC2EDM4HEP/convertHepMC2EDM4HEP -i hepmc3 -o edm4hep MuonNeutrino91.2_ISR.hepmc3 MuonNeutrino91.2_ISR.edm4hep
$K4GENERATORSCONFIG/pythiaRunner -f MuonNeutrino91.2_ISR.dat
$K4GENERATORSCONFIG/convertHepMC2EDM4HEP -i hepmc3 -o edm4hep MuonNeutrino91.2_ISR.hepmc3 MuonNeutrino91.2_ISR.edm4hep
analyze2f -a 14 -b -14 -i MuonNeutrino91.2_ISR.edm4hep -f MuonNeutrino91.2_ISR.root
4 changes: 2 additions & 2 deletions test/ref-results/Pythia/Photon91.0/Run_Photon91.0.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ if [ -z "${KEY4HEP_STACK}" ]; then
source /cvmfs/sw-nightlies.hsf.org/key4hep/setup.sh
fi

$PYTHIA8RUNNER/pythiaRunner -f Photon91.0.dat
$CONVERTHEPMC2EDM4HEP/convertHepMC2EDM4HEP -i hepmc3 -o edm4hep Photon91.0.hepmc3 Photon91.0.edm4hep
$K4GENERATORSCONFIG/pythiaRunner -f Photon91.0.dat
$K4GENERATORSCONFIG/convertHepMC2EDM4HEP -i hepmc3 -o edm4hep Photon91.0.hepmc3 Photon91.0.edm4hep
5 changes: 3 additions & 2 deletions test/ref-results/Pythia/Tau350/Run_Tau350.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ if [ -z "${KEY4HEP_STACK}" ]; then
source /cvmfs/sw-nightlies.hsf.org/key4hep/setup.sh
fi

$PYTHIA8RUNNER/pythiaRunner -f Tau350.dat
$CONVERTHEPMC2EDM4HEP/convertHepMC2EDM4HEP -i hepmc3 -o edm4hep Tau350.hepmc3 Tau350.edm4hep
$K4GENERATORSCONFIG/pythiaRunner -f Tau350.dat
$K4GENERATORSCONFIG/convertHepMC2EDM4HEP -i hepmc3 -o edm4hep Tau350.hepmc3 Tau350.edm4hep
analyze2f -a 15 -b -15 -i Tau350.edm4hep -f Tau350.root
5 changes: 3 additions & 2 deletions test/ref-results/Pythia/Tau91.2/Run_Tau91.2_ISR.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ if [ -z "${KEY4HEP_STACK}" ]; then
source /cvmfs/sw-nightlies.hsf.org/key4hep/setup.sh
fi

$PYTHIA8RUNNER/pythiaRunner -f Tau91.2_ISR.dat
$CONVERTHEPMC2EDM4HEP/convertHepMC2EDM4HEP -i hepmc3 -o edm4hep Tau91.2_ISR.hepmc3 Tau91.2_ISR.edm4hep
$K4GENERATORSCONFIG/pythiaRunner -f Tau91.2_ISR.dat
$K4GENERATORSCONFIG/convertHepMC2EDM4HEP -i hepmc3 -o edm4hep Tau91.2_ISR.hepmc3 Tau91.2_ISR.edm4hep
analyze2f -a 15 -b -15 -i Tau91.2_ISR.edm4hep -f Tau91.2_ISR.root
5 changes: 3 additions & 2 deletions test/ref-results/Pythia/Top1000/Run_Top1000_ISR.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ if [ -z "${KEY4HEP_STACK}" ]; then
source /cvmfs/sw-nightlies.hsf.org/key4hep/setup.sh
fi

$PYTHIA8RUNNER/pythiaRunner -f Top1000_ISR.dat
$CONVERTHEPMC2EDM4HEP/convertHepMC2EDM4HEP -i hepmc3 -o edm4hep Top1000_ISR.hepmc3 Top1000_ISR.edm4hep
$K4GENERATORSCONFIG/pythiaRunner -f Top1000_ISR.dat
$K4GENERATORSCONFIG/convertHepMC2EDM4HEP -i hepmc3 -o edm4hep Top1000_ISR.hepmc3 Top1000_ISR.edm4hep
analyze2f -a 6 -b -6 -i Top1000_ISR.edm4hep -f Top1000_ISR.root
5 changes: 3 additions & 2 deletions test/ref-results/Pythia/Top350/Run_Top350_ISR.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ if [ -z "${KEY4HEP_STACK}" ]; then
source /cvmfs/sw-nightlies.hsf.org/key4hep/setup.sh
fi

$PYTHIA8RUNNER/pythiaRunner -f Top350_ISR.dat
$CONVERTHEPMC2EDM4HEP/convertHepMC2EDM4HEP -i hepmc3 -o edm4hep Top350_ISR.hepmc3 Top350_ISR.edm4hep
$K4GENERATORSCONFIG/pythiaRunner -f Top350_ISR.dat
$K4GENERATORSCONFIG/convertHepMC2EDM4HEP -i hepmc3 -o edm4hep Top350_ISR.hepmc3 Top350_ISR.edm4hep
analyze2f -a 6 -b -6 -i Top350_ISR.edm4hep -f Top350_ISR.root
5 changes: 3 additions & 2 deletions test/ref-results/Pythia/ZH250/Run_ZH250_ISR.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ if [ -z "${KEY4HEP_STACK}" ]; then
source /cvmfs/sw-nightlies.hsf.org/key4hep/setup.sh
fi

$PYTHIA8RUNNER/pythiaRunner -f ZH250_ISR.dat
$CONVERTHEPMC2EDM4HEP/convertHepMC2EDM4HEP -i hepmc3 -o edm4hep ZH250_ISR.hepmc3 ZH250_ISR.edm4hep
$K4GENERATORSCONFIG/pythiaRunner -f ZH250_ISR.dat
$K4GENERATORSCONFIG/convertHepMC2EDM4HEP -i hepmc3 -o edm4hep ZH250_ISR.hepmc3 ZH250_ISR.edm4hep
analyze2f -a 23 -b 25 -i ZH250_ISR.edm4hep -f ZH250_ISR.root
5 changes: 3 additions & 2 deletions test/ref-results/Pythia/ZH350/Run_ZH350_ISR.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ if [ -z "${KEY4HEP_STACK}" ]; then
source /cvmfs/sw-nightlies.hsf.org/key4hep/setup.sh
fi

$PYTHIA8RUNNER/pythiaRunner -f ZH350_ISR.dat
$CONVERTHEPMC2EDM4HEP/convertHepMC2EDM4HEP -i hepmc3 -o edm4hep ZH350_ISR.hepmc3 ZH350_ISR.edm4hep
$K4GENERATORSCONFIG/pythiaRunner -f ZH350_ISR.dat
$K4GENERATORSCONFIG/convertHepMC2EDM4HEP -i hepmc3 -o edm4hep ZH350_ISR.hepmc3 ZH350_ISR.edm4hep
analyze2f -a 23 -b 25 -i ZH350_ISR.edm4hep -f ZH350_ISR.root
5 changes: 3 additions & 2 deletions test/ref-results/Pythia/ZHDecay250/Run_ZHDecay250.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ if [ -z "${KEY4HEP_STACK}" ]; then
source /cvmfs/sw-nightlies.hsf.org/key4hep/setup.sh
fi

$PYTHIA8RUNNER/pythiaRunner -f ZHDecay250.dat
$CONVERTHEPMC2EDM4HEP/convertHepMC2EDM4HEP -i hepmc3 -o edm4hep ZHDecay250.hepmc3 ZHDecay250.edm4hep
$K4GENERATORSCONFIG/pythiaRunner -f ZHDecay250.dat
$K4GENERATORSCONFIG/convertHepMC2EDM4HEP -i hepmc3 -o edm4hep ZHDecay250.hepmc3 ZHDecay250.edm4hep
analyze2f -a 23 -b 25 -i ZHDecay250.edm4hep -f ZHDecay250.root
Loading

0 comments on commit 83aaeea

Please sign in to comment.