4 Event generator
Renata Kopecná edited this page 2022-02-10 14:08:30 +01:00

Table of Contents

Building the environment

SetupProject DaVinci/v41r2
SetupProject Gauss/v49r7

Run without detector simulation

In order to create the generator level sample, it is useful to install Gauss. I used v49r12.

In Gauss-Job_StandAlone.py, the eventy type number is defined. According to the Monte Carlo type (either signal MC, reference MC or PHSP MC), corresponding job option is necesarry. One can choose from

  • JobStandAlone_KpPi0_PHSPMC.py
  • JobStandAlone_KpPi0_ReferenceMC.py
  • JobStandAlone_KpPi0_SignalMC.py
  • JobStandAloneKSpiSignalMC.py
  • JobStandAloneKSpiTightCut.py

Then, order to get eg. the PHSP MC, launch Gauss with:

./run gaudirun.py Gauss-Job_StandAlone.py JobStandAlone_KpPi0_PHSPMC.py 

For more details see https://wiki.physik.uzh.ch/lhcb/gauss:gauss and the Starterkit lesson.

Output is .sim file. Therefore we need to convert it to a ROOT file.

Convert .sim files to .root files

The .sim input file is hardcoded in the getTupleFromGauss.py.

lb-run DaVinci/v44r3 gaudirun.py getTupleFromGauss.py