-
Notifications
You must be signed in to change notification settings - Fork 1
/
dp_options.py
50 lines (42 loc) · 1.52 KB
/
dp_options.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
from GaudiConf import IOHelper
from Configurables import DaVinci, DecayTreeTuple,TupleToolTrackPosition
from DecayTreeTuple.Configuration import *
stream = 'Charmcharged'#Charmspec doesnt work
line = 'Hlt2CharmHadDpToKmKpPipTurbo'
dtt = DecayTreeTuple('D2KKpi')
dtt.Inputs = ['{0}/Particles'.format(line)] #/Event/{0}/Phys/{1}/Particles
dtt.Decay = '[D+ -> ^K- ^K+ ^pi+]CC'
track_tool = dtt.addTupleTool('TupleToolTrackInfo')
track_tool.Verbose = True
dtt.addTupleTool('TupleToolPrimaries')
#I believe these five are included in Primaries
#dtt.addTupleTool('TupleToolGeometry')
#dtt.addTupleTool('TupleToolKinematic')
#dtt.addTupleTool('TupleToolPid')
#dtt.addTupleTool('TupleToolANNPid')
#dtt.addTupleTool('TupleToolEventInfo')
## from Michel De Cian 151213
## The positions of the T stations are (about):
## 7950mm
## 8630mm
## 9315mm
track_position_tool = dtt.addTupleTool('TupleToolTrackPosition')
track_position_tool.Z = 8630
dtt.addBranches({
'Dplus' : '([D+ -> K- K+ pi+]CC)',
'Kminus' : '([D+ -> ^K- K+ pi+]CC)',
'Kplus' : '([D+ -> K- ^K+ pi+]CC)',
'Piplus' : '([D+ -> K- K+ ^pi+]CC)'
})
dtt.Dplus.addTupleTool('TupleToolPropertime')
DaVinci().UserAlgorithms += [dtt]
DaVinci().Turbo = True
DaVinci().RootInTES = '/Event/Charmcharged/Turbo'#Charmspec does not work
DaVinci().InputType = 'MDST'
#DaVinci().DDDBtag = 'dddb-20171030-3'
DaVinci().Simulation = False
DaVinci().TupleFile = 'Dp2KKpiMagDown.root'
DaVinci().PrintFreq = 50000
DaVinci().DataType = '2017'
DaVinci().Lumi = False
DaVinci().EvtMax = -1