ATLAS Offline Software
Loading...
Searching...
No Matches
TauolaJobOption.py
Go to the documentation of this file.
1include( "PartPropSvc/PartPropSvc.py" )
2include( "AthenaPoolCnvSvc/ReadAthenaPool_jobOptions.py" )
3
4#load the gen pool file with stable taus
5import glob
6files=glob.glob("/atlasdata/users/ndavidson/user09.NadiaMayDavidson.106062.McAtNloZtautau.evgen/*.pool.root")
7
8svcMgr.EventSelector.InputCollections = files
9
10from AthenaCommon.AlgSequence import AlgSequence
11job = AlgSequence()
12
13#set-up tauola
14from Tauolapp_i.Tauolapp_iConf import TauolaAlg
15TauolaAlg=TauolaAlg( "TauolaAlg" )
16#TauolaAlg.decay_mode_same(1); #tau- decay to electron + neutrinos
17#TauolaAlg.decay_mode_opposite(2); #tau+ decays to muon + neutrinos
18TauolaAlg.decay_mode_same = 1; #tau- decay to electron + neutrinos
19TauolaAlg.decay_mode_opposite = 2; #tau+ decays to muon + neutrinos
20TauolaAlg.decay_particle = 15; # decay particle
21job += TauolaAlg
22
23
24theApp.EvtMax = 10 #Number of events to process
25theApp.SkipEvents = 10 #Number of events to process
26
27
32from AthenaPoolCnvSvc.WriteAthenaPool import AthenaPoolOutputStream
33Stream1 = AthenaPoolOutputStream( "StreamEVGEN" )
34Stream1.OutputFile = "tauola_decayed.pool.root"
35Stream1.ItemList += [ 'EventInfo#*', 'McEventCollection#GEN_EVENT']
36
37#==============================================================
38