Page:
Event generator
Pages
AddVariable.cpp
B mass model
B2Kstmumu
B2Kstmumu.pro
BDTSelection
BDTcutScanner.cpp
BackgroundPdf Class
BackgroundType Class
CompareVariables.cpp
Comparison tool
Design.cpp
Efficiency Class
Efficiency.cpp
Event generator
FCNC Fitter
Ganga
GlobalFunctions.hh
Home
InclusiveCheck.cpp
Input MVA variables
MCtruthmatching.cpp
MVA Class
MassFit.cpp
ParamValues Class
Paths.hpp
PlotTMVA.cpp
RemoveMultipleCandidates.py
ReorganizeTGraph.py
Rescale pi0 momentum
Resolution Plotting
Running the FCNC fitter
Selection code
Signal Study
SignalPdf Class
SignalType Class
Standalone Scripts
TMVA Class application
TMVA
TMsource
Utils.hpp
Utils3.py
flav.io
getPathForPython
nTrackWeights.cpp
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