From 4426f2410cd492f927f0f9c034bd6d5c9adda8a1 Mon Sep 17 00:00:00 2001 From: Albert Lopez Huertas <albert.lopez.huertas@cern.ch> Date: Wed, 31 May 2023 16:45:40 +0200 Subject: [PATCH] LHCb Format --- .../tests/options/test_bremsstrahlung.py | 42 +++++++++---------- 1 file changed, 19 insertions(+), 23 deletions(-) diff --git a/Hlt/Hlt2Conf/tests/options/test_bremsstrahlung.py b/Hlt/Hlt2Conf/tests/options/test_bremsstrahlung.py index 07dff0be327..5e5e6612e9f 100644 --- a/Hlt/Hlt2Conf/tests/options/test_bremsstrahlung.py +++ b/Hlt/Hlt2Conf/tests/options/test_bremsstrahlung.py @@ -68,12 +68,10 @@ def make_B2JpsiK(Jpsi, mother_cut = F.require_all(F.CHI2DOF < maxVertexChi2, F.BPVLTIME(pvs) > lifetime) - - return ParticleCombiner( - [Jpsi, kaons], - DecayDescriptor="[B+ -> J/psi(1S) K+]cc", - CombinationCut=combination_cut, - CompositeCut=mother_cut) + return ParticleCombiner([Jpsi, kaons], + DecayDescriptor="[B+ -> J/psi(1S) K+]cc", + CombinationCut=combination_cut, + CompositeCut=mother_cut) @configurable @@ -84,13 +82,8 @@ def filter_kaons( pidCut=0, mipChi2Cut=4, ): - code = F.require_all(F.PID_K > pidCut, - F.MINIPCHI2(pvs) > mipChi2Cut) - return ParticleFilter( - kaons, - F.FILTER(code), - name=name - ) + code = F.require_all(F.PID_K > pidCut, F.MINIPCHI2(pvs) > mipChi2Cut) + return ParticleFilter(kaons, F.FILTER(code), name=name) @configurable @@ -99,14 +92,10 @@ def filter_jpsi_ee(dielectron, massWind_Jpsi=1000 * MeV, minPt_Jpsi=0 * MeV): - code = F.require_all(F.ABS_DELTA_MASS('J/psi(1S)') < massWind_Jpsi, - F.PT > minPt_Jpsi) + code = F.require_all( + F.ABS_DELTA_MASS('J/psi(1S)') < massWind_Jpsi, F.PT > minPt_Jpsi) - return ParticleFilter( - dielectron, - F.FILTER(code), - name=name - ) + return ParticleFilter(dielectron, F.FILTER(code), name=name) @register_line_builder(all_lines) @@ -174,11 +163,14 @@ def all_lines(): noBremLine = b2jpsik_eeline(name='Hlt2NoBrem') bremadder_type = 'SelectiveBremAdder' - with make_detached_dielectron.bind(electron_maker=make_long_electrons_with_brem), make_long_electrons_with_brem.bind(bremadder=bremadder_type): + with make_detached_dielectron.bind( + electron_maker=make_long_electrons_with_brem + ), make_long_electrons_with_brem.bind(bremadder=bremadder_type): singleEBremLine = b2jpsik_eeline(name="Hlt2SingleBrem") with _make_dielectron_with_brem.bind(bremadder=bremadder_type): - diEBremLine = b2jpsik_eeline(name="Hlt2DiEBrem", useDiElectronMaker=True) + diEBremLine = b2jpsik_eeline( + name="Hlt2DiEBrem", useDiElectronMaker=True) return [noBremLine, singleEBremLine, diEBremLine] @@ -200,4 +192,8 @@ options.output_manifest_file = "test.tck.json" # run with reconstruction.bind(from_file=False),\ hlt2_reconstruction.bind(make_reconstruction=make_fastest_reconstruction): - run_moore(options, make_streams=all_lines, public_tools=public_tools, exclude_incompatible=False) + run_moore( + options, + make_streams=all_lines, + public_tools=public_tools, + exclude_incompatible=False) -- GitLab