Linear Collider Forum



Home » ILCDirac » Applications » help getting started with Mokka in ILCDIRAC
help getting started with Mokka in ILCDIRAC [message #2283] Tue, 19 November 2013 20:09 Go to previous message
jeans
Messages: 22
Registered: November 2012
I'm trying to use ILCDIRAC to simulate a few ILD events using Mokka and its particle gun.

This is the python script I'm using:
Quote:

from DIRAC.Core.Base import Script
Script.parseCommandLine()

from ILCDIRAC.Interfaces.API.DiracILC import DiracILC
dirac = DiracILC(True,"daniel_mokka_job_repository.rep")

from ILCDIRAC.Interfaces.API.NewInterface.UserJob import UserJob
job = UserJob()
job.setName("MokkaDiracTest")
job.setJobGroup("MMTEST")
job.setOutputSandbox(["*.log","*.slcio","gear.xml"])
job.setCPUTime(50000)
job.setSystemConfig('x86_64-slc5-gcc43-opt')
from ILCDIRAC.Interfaces.API.NewInterface.Applications import Mokka
mo = Mokka()
mo.setVersion("08.00.03")
mo.setSteeringFile("ff_orig.steer")
mo.setMacFile("ff_orig.mac")
res = job.append(mo)

print job.submit(dirac)


the input steering file ff_orig.steer:
Quote:

/Mokka/init/BatchMode true
/Mokka/init/detectorModel ILD_o1_v05
/Mokka/init/dbHost pollin1.in2p3.fr
/Mokka/init/user consult
/Mokka/init/dbPasswd consult
/Mokka/init/lcioWriteMode WRITE_NEW
/Mokka/init/lcioStoreCalHitPosition true
/Mokka/init/MokkaGearFileName gear.xml
/Mokka/init/lcioFilename ./mokka_test.slcio
/Mokka/init/startEventNumber 0
exit


and the macro file ff_orig.mac
Quote:

/generator/generator particleGun
/gun/position 0 0 0 mm
/gun/energy 5 GeV
/gun/direction 0 1 0
/gun/thetaSmearing 360
/gun/phiSmearing 360
/gun/particle gamma
/tracking/verbose 0
/run/beamOn 5


This job fails, I attach the input and output tar balls.
Can you help me figure out the reason? Thanks!

Another question: some parameters, such as number of events, can be specified in both the macro file and directly to the Mokka() object in DIRAC (like mo.setNbEvts(5)). If I were to give inconsistent values in these two places, which one would get precendence?

Thanks for your help,
Daniel.

 
Read Message
Read Message
Read Message
Read Message
Next Topic:policy for ilcsoft updates in ilcdirac
Goto Forum:
  


Current Time: Fri Aug 17 10:22:05 Pacific Daylight Time 2018
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.1.
Copyright ©2001-2010 FUDforum Bulletin Board Software