File indexing completed on 2024-04-06 12:11:19
0001
0002
0003 pid=$1
0004 nevents=$2
0005 ofile="pgun_$1.py"
0006
0007 cmsDriver.py FastSimulation/ParticleDecay/python/genfragment_ptgun_cfg.py --fast --conditions auto:upgradePLS1 -n 10 \
0008 --eventcontent FEVTDEBUG -s GEN,SIM \
0009 --no_exec \
0010 --python_file $ofile
0011
0012 extra="process.generator.PGunParameters.PartID=[$1]
0013 process.famosSimHits.ParticleFilter.EProton = 0.0
0014 process.famosSimHits.ParticleFilter.etaMax = 99999999
0015 process.famosSimHits.ParticleFilter.pTMin = 0.0
0016 process.famosSimHits.ParticleFilter.EMin = 0.0
0017 process.famosSimHits.MaterialEffects.Bremsstrahlung = False
0018 process.famosSimHits.MaterialEffects.NuclearInteraction = False
0019 process.famosSimHits.MaterialEffects.PairProduction = False
0020 process.famosSimHits.MaterialEffects.MuonBremsstrahlung = False
0021 process.famosSimHits.MaterialEffects.MultipleScattering = False
0022 process.famosSimHits.MaterialEffects.EnergyLoss = False
0023 process.famosSimHits.SimulateCalorimetry = False
0024 process.famosSimHits.UseMagneticField = False
0025 process.maxEvents.input = $2
0026 process.FEVTDEBUGoutput.fileName = \"pgun_$1.root\"
0027 process.FEVTDEBUGoutput.outputCommands.extend(['drop *','keep *_famosSimHits_*_*'])"
0028
0029 echo "$extra" >> $ofile