Skip to content
Snippets Groups Projects
Commit ae5bca72 authored by Gitlab CI's avatar Gitlab CI Committed by Tommaso Fulghesu
Browse files

Fixed formatting

patch generated by https://gitlab.cern.ch/lhcb/DaVinci/-/jobs/22676488
parent 2c4bc6a9
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !665. Comments created here will be created in the context of that merge request.
......@@ -19,7 +19,6 @@ or
$ $DVPATH/run davinci -i test_hlt2_filtered_b2jpsik_dst $DVPATH/Phys/DaVinci/options/DaVinciDB-Example.yaml -j config_file/hlt2_b2jpsik_opt.yaml --user_algorithms option_davinci_readfile_ft:main
"""
from PyConf.Algorithms import PrintDecayTree
from PyConf.components import force_location
from DaVinci.algorithms import add_filter
......@@ -28,19 +27,21 @@ from DaVinci import options
use_spruce = True
b2jpsik_data = force_location(
f"/Event/HLT2/Hlt2B2JpsiKLine/Particles")
b2jpsik_data = force_location(f"/Event/HLT2/Hlt2B2JpsiKLine/Particles")
tagged_data = force_location(
f"/Event/HLT2/Hlt2B2JpsiKLine/LongTaggingParticles/Particles")
f"/Event/HLT2/Hlt2B2JpsiKLine/LongTaggingParticles/Particles")
line_decision = 'Hlt2B2JpsiKLine'
if use_spruce:
line_decision = 'SpruceB2JpsiKLine'
filter_B0JpsiK = add_filter(options, "HDRFilter_B0KJpsi", f"HLT_PASS('{line_decision}')")
filter_B0JpsiK = add_filter(options, "HDRFilter_B0KJpsi",
f"HLT_PASS('{line_decision}')")
pdt = PrintDecayTree(name="PrintBToJpsiK", Input=b2jpsik_data)
pdt_ft = PrintDecayTree(name="PrintBToJpsiK_TaggedParticles", Input=tagged_data)
pdt_ft = PrintDecayTree(
name="PrintBToJpsiK_TaggedParticles", Input=tagged_data)
def main():
algs = {"Alg": [filter_B0JpsiK, pdt, pdt_ft]}
......
......@@ -22,7 +22,6 @@ or
$ $DVPATH/run davinci -i test_hlt2_filtered_b2jpsik_dst $DVPATH/Phys/DaVinci/options/DaVinciDB-Example.yaml -j config_file/hlt2_b2jpsik_opt.yaml --user_algorithms option_davinci_tupling_weightedrelation:main
"""
import Functors as F
from PyConf.application import make_data_with_FetchDataFromFile
from PyConf.Algorithms import WeightedRelTableAlg, ParticleContainerMerger
......@@ -31,67 +30,67 @@ from RecoConf.reconstruction_objects import make_pvs
from DaVinci.algorithms import add_filter
from DaVinci.standard_particles import make_long_pions
from DaVinci import options
use_spruce = True
bd2jpsik_data = make_data_with_FetchDataFromFile(
f"/Event/HLT2/Hlt2B2JpsiKLine/Particles")
f"/Event/HLT2/Hlt2B2JpsiKLine/Particles")
tagged_parts = make_data_with_FetchDataFromFile(
f"/Event/HLT2/Hlt2B2JpsiKLine/LongTaggingParticles/Particles")
f"/Event/HLT2/Hlt2B2JpsiKLine/LongTaggingParticles/Particles")
pvs = make_pvs()
ftAlg = WeightedRelTableAlg(
ReferenceParticles=bd2jpsik_data, InputCandidates=tagged_data, Cut=F.SHARE_BPV(pvs))
ReferenceParticles=bd2jpsik_data,
InputCandidates=tagged_data,
Cut=F.SHARE_BPV(pvs))
ftAlg_rels = ftAlg.OutputRelations
#make collection of functors
variables_B = FunctorCollection({
'THOR_MASS':
F.MASS,
F.MASS,
"First_P":
F.MAP_INPUT(Functor=F.P, Relations=ftAlg_Rels),
F.MAP_INPUT(Functor=F.P, Relations=ftAlg_Rels),
"First_PT":
F.MAP_INPUT(Functor=F.PT, Relations=ftAlg_Rels),
F.MAP_INPUT(Functor=F.PT, Relations=ftAlg_Rels),
"Sum_P":
F.SUMCONE(Functor=F.P, Relations=ftAlg_Rels),
F.SUMCONE(Functor=F.P, Relations=ftAlg_Rels),
"Sum_PT":
F.SUMCONE(Functor=F.PT, Relations=ftAlg_Rels),
})
F.SUMCONE(Functor=F.PT, Relations=ftAlg_Rels),
})
#make collection of functors
variables_K = FunctorCollection({
'THOR_MASS':
F.MASS,
F.MASS,
"First_P":
F.MAP_INPUT(Functor=F.P, Relations=ftAlg_Rels),
F.MAP_INPUT(Functor=F.P, Relations=ftAlg_Rels),
"First_PT":
F.MAP_INPUT(Functor=F.PT, Relations=ftAlg_Rels),
F.MAP_INPUT(Functor=F.PT, Relations=ftAlg_Rels),
"Sum_P":
F.SUMCONE(Functor=F.P, Relations=ftAlg_Rels),
F.SUMCONE(Functor=F.P, Relations=ftAlg_Rels),
"Sum_PT":
F.SUMCONE(Functor=F.PT, Relations=ftAlg_Rels),
})
F.SUMCONE(Functor=F.PT, Relations=ftAlg_Rels),
})
#make collection of functors for Muplus
variables_all = FunctorCollection({
'THOR_P': F.P,
'THOR_PT': F.PT,
})
})
fields = {
'B0': "[^B0 -> J/psi(1S) K+]CC",
'Jpsi': "[B0 -> ^J/psi(1S) K+]CC",
'K': "[B0 -> J/psi(1S) ^K+]CC",
}
}
variables = {
'ALL': variables_all, #adds variables to all fields
'B0': variables_B,
}
}
tuple_B0JpsiK = Funtuple(
name="B0JpsiK_Tuple",
......@@ -104,7 +103,8 @@ line_decision = 'Hlt2B2JpsiKLine'
if use_spruce:
line_decision = 'SpruceB2JpsiKLine'
filter_B0JpsiK = add_filter("HDRFilter_B0KJpsi",f"HLT_PASS('{line_decision}')")
filter_B0JpsiK = add_filter("HDRFilter_B0KJpsi",
f"HLT_PASS('{line_decision}')")
def main():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment