Skip to content

Commit 72be788

Browse files
ChiaraDeMartin95Chiara De Martin
andauthored
Force Lambdas to decay into protons and pions (#2284)
* force the Lambda to decay into proton and pion * generate lambdas with pt > 0.6 GeV/c * remove unneccessary configuration * fix nevents --------- Co-authored-by: Chiara De Martin <chdemart@alicecerno2.cern.ch>
1 parent 8a4a641 commit 72be788

File tree

4 files changed

+77
-2
lines changed

4 files changed

+77
-2
lines changed

MC/config/PWGLF/ini/GeneratorDoubleLambdaTriggered.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[GeneratorExternal]
22
fileName=${O2DPG_MC_CONFIG_ROOT}/MC/config/PWGLF/pythia8/generator_pythia8_doubleLambdas.C
3-
funcName=generateDoubleLambda(1, 0.2, 10, 0.8)
3+
funcName=generateDoubleLambda(1, 0.6, 10, 0.8)
44

55
[GeneratorPythia8]
66
config=${O2DPG_MC_CONFIG_ROOT}/MC/config/PWGLF/pythia8/generator/pythia8_inel_ropes_136tev.cfg
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
3122:mayDecay = on
2+
3122:oneChannel = 1 1.0 0 2212 -211
3+
4+
-3122:mayDecay = on
5+
-3122:oneChannel = 1 1.0 0 -2212 211
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
2+
/control/verbose 2
3+
/mcVerbose/all 1
4+
/mcVerbose/geometryManager 1
5+
/mcVerbose/opGeometryManager 1
6+
/mcTracking/loopVerbose 1
7+
/mcVerbose/composedPhysicsList 2
8+
/mcVerbose/runAction 2 # For looping thresholds control
9+
#/tracking/verbose 1
10+
#//control/cout/ignoreThreadsExcept 0
11+
12+
/mcPhysics/rangeCuts 0.001 mm
13+
/mcRegions/setRangePrecision 5
14+
/mcTracking/skipNeutrino true
15+
/mcDet/setIsMaxStepInLowDensityMaterials true
16+
/mcDet/setMaxStepInLowDensityMaterials 10 m
17+
/mcMagField/setConstDistance 1 mm
18+
/mcDet/setIsZeroMagField true
19+
/mcControl/useRootRandom true # couple G4 random seed to gRandom
20+
21+
# optical
22+
23+
/process/optical/verbose 0
24+
/process/optical/processActivation Scintillation 0
25+
/process/optical/processActivation OpWLS 0
26+
/process/optical/processActivation OpMieHG 0
27+
/process/optical/cerenkov/setTrackSecondariesFirst false
28+
/mcMagField/stepperType NystromRK4
29+
30+
# PAI for TRD
31+
# Geant4 VMC >= v3.2
32+
/mcPhysics/emModel/setEmModel PAI
33+
/mcPhysics/emModel/setRegions TRD_Gas-mix
34+
/mcPhysics/emModel/setParticles all
35+
/mcPrimaryGenerator/skipUnknownParticles true # don't crash when seeing unknown ion etc. (issue warning)
36+
37+
#
38+
# Precise Msc for EMCAL
39+
#
40+
# Geant4 VMC >= v3.2
41+
/mcPhysics/emModel/setEmModel SpecialUrbanMsc
42+
/mcPhysics/emModel/setRegions EMC_Lead$ EMC_Scintillator$
43+
/mcPhysics/emModel/setParticles e- e+
44+
45+
# combined transportation + Msc mode is currently broken for ALICE (Geant 10.2.0)
46+
/process/em/transportationWithMsc Disabled
47+
48+
#
49+
# Adding extra lines for fixing tracking bias
50+
#
51+
/mcMagField/setDeltaIntersection 1.0e-05 mm
52+
/mcMagField/setMinimumEpsilonStep 0.5e-05
53+
/mcMagField/setMaximumEpsilonStep 1.0e-05
54+
/mcMagField/printParameters
55+
56+
# Change default parameters for killing looping particles
57+
#
58+
/mcPhysics/useHighLooperThresholds
59+
/mcRun/setLooperThresholdImportantEnergy 100. MeV
60+
61+
# Define media with the INCLXX physics list; here basically in all ITS media
62+
#/mcVerbose/biasingConfigurationManager 3
63+
/mcPhysics/biasing/setModel inclxx
64+
/mcPhysics/biasing/setRegions ITS_AIR$ ITS_WATER$ ITS_COPPER$ ITS_KAPTON(POLYCH2)$ ITS_GLUE_IBFPC$ ITS_CERAMIC$ ITS_K13D2U2k$ ITS_K13D2U120$ ITS_F6151B05M$ ITS_M60J3K$ ITS_M55J6K$ ITS_FGS003$ ITS_CarbonFleece$ ITS_PEEKCF30$ ITS_GLUE$ ITS_ALUMINUM$ ITS_INOX304$ ALPIDE_METALSTACK$ ALPIDE_SI$
65+
/mcPhysics/biasing/setParticles proton neutron pi+ pi-
66+
67+
# external decayer
68+
/mcPhysics/setExtDecayerSelection lambda anti_lambda

MC/run/PWGLF/run_DoubleLambdaTriggered.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,12 @@ echo "NWORKERS = $NWORKERS"
2626

2727
# create workflow
2828
O2_SIM_WORKFLOW=${O2_SIM_WORKFLOW:-"${O2DPG_ROOT}/MC/bin/o2dpg_sim_workflow.py"}
29+
CFGDECAY="${O2DPG_ROOT}/MC/config/PWGLF/pythia8/decayer/force_lambda_charged_decay.cfg"
30+
G4CFG="${O2DPG_ROOT}/MC/config/PWGLF/pythia8/decayer/g4_ext_decayer_lambda.in"
2931
$O2_SIM_WORKFLOW -eCM ${ENERGY} -col ${SYSTEM} -gen external \
3032
-j ${NWORKERS} \
3133
-ns ${NSIGEVENTS} -tf ${NTIMEFRAMES} -interactionRate ${INTRATE} \
32-
-confKey "Diamond.width[2]=6." \
34+
-confKey "Diamond.width[0]=0.1;Diamond.width[1]=0.1;Diamond.width[2]=6.;;DecayerPythia8.config[1]=${CFGDECAY};DecayerPythia8.showChanged=1;G4.configMacroFile=${G4CFG}" \
3335
${SEED} \
3436
-e ${SIMENGINE} \
3537
-ini $CFGINIFILE

0 commit comments

Comments
 (0)