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