Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Vladimir Macko
Stripping
Commits
1eceb80b
Commit
1eceb80b
authored
Feb 26, 2016
by
Alessandro Bertolin
Browse files
harder PID version of StrippingB2OC
parent
4bc15f1c
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Phys/StrippingSelections/python/StrippingSelections/StrippingB2OC/Beauty2Charm_B2DXBuilder.py
View file @
1eceb80b
This diff is collapsed.
Click to expand it.
Phys/StrippingSelections/python/StrippingSelections/StrippingB2OC/Beauty2Charm_DBuilder.py
View file @
1eceb80b
...
...
@@ -221,6 +221,12 @@ class DBuilder(object):
self
.
pi0hh_resolved
)]
d_min
,
d_max
,
ds_min
,
ds_max
=
self
.
_massWindowD2HHHCF
()
#tighter D selections for DDX
#self.hh_ddx_pid = [filterSelection('D2hh_for_DDX', self.config['D2X_FOR_DDX'],self.hh_pid]
#self.hhh_ddx_pid = [filterSelection('D2hhh_for_DDX', self.config['D2X_FOR_DDX'],self.hhh_pid]
#self.hhhh_ddx_pid = [filterSelection('D2hhhh_for_DDX', self.config['D2X_FOR_DDX'],self.hhhh_pid]
#self.k3pi_ddx_pid = [filterSelection('D2k3pi_for_DDX', self.config['D2X_FOR_DDX'],self.k3pi_pid]
#use this below
d_cf_noMassWin
=
d_cf
d_cf
=
LoKiCuts
.
combine
([
d_cf
,
"in_range(%s,MM,%s)"
%
(
d_min
,
d_max
)])
...
...
Phys/StrippingSelections/python/StrippingSelections/StrippingB2OC/StrippingBeauty2Charm.py
View file @
1eceb80b
...
...
@@ -49,6 +49,14 @@ default_config ={
'MIPCHI2DV_MIN'
:
4.
,
'TRGHP_MAX'
:
0.4
},
"PIDKAON"
:
{
'TRCHI2DOF_MAX'
:
3.
,
'PT_MIN'
:
'100*MeV'
,
'P_MIN'
:
'1000*MeV'
,
'MIPCHI2DV_MIN'
:
4.
,
'PIDK_MIN'
:
0.
,
'TRGHP_MAX'
:
0.4
},
"UPSTREAM"
:
{
# Cuts made on all upstream particles
'TRCHI2DOF_MAX'
:
4.
,
'PT_MIN'
:
'100*MeV'
,
...
...
@@ -1421,7 +1429,7 @@ default_config ={
class
Beauty2CharmConf
(
LineBuilder
):
__configuration_keys__
=
(
'ALL'
,
'UPSTREAM'
,
'KS0'
,
'Lambda0'
,
'Pi0'
,
'gamma'
,
'D2X'
,
'B2X'
,
'Bc2DD'
,
'Bc2BX'
,
__configuration_keys__
=
(
'ALL'
,
'
PIDKAON'
,
'
UPSTREAM'
,
'KS0'
,
'Lambda0'
,
'Pi0'
,
'gamma'
,
'D2X'
,
'B2X'
,
'Bc2DD'
,
'Bc2BX'
,
'Dstar'
,
'HH'
,
'HHH'
,
'PID'
,
'FlavourTagging'
,
'RelatedInfoTools'
,
'RawEvents'
,
'MDSTChannels'
,
'2TOPO'
,
'BB'
,
'D0INC'
,
'Prescales'
,
'GECNTrkMax'
)
...
...
@@ -1430,11 +1438,14 @@ class Beauty2CharmConf(LineBuilder):
LineBuilder
.
__init__
(
self
,
moduleName
,
config
)
# pre-filter inputs
pions
=
filterInputs
(
'Pi'
,
[
StdAllNoPIDsPions
],
config
[
'ALL'
])
uppions
=
filterInputs
(
'PiUP'
,[
StdNoPIDsUpPions
],
config
[
'UPSTREAM'
])
kaons
=
filterInputs
(
'K'
,
[
StdAllNoPIDsKaons
],
config
[
'ALL'
])
upkaons
=
filterInputs
(
'KaUP'
,[
StdNoPIDsUpKaons
],
config
[
'UPSTREAM'
])
protons
=
filterInputs
(
'P'
,
[
StdAllNoPIDsProtons
],
config
[
'ALL'
])
pions
=
filterInputs
(
'Pi'
,[
StdAllNoPIDsPions
],
config
[
'ALL'
])
# pions_pid = filterInputs('Pi_PID', [pions],config['PID'])
pions_pid
=
filterInputs
(
'Pi_PID'
,[
StdAllNoPIDsPions
],
config
[
'ALL'
])
uppions
=
filterInputs
(
'PiUP'
,[
StdNoPIDsUpPions
],
config
[
'UPSTREAM'
])
kaons
=
filterInputs
(
'K'
,[
StdAllNoPIDsKaons
],
config
[
'ALL'
])
kaons_pid
=
filterInputs
(
'K_PID'
,[
StdAllNoPIDsKaons
],
config
[
'PIDKAON'
])
upkaons
=
filterInputs
(
'KaUP'
,[
StdNoPIDsUpKaons
],
config
[
'UPSTREAM'
])
protons
=
filterInputs
(
'P'
,[
StdAllNoPIDsProtons
],
config
[
'ALL'
])
ks_dd
=
filterInputs
(
'KS0_DD'
,[
dataOnDemand
(
"StdLooseKsDD"
)],
config
[
'KS0'
])
ks_ll
=
filterInputs
(
'KS0_LL'
,[
dataOnDemand
(
"StdLooseKsLL"
)],
...
...
@@ -1471,8 +1482,10 @@ class Beauty2CharmConf(LineBuilder):
# pre-filter hard inputs (these could have been used in HLT2)
topoPions
=
topoInputs
(
'Pi'
,[
pions
])
topoPions_PID
=
topoInputs
(
'Pi_PID'
,[
pions_pid
])
topoPionsLoose
=
topoInputsLoose
(
'PiLoose'
,[
pions
])
topoKaons
=
topoInputs
(
'K'
,[
kaons
])
topoKaons_PID
=
topoInputs
(
'K_PID'
,[
kaons_pid
])
topoKaonsLoose
=
topoInputsLoose
(
'KLoose'
,[
kaons
])
topoProtons
=
topoInputs
(
'P'
,[
protons
])
...
...
@@ -1492,7 +1505,7 @@ class Beauty2CharmConf(LineBuilder):
xicc
=
XiccBuilder
(
lc
,
pions
,
config
[
'D2X'
])
# make B->DX
b2dx
=
B2DXBuilder
(
d
,
dst
,
topoPions
,
topoPionsLoose
,
topoKaons
,
muons
,
ks
,
pi0_fromB
,
hh
,
hhh
,
b2dx
=
B2DXBuilder
(
d
,
dst
,
topoPions
,
topoPionsLoose
,
topoKaons
,
topoKaons_PID
,
topoPions_PID
,
muons
,
ks
,
pi0_fromB
,
hh
,
hhh
,
config
[
'B2X'
])
self
.
_makeLines
(
b2dx
.
lines
,
config
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment