From 747ed30cdb8a4f8824679ebde7880d9520a39f39 Mon Sep 17 00:00:00 2001
From: Bogdan Kutsenko <Bogdan Kutsenko bokutsen@cern.ch>
Date: Thu, 24 Oct 2024 16:28:55 +0200
Subject: [PATCH 1/7] Addition PV rec allen_gaudi qmtest

---
 .../mdf_input_and_conds_mc_expected_2024.py   |  10 ++
 ...conds_nominal_beamline_mc_expected_2024.py |  10 ++
 Hlt/RecoConf/options/allen_gaudi_pv.py        |   2 +-
 ...len_gaudi_pv_with_mcchecking_beamshift.qmt |  39 +++++
 ...len_gaudi_pv_with_mcchecking_beamshift.ref | 142 ++++++++++++++++++
 5 files changed, 202 insertions(+), 1 deletion(-)
 create mode 100644 Hlt/Moore/tests/options/mdf_input_and_conds_mc_expected_2024.py
 create mode 100644 Hlt/Moore/tests/options/mdf_input_and_conds_nominal_beamline_mc_expected_2024.py
 create mode 100644 Hlt/RecoConf/tests/qmtest/allen_gaudi_pv_with_mcchecking_beamshift.qmt
 create mode 100644 Hlt/RecoConf/tests/refs/allen_gaudi_pv_with_mcchecking_beamshift.ref

diff --git a/Hlt/Moore/tests/options/mdf_input_and_conds_mc_expected_2024.py b/Hlt/Moore/tests/options/mdf_input_and_conds_mc_expected_2024.py
new file mode 100644
index 00000000000..159482406d2
--- /dev/null
+++ b/Hlt/Moore/tests/options/mdf_input_and_conds_mc_expected_2024.py
@@ -0,0 +1,10 @@
+from Moore import options
+
+options.input_files.append("root://eoslhcb.cern.ch//eos/lhcb/grid/prod/lhcb/MC/Dev/DIGI/00204942/0000/00204942_00000034_1.digi")
+
+options.simulation = True
+options.dddb_tag = "dddb-20231017"
+options.conddb_tag = "sim-20231017-vc-mu100"
+options.evt_max = 10000
+#options.print_freq = 1000
+options.input_type = "ROOT"
\ No newline at end of file
diff --git a/Hlt/Moore/tests/options/mdf_input_and_conds_nominal_beamline_mc_expected_2024.py b/Hlt/Moore/tests/options/mdf_input_and_conds_nominal_beamline_mc_expected_2024.py
new file mode 100644
index 00000000000..8ccf81fdaf8
--- /dev/null
+++ b/Hlt/Moore/tests/options/mdf_input_and_conds_nominal_beamline_mc_expected_2024.py
@@ -0,0 +1,10 @@
+from Moore import options
+
+options.input_files.append("root://eoslhcb.cern.ch//eos/lhcb/grid/prod/lhcb/MC/Dev/DIGI/00217353/0000/00217353_00000034_1.digi")
+
+options.simulation = True
+options.dddb_tag = "dddb-20231017"
+options.conddb_tag = "sim10-2024-v1.0-vc0mm-mu100"
+options.evt_max = 10000
+#options.print_freq = 1000
+options.input_type = "ROOT"
\ No newline at end of file
diff --git a/Hlt/RecoConf/options/allen_gaudi_pv.py b/Hlt/RecoConf/options/allen_gaudi_pv.py
index 56782dc1ee0..b2af090317b 100644
--- a/Hlt/RecoConf/options/allen_gaudi_pv.py
+++ b/Hlt/RecoConf/options/allen_gaudi_pv.py
@@ -73,7 +73,7 @@ def make_reconstruction():
     return Reconstruction('pv_checker', pv_checker)
 
 
-options.evt_max = 100
+options.evt_max = 1000
 options.ntuple_file = 'Hlt1_PVperformance_Allen.root'
 
 with default_VeloCluster_source.bind(bank_type="VPRetinaCluster"):
diff --git a/Hlt/RecoConf/tests/qmtest/allen_gaudi_pv_with_mcchecking_beamshift.qmt b/Hlt/RecoConf/tests/qmtest/allen_gaudi_pv_with_mcchecking_beamshift.qmt
new file mode 100644
index 00000000000..768c9d558e4
--- /dev/null
+++ b/Hlt/RecoConf/tests/qmtest/allen_gaudi_pv_with_mcchecking_beamshift.qmt
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE extension  PUBLIC '-//QM/2.3/Extension//EN'  'http://www.codesourcery.com/qm/dtds/2.3/-//qm/2.3/extension//en.dtd'>
+<!--
+    (c) Copyright 2022 CERN for the benefit of the LHCb Collaboration
+
+    This software is distributed under the terms of the GNU General Public
+    Licence version 3 (GPL Version 3), copied verbatim in the file "COPYING".
+
+    In applying this licence, CERN does not waive the privileges and immunities
+    granted to it by virtue of its status as an Intergovernmental Organization
+    or submit itself to any jurisdiction.
+-->
+<!--
+     Run Allen forward tracking and apply PrTrackChecker MC tracking efficiency
+     checker.
+-->
+<extension class="GaudiTest.GaudiExeTest" kind="test">
+<argument name="program"><text>gaudirun.py</text></argument>
+<argument name="args"><set>
+  <text>$MOOREROOT/tests/options/mdf_input_and_conds_nominal_beamline_mc_expected_2024.py</text>
+  <text>$RECOCONFROOT/options/allen_gaudi_pv.py</text>
+</set></argument>
+<argument name="use_temp_dir"><enumeral>true</enumeral></argument>
+<argument name="reference"><text>../refs/allen_gaudi_pv_with_mcchecking_beamshift.ref</text></argument>
+<argument name="error_reference"><text>../refs/empty.ref</text></argument>
+<argument name="validator"><text>
+
+from Moore.qmtest.exclusions import ref_preprocessor
+validateWithReference(preproc = ref_preprocessor)
+
+from Allen.qmtest.validators import check_PV_efficiency
+
+efficiency, fake_pv  = check_PV_efficiency("$RECOCONFROOT/tests/refs/allen_gaudi_pv_with_mcchecking_beamshift.ref", causes, "all")
+
+from Moore.qmtest.exclusions import remove_known_warnings
+countErrorLines({"FATAL": 0, "ERROR": 0, "WARNING": 0},
+                stdout=remove_known_warnings(stdout))
+
+</text></argument>
+</extension>
diff --git a/Hlt/RecoConf/tests/refs/allen_gaudi_pv_with_mcchecking_beamshift.ref b/Hlt/RecoConf/tests/refs/allen_gaudi_pv_with_mcchecking_beamshift.ref
new file mode 100644
index 00000000000..a84ee73d866
--- /dev/null
+++ b/Hlt/RecoConf/tests/refs/allen_gaudi_pv_with_mcchecking_beamshift.ref
@@ -0,0 +1,142 @@
+PrimaryVertexChecker_6ecf8c4f          INFO      ************************************ 
+PrimaryVertexChecker_6ecf8c4f          INFO  MC PV is reconstructible if at least 4  tracks are reconstructed
+PrimaryVertexChecker_6ecf8c4f          INFO  MC PV is isolated if dz to closest reconstructible MC PV >  10 mm
+PrimaryVertexChecker_6ecf8c4f          INFO  MC efficiency split by tracks with threshold: (4,10), >= 10
+PrimaryVertexChecker_6ecf8c4f          INFO  MC efficiency split by z position: <-50, (-50,50), >50
+PrimaryVertexChecker_6ecf8c4f          INFO  REC and MC vertices matched:  by distance
+PrimaryVertexChecker_6ecf8c4f          INFO 
+PrimaryVertexChecker_6ecf8c4f          INFO 00 all                    :      516 from      551 (     795-244     ) [ 93.65 %], false    8 from reco.      524 (     516+8   ) [  1.53 %] 
+PrimaryVertexChecker_6ecf8c4f          INFO 01 isolated               :      269 from      280 (     409-129     ) [ 96.07 %], false    1 from reco.      270 (     269+1   ) [  0.37 %] 
+PrimaryVertexChecker_6ecf8c4f          INFO 02 close                  :      247 from      271 (     386-115     ) [ 91.14 %], false    7 from reco.      254 (     247+7   ) [  2.76 %] 
+PrimaryVertexChecker_6ecf8c4f          INFO 03 ntracks<10             :       40 from       58 (      58-0       ) [ 68.97 %], false    4 from reco.       44 (      40+4   ) [  9.09 %] 
+PrimaryVertexChecker_6ecf8c4f          INFO 04 ntracks>=10            :      476 from      493 (     493-0       ) [ 96.55 %], false    4 from reco.      480 (     476+4   ) [  0.83 %] 
+PrimaryVertexChecker_6ecf8c4f          INFO 05 z<-50.0                :      102 from      106 (     153-47      ) [ 96.23 %], false    1 from reco.      103 (     102+1   ) [  0.97 %] 
+PrimaryVertexChecker_6ecf8c4f          INFO 06 z in (-50.0, 50.0)     :      314 from      339 (     477-138     ) [ 92.63 %], false    4 from reco.      318 (     314+4   ) [  1.26 %] 
+PrimaryVertexChecker_6ecf8c4f          INFO 07 z >=50.0               :      100 from      106 (     165-59      ) [ 94.34 %], false    3 from reco.      103 (     100+3   ) [  2.91 %] 
+PrimaryVertexChecker_6ecf8c4f          INFO 08 decayBeauty            :        9 from        9 (       9-0       ) [ 100.00 %], false    0 from reco.       17 (      17+0   ) [  0.00 %] 
+PrimaryVertexChecker_6ecf8c4f          INFO 09 decayCharm             :       69 from       71 (      71-0       ) [ 97.18 %], false    1 from reco.       77 (      76+1   ) [  1.30 %] 
+PrimaryVertexChecker_6ecf8c4f          INFO 10 decayStrange           :      514 from      546 (     577-31      ) [ 94.14 %], false    7 from reco.      522 (     515+7   ) [  1.34 %] 
+PrimaryVertexChecker_6ecf8c4f          INFO 11 other                  :        2 from        5 (     218-213     ) [ 40.00 %], false    1 from reco.       10 (       9+1   ) [ 10.00 %] 
+PrimaryVertexChecker_6ecf8c4f          INFO 12 1MCPV                  :       99 from       99 (     100-1       ) [ 100.00 %], false    1 from reco.      100 (      99+1   ) [  1.00 %] 
+PrimaryVertexChecker_6ecf8c4f          INFO 13 2MCPV                  :       97 from       97 (      99-2       ) [ 100.00 %], false    0 from reco.       97 (      97+0   ) [  0.00 %] 
+PrimaryVertexChecker_6ecf8c4f          INFO 14 3MCPV                  :       87 from       90 (      97-7       ) [ 96.67 %], false    3 from reco.       90 (      87+3   ) [  3.33 %] 
+PrimaryVertexChecker_6ecf8c4f          INFO 15 4MCPV                  :       77 from       83 (      95-12      ) [ 92.77 %], false    0 from reco.       77 (      77+0   ) [  0.00 %] 
+PrimaryVertexChecker_6ecf8c4f          INFO 16 5MCPV                  :       64 from       68 (      89-21      ) [ 94.12 %], false    0 from reco.       64 (      64+0   ) [  0.00 %] 
+PrimaryVertexChecker_6ecf8c4f          INFO 
+PrimaryVertexChecker_6ecf8c4f          INFO 00 all                    : av. PV tracks:  38.98 [MC:  37.00]
+PrimaryVertexChecker_6ecf8c4f          INFO 01 isolated               : av. PV tracks:  37.54 [MC:  36.37]
+PrimaryVertexChecker_6ecf8c4f          INFO 02 close                  : av. PV tracks:  40.55 [MC:  37.66]
+PrimaryVertexChecker_6ecf8c4f          INFO 03 ntracks<10             : av. PV tracks:   9.70 [MC:   6.62]
+PrimaryVertexChecker_6ecf8c4f          INFO 04 ntracks>=10            : av. PV tracks:  41.45 [MC:  40.58]
+PrimaryVertexChecker_6ecf8c4f          INFO 05 z<-50.0                : av. PV tracks:  37.90 [MC:  35.97]
+PrimaryVertexChecker_6ecf8c4f          INFO 06 z in (-50.0, 50.0)     : av. PV tracks:  38.11 [MC:  36.03]
+PrimaryVertexChecker_6ecf8c4f          INFO 07 z >=50.0               : av. PV tracks:  42.82 [MC:  41.15]
+PrimaryVertexChecker_6ecf8c4f          INFO 08 decayBeauty            : av. PV tracks:  68.22 [MC:  68.44]
+PrimaryVertexChecker_6ecf8c4f          INFO 09 decayCharm             : av. PV tracks:  70.48 [MC:  68.86]
+PrimaryVertexChecker_6ecf8c4f          INFO 10 decayStrange           : av. PV tracks:  39.10 [MC:  37.26]
+PrimaryVertexChecker_6ecf8c4f          INFO 11 other                  : av. PV tracks:   8.50 [MC:   9.00]
+PrimaryVertexChecker_6ecf8c4f          INFO 12 1MCPV                  : av. PV tracks:  73.96 [MC:  77.14]
+PrimaryVertexChecker_6ecf8c4f          INFO 13 2MCPV                  : av. PV tracks:  47.33 [MC:  47.36]
+PrimaryVertexChecker_6ecf8c4f          INFO 14 3MCPV                  : av. PV tracks:  36.31 [MC:  34.99]
+PrimaryVertexChecker_6ecf8c4f          INFO 15 4MCPV                  : av. PV tracks:  28.12 [MC:  25.30]
+PrimaryVertexChecker_6ecf8c4f          INFO 16 5MCPV                  : av. PV tracks:  20.50 [MC:  19.24]
+PrimaryVertexChecker_6ecf8c4f          INFO 
+PrimaryVertexChecker_6ecf8c4f          INFO 1_res_all                 :  x: +0.015, y: +0.015, z: +0.089
+PrimaryVertexChecker_6ecf8c4f          INFO 2_res_ntracks<10          :  x: +0.032, y: +0.032, z: +0.152
+PrimaryVertexChecker_6ecf8c4f          INFO 3_res_ntracks(10,30)      :  x: +0.016, y: +0.016, z: +0.109
+PrimaryVertexChecker_6ecf8c4f          INFO 4_res_ntracks>30          :  x: +0.009, y: +0.008, z: +0.046
+PrimaryVertexChecker_6ecf8c4f          INFO 5_res_z<-50               :  x: +0.016, y: +0.016, z: +0.107
+PrimaryVertexChecker_6ecf8c4f          INFO 6_res_z(-50,50)           :  x: +0.015, y: +0.015, z: +0.089
+PrimaryVertexChecker_6ecf8c4f          INFO 7_res_z>50                :  x: +0.015, y: +0.014, z: +0.065
+PrimaryVertexChecker_6ecf8c4f          INFO 
+PrimaryVertexChecker_6ecf8c4f          INFO 1_pull_width_all          :  x: +1.140, y: +1.116, z: +1.157
+PrimaryVertexChecker_6ecf8c4f          INFO 1_pull_mean_all           :  x: -0.058, y: -0.046, z: -0.025
+PrimaryVertexChecker_6ecf8c4f          INFO 
+PrimaryVertexChecker_6ecf8c4f       SUCCESS Booked 2 N-Tuples and 0 Event Tag Collections
+PrimaryVertexChecker_6ecf8c4f       SUCCESS List of booked N-Tuples in directory "FILE1/PrimaryVertexChecker_6ecf8c4f"
+PrimaryVertexChecker_6ecf8c4f       SUCCESS  ID=101           Title="PV_nTuple"                               #items=38 {reco,isol,ntracks,nrectrmc,dzclose,nmcpv,mtruemcpv,nmcallpv,nrecpv,decayCharm,dec}
+PrimaryVertexChecker_6ecf8c4f       SUCCESS  ID=102           Title="PV_nTuple2"                              #items=12 {fake,r,x,y,z,errr,errz,errx,erry,mother,chi2,nDoF}
+PrimaryVertexChecker_6ecf8c4f       SUCCESS Booked 34 Histogram(s) : 1D=34 
+HLTControlFlowMgr                      INFO Memory pool: used 2.48964 +/- 0.00558607 MiB (min: 2, max: 2) in 1 +/- 0 blocks (allocated >once in 0 +/- 0% events). Allocated capacity was 10 +/- 0 MiB (min: 10, max: 10) and 338.83 +/- 0.975403 (min: 301, max: 363) requests were served
+HLTControlFlowMgr                      INFO Timing table:
+HLTControlFlowMgr                      INFO 
+ | Name of Algorithm                                      | Execution Count | Total Time / s  | Avg. Time / us   |
+ | Sum of all Algorithms                                  |             100 |           4.528 |        45281.160 |
+ | "RootIOAlg"                                            |             100 |           3.984 |        39844.425 |
+ | "reserveIOV"                                           |             100 |           0.106 |         1061.391 |
+ | "PrimaryVertexChecker_6ecf8c4f"                        |             100 |           0.069 |          689.290 |
+ | "VeloRetinaClusterTrackingSIMD_66dc8c24"               |             100 |           0.064 |          641.065 |
+ | "Unpack__Event_MC_Vertices"                            |             100 |           0.061 |          612.147 |
+ | "Unpack__Event_MC_Particles"                           |             100 |           0.060 |          600.160 |
+ | "velo_search_by_triplet"                               |             100 |           0.043 |          425.106 |
+ | "decode_retinaclusters"                                |             100 |           0.017 |          169.694 |
+ | "fromV3TrackV1Track_8cb534ec"                          |             100 |           0.017 |          166.267 |
+ | "GaudiAllenVeloToV3Tracks_5b59ab43"                    |             100 |           0.016 |          163.636 |
+ | "PrVPHitsToVPLightClusters_8cd36c45"                   |             100 |           0.011 |          105.606 |
+ | "fromV3TrackV1Track_ccafc722"                          |             100 |           0.008 |           82.110 |
+ | "velo_kalman_filter"                                   |             100 |           0.007 |           73.714 |
+ | "pv_beamline_multi_fitter"                             |             100 |           0.007 |           66.981 |
+ | "TrackContainersMerger_ae20c64e"                       |             100 |           0.005 |           54.114 |
+ | "ProvideConstants_3adb2659"                            |             100 |           0.005 |           48.632 |
+ | "VPLightClustersToVPMicroClustersConverter_856cbe66"   |             100 |           0.004 |           44.815 |
+ | "pv_beamline_calculate_denom"                          |             100 |           0.004 |           42.701 |
+ | "pv_beamline_histo"                                    |             100 |           0.004 |           37.617 |
+ | "velo_consolidate_tracks"                              |             100 |           0.004 |           36.326 |
+ | "pv_beamline_peak"                                     |             100 |           0.003 |           30.357 |
+ | "velo_three_hit_tracks_filter"                         |             100 |           0.003 |           29.382 |
+ | "calculate_number_of_retinaclusters_each_sensor_pair"  |             100 |           0.003 |           29.024 |
+ | "initialize_number_of_events"                          |             100 |           0.003 |           27.936 |
+ | "velo_copy_track_hit_number"                           |             100 |           0.003 |           27.898 |
+ | "velo_banks"                                           |             100 |           0.003 |           27.721 |
+ | "pv_beamline_cleanup"                                  |             100 |           0.003 |           26.635 |
+ | "pv_beamline_extrapolate"                              |             100 |           0.003 |           25.723 |
+ | "TransposeRawBanks_d381aaa1"                           |             100 |           0.003 |           25.252 |
+ | "make_event_list_dd513db7"                             |             100 |           0.002 |           24.527 |
+ | "UnpackRawEvent_ODIN"                                  |             100 |           0.001 |            7.856 |
+ | "PrStoreUTHitClustersEmptyProducer_157e5eb0"           |             100 |           0.000 |            4.734 |
+ | "ProvideRuntimeOptions_3cfd3604"                       |             100 |           0.000 |            3.963 |
+ | "LinkMCHeader_8272a2ef"                                |             100 |           0.000 |            3.197 |
+ | "UniqueIDGeneratorAlg_26e527e9"                        |             100 |           0.000 |            2.652 |
+ | "DummyEventTime"                                       |             100 |           0.000 |            2.489 |
+ | "GaudiAllenPVsToPrimaryVertexContainer_733da036"       |             100 |           0.000 |            2.403 |
+ | "Decode_ODIN"                                          |             100 |           0.000 |            2.223 |
+ | "ProvideRuntimeOptions_a3a59eb5"                       |             100 |           0.000 |            2.125 |
+ | "FTRawBankDecoderEmptyProducer_1b0ec37f"               |             100 |           0.000 |            1.566 |
+ | "TransposeRawBanks_111e7696"                           |             100 |           0.000 |            1.458 |
+ | "UnpackRawEvent_VP"                                    |             100 |           0.000 |            0.920 |
+ | "UnpackRawEvent_VPRetinaCluster"                       |             100 |           0.000 |            0.853 |
+ | "DeviceBeamline"                                       |             100 |           0.000 |            0.642 |
+ | "DeviceUTGeometry"                                     |             100 |           0.000 |            0.628 |
+ | "DeviceFTGeometry"                                     |             100 |           0.000 |            0.585 |
+ | "DeviceUTLookupTables"                                 |             100 |           0.000 |            0.426 |
+ | "DeviceMuonGeometry"                                   |             100 |           0.000 |            0.353 |
+ | "DeviceRichPDMDBMapping"                               |             100 |           0.000 |            0.352 |
+ | "DeviceMuonTable"                                      |             100 |           0.000 |            0.345 |
+ | "DeviceCaloGeometry"                                   |             100 |           0.000 |            0.344 |
+ | "DeviceVPGeometry"                                     |             100 |           0.000 |            0.344 |
+ | "DeviceRichCableMapping"                               |             100 |           0.000 |            0.340 |
+ | "DeviceMagneticField"                                  |             100 |           0.000 |            0.339 |
+
+HLTControlFlowMgr                      INFO StateTree: CFNode   #executed  #passed
+NONLAZY_OR: allen_reconstruction                       #=100     Sum=100         Eff=|( 100.0000 +- 0.00000 )%|
+ NONLAZY_OR: allen_non_event_data                      #=100     Sum=100         Eff=|( 100.0000 +- 0.00000 )%|
+  DumpBeamline/DeviceBeamline                          #=100     Sum=100         Eff=|( 100.0000 +- 0.00000 )%|
+  DumpVPGeometry/DeviceVPGeometry                      #=100     Sum=100         Eff=|( 100.0000 +- 0.00000 )%|
+  DumpUTGeometry/DeviceUTGeometry                      #=100     Sum=100         Eff=|( 100.0000 +- 0.00000 )%|
+  DumpUTLookupTables/DeviceUTLookupTables              #=100     Sum=100         Eff=|( 100.0000 +- 0.00000 )%|
+  DumpCaloGeometry/DeviceCaloGeometry                  #=100     Sum=100         Eff=|( 100.0000 +- 0.00000 )%|
+  DumpMagneticField/DeviceMagneticField                #=100     Sum=100         Eff=|( 100.0000 +- 0.00000 )%|
+  DumpFTGeometry/DeviceFTGeometry                      #=100     Sum=100         Eff=|( 100.0000 +- 0.00000 )%|
+  DumpMuonGeometry/DeviceMuonGeometry                  #=100     Sum=100         Eff=|( 100.0000 +- 0.00000 )%|
+  DumpMuonTable/DeviceMuonTable                        #=100     Sum=100         Eff=|( 100.0000 +- 0.00000 )%|
+  DumpRichPDMDBMapping/DeviceRichPDMDBMapping          #=100     Sum=100         Eff=|( 100.0000 +- 0.00000 )%|
+  DumpRichCableMapping/DeviceRichCableMapping          #=100     Sum=100         Eff=|( 100.0000 +- 0.00000 )%|
+ LAZY_AND: pv_checker_decision                         #=100     Sum=100         Eff=|( 100.0000 +- 0.00000 )%|
+  NONLAZY_OR: pv_checker_data                          #=100     Sum=100         Eff=|( 100.0000 +- 0.00000 )%|
+   PrimaryVertexChecker/PrimaryVertexChecker_6ecf8c4f  #=100     Sum=100         Eff=|( 100.0000 +- 0.00000 )%|
+
+HLTControlFlowMgr                      INFO Histograms converted successfully according to request.
+ToolSvc                                INFO Removing all tools created by ToolSvc
+NTupleSvc                              INFO NTuples saved successfully
+ApplicationMgr                         INFO Application Manager Finalized successfully
+ApplicationMgr                         INFO Application Manager Terminated successfully
\ No newline at end of file
-- 
GitLab


From f705a4b2088ce6f1d4aa3e3cd6039a1160938cf3 Mon Sep 17 00:00:00 2001
From: Gitlab CI <noreply@cern.ch>
Date: Thu, 24 Oct 2024 14:34:30 +0000
Subject: [PATCH 2/7] Fixed formatting

patch generated by https://gitlab.cern.ch/lhcb/Moore/-/jobs/45100829
---
 .../tests/options/mdf_input_and_conds_mc_expected_2024.py   | 6 ++++--
 ...mdf_input_and_conds_nominal_beamline_mc_expected_2024.py | 6 ++++--
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/Hlt/Moore/tests/options/mdf_input_and_conds_mc_expected_2024.py b/Hlt/Moore/tests/options/mdf_input_and_conds_mc_expected_2024.py
index 159482406d2..098cd716b2f 100644
--- a/Hlt/Moore/tests/options/mdf_input_and_conds_mc_expected_2024.py
+++ b/Hlt/Moore/tests/options/mdf_input_and_conds_mc_expected_2024.py
@@ -1,10 +1,12 @@
 from Moore import options
 
-options.input_files.append("root://eoslhcb.cern.ch//eos/lhcb/grid/prod/lhcb/MC/Dev/DIGI/00204942/0000/00204942_00000034_1.digi")
+options.input_files.append(
+    "root://eoslhcb.cern.ch//eos/lhcb/grid/prod/lhcb/MC/Dev/DIGI/00204942/0000/00204942_00000034_1.digi"
+)
 
 options.simulation = True
 options.dddb_tag = "dddb-20231017"
 options.conddb_tag = "sim-20231017-vc-mu100"
 options.evt_max = 10000
 #options.print_freq = 1000
-options.input_type = "ROOT"
\ No newline at end of file
+options.input_type = "ROOT"
diff --git a/Hlt/Moore/tests/options/mdf_input_and_conds_nominal_beamline_mc_expected_2024.py b/Hlt/Moore/tests/options/mdf_input_and_conds_nominal_beamline_mc_expected_2024.py
index 8ccf81fdaf8..9648ec352d8 100644
--- a/Hlt/Moore/tests/options/mdf_input_and_conds_nominal_beamline_mc_expected_2024.py
+++ b/Hlt/Moore/tests/options/mdf_input_and_conds_nominal_beamline_mc_expected_2024.py
@@ -1,10 +1,12 @@
 from Moore import options
 
-options.input_files.append("root://eoslhcb.cern.ch//eos/lhcb/grid/prod/lhcb/MC/Dev/DIGI/00217353/0000/00217353_00000034_1.digi")
+options.input_files.append(
+    "root://eoslhcb.cern.ch//eos/lhcb/grid/prod/lhcb/MC/Dev/DIGI/00217353/0000/00217353_00000034_1.digi"
+)
 
 options.simulation = True
 options.dddb_tag = "dddb-20231017"
 options.conddb_tag = "sim10-2024-v1.0-vc0mm-mu100"
 options.evt_max = 10000
 #options.print_freq = 1000
-options.input_type = "ROOT"
\ No newline at end of file
+options.input_type = "ROOT"
-- 
GitLab


From 6f22cf24e633069f849c00bffe6c20e334319572 Mon Sep 17 00:00:00 2001
From: Bogdan Kutsenko <Bogdan Kutsenko bokutsen@cern.ch>
Date: Fri, 8 Nov 2024 09:17:49 +0100
Subject: [PATCH 3/7] Cleaned

---
 .../mdf_input_and_conds_mc_expected_2024.py   | 12 ---------
 ...conds_nominal_beamline_mc_expected_2024.py | 25 ++++++++++++-------
 Hlt/RecoConf/options/allen_gaudi_pv.py        |  2 +-
 ...len_gaudi_pv_with_mcchecking_beamshift.qmt |  2 +-
 4 files changed, 18 insertions(+), 23 deletions(-)
 delete mode 100644 Hlt/Moore/tests/options/mdf_input_and_conds_mc_expected_2024.py

diff --git a/Hlt/Moore/tests/options/mdf_input_and_conds_mc_expected_2024.py b/Hlt/Moore/tests/options/mdf_input_and_conds_mc_expected_2024.py
deleted file mode 100644
index 098cd716b2f..00000000000
--- a/Hlt/Moore/tests/options/mdf_input_and_conds_mc_expected_2024.py
+++ /dev/null
@@ -1,12 +0,0 @@
-from Moore import options
-
-options.input_files.append(
-    "root://eoslhcb.cern.ch//eos/lhcb/grid/prod/lhcb/MC/Dev/DIGI/00204942/0000/00204942_00000034_1.digi"
-)
-
-options.simulation = True
-options.dddb_tag = "dddb-20231017"
-options.conddb_tag = "sim-20231017-vc-mu100"
-options.evt_max = 10000
-#options.print_freq = 1000
-options.input_type = "ROOT"
diff --git a/Hlt/Moore/tests/options/mdf_input_and_conds_nominal_beamline_mc_expected_2024.py b/Hlt/Moore/tests/options/mdf_input_and_conds_nominal_beamline_mc_expected_2024.py
index 9648ec352d8..50064f48391 100644
--- a/Hlt/Moore/tests/options/mdf_input_and_conds_nominal_beamline_mc_expected_2024.py
+++ b/Hlt/Moore/tests/options/mdf_input_and_conds_nominal_beamline_mc_expected_2024.py
@@ -1,12 +1,19 @@
+###############################################################################
+# (c) Copyright 2024 CERN for the benefit of the LHCb Collaboration           #
+#                                                                             #
+# This software is distributed under the terms of the GNU General Public      #
+# Licence version 3 (GPL Version 3), copied verbatim in the file "COPYING".   #
+#                                                                             #
+# In applying this licence, CERN does not waive the privileges and immunities #
+# granted to it by virtue of its status as an Intergovernmental Organization  #
+# or submit itself to any jurisdiction.                                       #
+###############################################################################
 from Moore import options
+from RecoConf.decoders import default_VeloCluster_source
 
-options.input_files.append(
-    "root://eoslhcb.cern.ch//eos/lhcb/grid/prod/lhcb/MC/Dev/DIGI/00217353/0000/00217353_00000034_1.digi"
-)
+# Use velo retina decoding:
+default_VeloCluster_source.global_bind(bank_type="VPRetinaCluster")
 
-options.simulation = True
-options.dddb_tag = "dddb-20231017"
-options.conddb_tag = "sim10-2024-v1.0-vc0mm-mu100"
-options.evt_max = 10000
-#options.print_freq = 1000
-options.input_type = "ROOT"
+options.set_input_and_conds_from_testfiledb('expected_2024_NominalBeamLine_minbias_digi')
+
+options.evt_max = 1000
diff --git a/Hlt/RecoConf/options/allen_gaudi_pv.py b/Hlt/RecoConf/options/allen_gaudi_pv.py
index b2af090317b..56782dc1ee0 100644
--- a/Hlt/RecoConf/options/allen_gaudi_pv.py
+++ b/Hlt/RecoConf/options/allen_gaudi_pv.py
@@ -73,7 +73,7 @@ def make_reconstruction():
     return Reconstruction('pv_checker', pv_checker)
 
 
-options.evt_max = 1000
+options.evt_max = 100
 options.ntuple_file = 'Hlt1_PVperformance_Allen.root'
 
 with default_VeloCluster_source.bind(bank_type="VPRetinaCluster"):
diff --git a/Hlt/RecoConf/tests/qmtest/allen_gaudi_pv_with_mcchecking_beamshift.qmt b/Hlt/RecoConf/tests/qmtest/allen_gaudi_pv_with_mcchecking_beamshift.qmt
index 768c9d558e4..e555e2a6c0f 100644
--- a/Hlt/RecoConf/tests/qmtest/allen_gaudi_pv_with_mcchecking_beamshift.qmt
+++ b/Hlt/RecoConf/tests/qmtest/allen_gaudi_pv_with_mcchecking_beamshift.qmt
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?><!DOCTYPE extension  PUBLIC '-//QM/2.3/Extension//EN'  'http://www.codesourcery.com/qm/dtds/2.3/-//qm/2.3/extension//en.dtd'>
 <!--
-    (c) Copyright 2022 CERN for the benefit of the LHCb Collaboration
+    (c) Copyright 2024 CERN for the benefit of the LHCb Collaboration
 
     This software is distributed under the terms of the GNU General Public
     Licence version 3 (GPL Version 3), copied verbatim in the file "COPYING".
-- 
GitLab


From 4f15fd09095de55d2e633611d01e4c269fdee592 Mon Sep 17 00:00:00 2001
From: Gitlab CI <noreply@cern.ch>
Date: Fri, 8 Nov 2024 08:18:49 +0000
Subject: [PATCH 4/7] Fixed formatting

patch generated by https://gitlab.cern.ch/lhcb/Moore/-/jobs/45732491
---
 .../mdf_input_and_conds_nominal_beamline_mc_expected_2024.py   | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Hlt/Moore/tests/options/mdf_input_and_conds_nominal_beamline_mc_expected_2024.py b/Hlt/Moore/tests/options/mdf_input_and_conds_nominal_beamline_mc_expected_2024.py
index 50064f48391..5557e688f81 100644
--- a/Hlt/Moore/tests/options/mdf_input_and_conds_nominal_beamline_mc_expected_2024.py
+++ b/Hlt/Moore/tests/options/mdf_input_and_conds_nominal_beamline_mc_expected_2024.py
@@ -14,6 +14,7 @@ from RecoConf.decoders import default_VeloCluster_source
 # Use velo retina decoding:
 default_VeloCluster_source.global_bind(bank_type="VPRetinaCluster")
 
-options.set_input_and_conds_from_testfiledb('expected_2024_NominalBeamLine_minbias_digi')
+options.set_input_and_conds_from_testfiledb(
+    'expected_2024_NominalBeamLine_minbias_digi')
 
 options.evt_max = 1000
-- 
GitLab


From cb0631d48d326d0d60c7ff96544586c3629aef95 Mon Sep 17 00:00:00 2001
From: Bogdan Kutsenko <Bogdan Kutsenko bokutsen@cern.ch>
Date: Fri, 8 Nov 2024 09:23:37 +0100
Subject: [PATCH 5/7] New Allen validator added to default
 allen_gaudi_pv_mcchecking

---
 Hlt/RecoConf/tests/qmtest/allen_gaudi_pv_with_mcchecking.qmt | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Hlt/RecoConf/tests/qmtest/allen_gaudi_pv_with_mcchecking.qmt b/Hlt/RecoConf/tests/qmtest/allen_gaudi_pv_with_mcchecking.qmt
index fb292b28921..d446b1b54f5 100644
--- a/Hlt/RecoConf/tests/qmtest/allen_gaudi_pv_with_mcchecking.qmt
+++ b/Hlt/RecoConf/tests/qmtest/allen_gaudi_pv_with_mcchecking.qmt
@@ -27,6 +27,10 @@
 from Moore.qmtest.exclusions import ref_preprocessor
 validateWithReference(preproc = ref_preprocessor)
 
+from Allen.qmtest.validators import check_PV_efficiency
+
+efficiency, fake_pv  = check_PV_efficiency("$RECOCONFROOT/tests/refs/allen_gaudi_pv_with_mcchecking_beamshift.ref", causes, "all")
+
 from Moore.qmtest.exclusions import remove_known_warnings
 countErrorLines({"FATAL": 0, "ERROR": 0, "WARNING": 0},
                 stdout=remove_known_warnings(stdout))
-- 
GitLab


From 5c37c3afc5e4a23c50913271a26c7ae591cf3ce4 Mon Sep 17 00:00:00 2001
From: Miroslav Saur <miroslav.saur@cern.ch>
Date: Sun, 1 Dec 2024 07:26:49 +0100
Subject: [PATCH 6/7] Apply 1 suggestion(s) to 1 file(s)

---
 .../mdf_input_and_conds_nominal_beamline_mc_expected_2024.py    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Hlt/Moore/tests/options/mdf_input_and_conds_nominal_beamline_mc_expected_2024.py b/Hlt/Moore/tests/options/mdf_input_and_conds_nominal_beamline_mc_expected_2024.py
index 5557e688f81..398a538bb70 100644
--- a/Hlt/Moore/tests/options/mdf_input_and_conds_nominal_beamline_mc_expected_2024.py
+++ b/Hlt/Moore/tests/options/mdf_input_and_conds_nominal_beamline_mc_expected_2024.py
@@ -15,6 +15,6 @@ from RecoConf.decoders import default_VeloCluster_source
 default_VeloCluster_source.global_bind(bank_type="VPRetinaCluster")
 
 options.set_input_and_conds_from_testfiledb(
-    'expected_2024_NominalBeamLine_minbias_digi')
+    'expected_2024_minbias_digi_nominal_beam_line')
 
 options.evt_max = 1000
-- 
GitLab


From dfcf3987c7ac4237fdfc0f37b50f4576ab6ee4d3 Mon Sep 17 00:00:00 2001
From: Miroslav Saur <miroslav.saur@cern.ch>
Date: Sat, 21 Dec 2024 17:22:07 +0800
Subject: [PATCH 7/7] Updating allen_gaudi_pv_with_mcchecking_beamshift
 reference based on lhcb-master-mr/12125

---
 ...len_gaudi_pv_with_mcchecking_beamshift.ref | 236 ++++++++----------
 ...i_pv_with_mcchecking_beamshift.ref.detdesc | 116 +++++++++
 ...ecking_beamshift.ref.x86_64_v3-detdesc-opt | 116 +++++++++
 ...ith_mcchecking_beamshift.ref.x86_64_v3-opt | 116 +++++++++
 4 files changed, 453 insertions(+), 131 deletions(-)
 create mode 100644 Hlt/RecoConf/tests/refs/allen_gaudi_pv_with_mcchecking_beamshift.ref.detdesc
 create mode 100644 Hlt/RecoConf/tests/refs/allen_gaudi_pv_with_mcchecking_beamshift.ref.x86_64_v3-detdesc-opt
 create mode 100644 Hlt/RecoConf/tests/refs/allen_gaudi_pv_with_mcchecking_beamshift.ref.x86_64_v3-opt

diff --git a/Hlt/RecoConf/tests/refs/allen_gaudi_pv_with_mcchecking_beamshift.ref b/Hlt/RecoConf/tests/refs/allen_gaudi_pv_with_mcchecking_beamshift.ref
index a84ee73d866..e2fe65c8c2a 100644
--- a/Hlt/RecoConf/tests/refs/allen_gaudi_pv_with_mcchecking_beamshift.ref
+++ b/Hlt/RecoConf/tests/refs/allen_gaudi_pv_with_mcchecking_beamshift.ref
@@ -1,142 +1,116 @@
-PrimaryVertexChecker_6ecf8c4f          INFO      ************************************ 
+PrimaryVertexChecker_6ecf8c4f          INFO      ************************************
 PrimaryVertexChecker_6ecf8c4f          INFO  MC PV is reconstructible if at least 4  tracks are reconstructed
 PrimaryVertexChecker_6ecf8c4f          INFO  MC PV is isolated if dz to closest reconstructible MC PV >  10 mm
 PrimaryVertexChecker_6ecf8c4f          INFO  MC efficiency split by tracks with threshold: (4,10), >= 10
 PrimaryVertexChecker_6ecf8c4f          INFO  MC efficiency split by z position: <-50, (-50,50), >50
 PrimaryVertexChecker_6ecf8c4f          INFO  REC and MC vertices matched:  by distance
-PrimaryVertexChecker_6ecf8c4f          INFO 
-PrimaryVertexChecker_6ecf8c4f          INFO 00 all                    :      516 from      551 (     795-244     ) [ 93.65 %], false    8 from reco.      524 (     516+8   ) [  1.53 %] 
-PrimaryVertexChecker_6ecf8c4f          INFO 01 isolated               :      269 from      280 (     409-129     ) [ 96.07 %], false    1 from reco.      270 (     269+1   ) [  0.37 %] 
-PrimaryVertexChecker_6ecf8c4f          INFO 02 close                  :      247 from      271 (     386-115     ) [ 91.14 %], false    7 from reco.      254 (     247+7   ) [  2.76 %] 
-PrimaryVertexChecker_6ecf8c4f          INFO 03 ntracks<10             :       40 from       58 (      58-0       ) [ 68.97 %], false    4 from reco.       44 (      40+4   ) [  9.09 %] 
-PrimaryVertexChecker_6ecf8c4f          INFO 04 ntracks>=10            :      476 from      493 (     493-0       ) [ 96.55 %], false    4 from reco.      480 (     476+4   ) [  0.83 %] 
-PrimaryVertexChecker_6ecf8c4f          INFO 05 z<-50.0                :      102 from      106 (     153-47      ) [ 96.23 %], false    1 from reco.      103 (     102+1   ) [  0.97 %] 
-PrimaryVertexChecker_6ecf8c4f          INFO 06 z in (-50.0, 50.0)     :      314 from      339 (     477-138     ) [ 92.63 %], false    4 from reco.      318 (     314+4   ) [  1.26 %] 
-PrimaryVertexChecker_6ecf8c4f          INFO 07 z >=50.0               :      100 from      106 (     165-59      ) [ 94.34 %], false    3 from reco.      103 (     100+3   ) [  2.91 %] 
-PrimaryVertexChecker_6ecf8c4f          INFO 08 decayBeauty            :        9 from        9 (       9-0       ) [ 100.00 %], false    0 from reco.       17 (      17+0   ) [  0.00 %] 
-PrimaryVertexChecker_6ecf8c4f          INFO 09 decayCharm             :       69 from       71 (      71-0       ) [ 97.18 %], false    1 from reco.       77 (      76+1   ) [  1.30 %] 
-PrimaryVertexChecker_6ecf8c4f          INFO 10 decayStrange           :      514 from      546 (     577-31      ) [ 94.14 %], false    7 from reco.      522 (     515+7   ) [  1.34 %] 
-PrimaryVertexChecker_6ecf8c4f          INFO 11 other                  :        2 from        5 (     218-213     ) [ 40.00 %], false    1 from reco.       10 (       9+1   ) [ 10.00 %] 
-PrimaryVertexChecker_6ecf8c4f          INFO 12 1MCPV                  :       99 from       99 (     100-1       ) [ 100.00 %], false    1 from reco.      100 (      99+1   ) [  1.00 %] 
-PrimaryVertexChecker_6ecf8c4f          INFO 13 2MCPV                  :       97 from       97 (      99-2       ) [ 100.00 %], false    0 from reco.       97 (      97+0   ) [  0.00 %] 
-PrimaryVertexChecker_6ecf8c4f          INFO 14 3MCPV                  :       87 from       90 (      97-7       ) [ 96.67 %], false    3 from reco.       90 (      87+3   ) [  3.33 %] 
-PrimaryVertexChecker_6ecf8c4f          INFO 15 4MCPV                  :       77 from       83 (      95-12      ) [ 92.77 %], false    0 from reco.       77 (      77+0   ) [  0.00 %] 
-PrimaryVertexChecker_6ecf8c4f          INFO 16 5MCPV                  :       64 from       68 (      89-21      ) [ 94.12 %], false    0 from reco.       64 (      64+0   ) [  0.00 %] 
-PrimaryVertexChecker_6ecf8c4f          INFO 
-PrimaryVertexChecker_6ecf8c4f          INFO 00 all                    : av. PV tracks:  38.98 [MC:  37.00]
-PrimaryVertexChecker_6ecf8c4f          INFO 01 isolated               : av. PV tracks:  37.54 [MC:  36.37]
-PrimaryVertexChecker_6ecf8c4f          INFO 02 close                  : av. PV tracks:  40.55 [MC:  37.66]
-PrimaryVertexChecker_6ecf8c4f          INFO 03 ntracks<10             : av. PV tracks:   9.70 [MC:   6.62]
-PrimaryVertexChecker_6ecf8c4f          INFO 04 ntracks>=10            : av. PV tracks:  41.45 [MC:  40.58]
-PrimaryVertexChecker_6ecf8c4f          INFO 05 z<-50.0                : av. PV tracks:  37.90 [MC:  35.97]
-PrimaryVertexChecker_6ecf8c4f          INFO 06 z in (-50.0, 50.0)     : av. PV tracks:  38.11 [MC:  36.03]
-PrimaryVertexChecker_6ecf8c4f          INFO 07 z >=50.0               : av. PV tracks:  42.82 [MC:  41.15]
-PrimaryVertexChecker_6ecf8c4f          INFO 08 decayBeauty            : av. PV tracks:  68.22 [MC:  68.44]
-PrimaryVertexChecker_6ecf8c4f          INFO 09 decayCharm             : av. PV tracks:  70.48 [MC:  68.86]
-PrimaryVertexChecker_6ecf8c4f          INFO 10 decayStrange           : av. PV tracks:  39.10 [MC:  37.26]
-PrimaryVertexChecker_6ecf8c4f          INFO 11 other                  : av. PV tracks:   8.50 [MC:   9.00]
-PrimaryVertexChecker_6ecf8c4f          INFO 12 1MCPV                  : av. PV tracks:  73.96 [MC:  77.14]
-PrimaryVertexChecker_6ecf8c4f          INFO 13 2MCPV                  : av. PV tracks:  47.33 [MC:  47.36]
-PrimaryVertexChecker_6ecf8c4f          INFO 14 3MCPV                  : av. PV tracks:  36.31 [MC:  34.99]
-PrimaryVertexChecker_6ecf8c4f          INFO 15 4MCPV                  : av. PV tracks:  28.12 [MC:  25.30]
-PrimaryVertexChecker_6ecf8c4f          INFO 16 5MCPV                  : av. PV tracks:  20.50 [MC:  19.24]
-PrimaryVertexChecker_6ecf8c4f          INFO 
-PrimaryVertexChecker_6ecf8c4f          INFO 1_res_all                 :  x: +0.015, y: +0.015, z: +0.089
-PrimaryVertexChecker_6ecf8c4f          INFO 2_res_ntracks<10          :  x: +0.032, y: +0.032, z: +0.152
-PrimaryVertexChecker_6ecf8c4f          INFO 3_res_ntracks(10,30)      :  x: +0.016, y: +0.016, z: +0.109
-PrimaryVertexChecker_6ecf8c4f          INFO 4_res_ntracks>30          :  x: +0.009, y: +0.008, z: +0.046
-PrimaryVertexChecker_6ecf8c4f          INFO 5_res_z<-50               :  x: +0.016, y: +0.016, z: +0.107
-PrimaryVertexChecker_6ecf8c4f          INFO 6_res_z(-50,50)           :  x: +0.015, y: +0.015, z: +0.089
-PrimaryVertexChecker_6ecf8c4f          INFO 7_res_z>50                :  x: +0.015, y: +0.014, z: +0.065
-PrimaryVertexChecker_6ecf8c4f          INFO 
-PrimaryVertexChecker_6ecf8c4f          INFO 1_pull_width_all          :  x: +1.140, y: +1.116, z: +1.157
-PrimaryVertexChecker_6ecf8c4f          INFO 1_pull_mean_all           :  x: -0.058, y: -0.046, z: -0.025
-PrimaryVertexChecker_6ecf8c4f          INFO 
+PrimaryVertexChecker_6ecf8c4f          INFO
+PrimaryVertexChecker_6ecf8c4f          INFO 00 all                    :      499 from      532 (     743-211     ) [ 93.80 %], false   12 from reco.      511 (     499+12  ) [  2.35 %]
+PrimaryVertexChecker_6ecf8c4f          INFO 01 isolated               :      292 from      298 (     415-117     ) [ 97.99 %], false    4 from reco.      296 (     292+4   ) [  1.35 %]
+PrimaryVertexChecker_6ecf8c4f          INFO 02 close                  :      207 from      234 (     328-94      ) [ 88.46 %], false    8 from reco.      215 (     207+8   ) [  3.72 %]
+PrimaryVertexChecker_6ecf8c4f          INFO 03 ntracks<10             :       38 from       50 (      50-0       ) [ 76.00 %], false    8 from reco.       46 (      38+8   ) [ 17.39 %]
+PrimaryVertexChecker_6ecf8c4f          INFO 04 ntracks>=10            :      461 from      482 (     482-0       ) [ 95.64 %], false    4 from reco.      465 (     461+4   ) [  0.86 %]
+PrimaryVertexChecker_6ecf8c4f          INFO 05 z<-50.0                :      109 from      115 (     149-34      ) [ 94.78 %], false    1 from reco.      110 (     109+1   ) [  0.91 %]
+PrimaryVertexChecker_6ecf8c4f          INFO 06 z in (-50.0, 50.0)     :      278 from      300 (     427-127     ) [ 92.67 %], false    9 from reco.      287 (     278+9   ) [  3.14 %]
+PrimaryVertexChecker_6ecf8c4f          INFO 07 z >=50.0               :      112 from      117 (     167-50      ) [ 95.73 %], false    2 from reco.      114 (     112+2   ) [  1.75 %]
+PrimaryVertexChecker_6ecf8c4f          INFO 08 decayBeauty            :        6 from        6 (       6-0       ) [ 100.00 %], false    0 from reco.       18 (      18+0   ) [  0.00 %]
+PrimaryVertexChecker_6ecf8c4f          INFO 09 decayCharm             :       68 from       71 (      71-0       ) [ 95.77 %], false    3 from reco.       80 (      77+3   ) [  3.75 %]
+PrimaryVertexChecker_6ecf8c4f          INFO 10 decayStrange           :      499 from      532 (     558-26      ) [ 93.80 %], false   12 from reco.      511 (     499+12  ) [  2.35 %]
+PrimaryVertexChecker_6ecf8c4f          INFO 11 other                  :        0 from        0 (     185-185     ) [ -100.00 %], false    0 from reco.       12 (      12+0   ) [  0.00 %]
+PrimaryVertexChecker_6ecf8c4f          INFO 12 1MCPV                  :       97 from      100 (     100-0       ) [ 97.00 %], false    3 from reco.      100 (      97+3   ) [  3.00 %]
+PrimaryVertexChecker_6ecf8c4f          INFO 13 2MCPV                  :       99 from      100 (     100-0       ) [ 99.00 %], false    2 from reco.      101 (      99+2   ) [  1.98 %]
+PrimaryVertexChecker_6ecf8c4f          INFO 14 3MCPV                  :       90 from       93 (     100-7       ) [ 96.77 %], false    1 from reco.       91 (      90+1   ) [  1.10 %]
+PrimaryVertexChecker_6ecf8c4f          INFO 15 4MCPV                  :       75 from       78 (      96-18      ) [ 96.15 %], false    2 from reco.       77 (      75+2   ) [  2.60 %]
+PrimaryVertexChecker_6ecf8c4f          INFO 16 5MCPV                  :       54 from       57 (      84-27      ) [ 94.74 %], false    1 from reco.       55 (      54+1   ) [  1.82 %]
+PrimaryVertexChecker_6ecf8c4f          INFO
+PrimaryVertexChecker_6ecf8c4f          INFO 00 all                    : av. PV tracks:  39.55 [MC:  37.12]
+PrimaryVertexChecker_6ecf8c4f          INFO 01 isolated               : av. PV tracks:  36.38 [MC:  35.55]
+PrimaryVertexChecker_6ecf8c4f          INFO 02 close                  : av. PV tracks:  44.02 [MC:  39.12]
+PrimaryVertexChecker_6ecf8c4f          INFO 03 ntracks<10             : av. PV tracks:   9.37 [MC:   6.44]
+PrimaryVertexChecker_6ecf8c4f          INFO 04 ntracks>=10            : av. PV tracks:  42.04 [MC:  40.30]
+PrimaryVertexChecker_6ecf8c4f          INFO 05 z<-50.0                : av. PV tracks:  34.46 [MC:  32.43]
+PrimaryVertexChecker_6ecf8c4f          INFO 06 z in (-50.0, 50.0)     : av. PV tracks:  39.78 [MC:  36.99]
+PrimaryVertexChecker_6ecf8c4f          INFO 07 z >=50.0               : av. PV tracks:  43.93 [MC:  42.06]
+PrimaryVertexChecker_6ecf8c4f          INFO 08 decayBeauty            : av. PV tracks:  87.67 [MC:  86.00]
+PrimaryVertexChecker_6ecf8c4f          INFO 09 decayCharm             : av. PV tracks:  65.99 [MC:  62.11]
+PrimaryVertexChecker_6ecf8c4f          INFO 10 decayStrange           : av. PV tracks:  39.55 [MC:  37.12]
+PrimaryVertexChecker_6ecf8c4f          INFO 11 other                  : av. PV tracks:   0.00 [MC:   0.00]
+PrimaryVertexChecker_6ecf8c4f          INFO 12 1MCPV                  : av. PV tracks:  72.26 [MC:  72.92]
+PrimaryVertexChecker_6ecf8c4f          INFO 13 2MCPV                  : av. PV tracks:  48.25 [MC:  48.54]
+PrimaryVertexChecker_6ecf8c4f          INFO 14 3MCPV                  : av. PV tracks:  33.56 [MC:  32.14]
+PrimaryVertexChecker_6ecf8c4f          INFO 15 4MCPV                  : av. PV tracks:  28.43 [MC:  24.96]
+PrimaryVertexChecker_6ecf8c4f          INFO 16 5MCPV                  : av. PV tracks:  24.52 [MC:  20.95]
+PrimaryVertexChecker_6ecf8c4f          INFO
+PrimaryVertexChecker_6ecf8c4f          INFO 1_res_all                 :  x: +0.014, y: +0.013, z: +0.091
+PrimaryVertexChecker_6ecf8c4f          INFO 2_res_ntracks<10          :  x: +0.028, y: +0.025, z: +0.187
+PrimaryVertexChecker_6ecf8c4f          INFO 3_res_ntracks(10,30)      :  x: +0.016, y: +0.015, z: +0.105
+PrimaryVertexChecker_6ecf8c4f          INFO 4_res_ntracks>30          :  x: +0.008, y: +0.007, z: +0.043
+PrimaryVertexChecker_6ecf8c4f          INFO 5_res_z<-50               :  x: +0.016, y: +0.015, z: +0.119
+PrimaryVertexChecker_6ecf8c4f          INFO 6_res_z(-50,50)           :  x: +0.014, y: +0.013, z: +0.089
+PrimaryVertexChecker_6ecf8c4f          INFO 7_res_z>50                :  x: +0.011, y: +0.013, z: +0.058
+PrimaryVertexChecker_6ecf8c4f          INFO
+PrimaryVertexChecker_6ecf8c4f          INFO 1_pull_width_all          :  x: +1.115, y: +1.104, z: +1.181
+PrimaryVertexChecker_6ecf8c4f          INFO 1_pull_mean_all           :  x: -0.033, y: +0.046, z: +0.039
+PrimaryVertexChecker_6ecf8c4f          INFO
 PrimaryVertexChecker_6ecf8c4f       SUCCESS Booked 2 N-Tuples and 0 Event Tag Collections
 PrimaryVertexChecker_6ecf8c4f       SUCCESS List of booked N-Tuples in directory "FILE1/PrimaryVertexChecker_6ecf8c4f"
 PrimaryVertexChecker_6ecf8c4f       SUCCESS  ID=101           Title="PV_nTuple"                               #items=38 {reco,isol,ntracks,nrectrmc,dzclose,nmcpv,mtruemcpv,nmcallpv,nrecpv,decayCharm,dec}
 PrimaryVertexChecker_6ecf8c4f       SUCCESS  ID=102           Title="PV_nTuple2"                              #items=12 {fake,r,x,y,z,errr,errz,errx,erry,mother,chi2,nDoF}
-PrimaryVertexChecker_6ecf8c4f       SUCCESS Booked 34 Histogram(s) : 1D=34 
-HLTControlFlowMgr                      INFO Memory pool: used 2.48964 +/- 0.00558607 MiB (min: 2, max: 2) in 1 +/- 0 blocks (allocated >once in 0 +/- 0% events). Allocated capacity was 10 +/- 0 MiB (min: 10, max: 10) and 338.83 +/- 0.975403 (min: 301, max: 363) requests were served
-HLTControlFlowMgr                      INFO Timing table:
-HLTControlFlowMgr                      INFO 
- | Name of Algorithm                                      | Execution Count | Total Time / s  | Avg. Time / us   |
- | Sum of all Algorithms                                  |             100 |           4.528 |        45281.160 |
- | "RootIOAlg"                                            |             100 |           3.984 |        39844.425 |
- | "reserveIOV"                                           |             100 |           0.106 |         1061.391 |
- | "PrimaryVertexChecker_6ecf8c4f"                        |             100 |           0.069 |          689.290 |
- | "VeloRetinaClusterTrackingSIMD_66dc8c24"               |             100 |           0.064 |          641.065 |
- | "Unpack__Event_MC_Vertices"                            |             100 |           0.061 |          612.147 |
- | "Unpack__Event_MC_Particles"                           |             100 |           0.060 |          600.160 |
- | "velo_search_by_triplet"                               |             100 |           0.043 |          425.106 |
- | "decode_retinaclusters"                                |             100 |           0.017 |          169.694 |
- | "fromV3TrackV1Track_8cb534ec"                          |             100 |           0.017 |          166.267 |
- | "GaudiAllenVeloToV3Tracks_5b59ab43"                    |             100 |           0.016 |          163.636 |
- | "PrVPHitsToVPLightClusters_8cd36c45"                   |             100 |           0.011 |          105.606 |
- | "fromV3TrackV1Track_ccafc722"                          |             100 |           0.008 |           82.110 |
- | "velo_kalman_filter"                                   |             100 |           0.007 |           73.714 |
- | "pv_beamline_multi_fitter"                             |             100 |           0.007 |           66.981 |
- | "TrackContainersMerger_ae20c64e"                       |             100 |           0.005 |           54.114 |
- | "ProvideConstants_3adb2659"                            |             100 |           0.005 |           48.632 |
- | "VPLightClustersToVPMicroClustersConverter_856cbe66"   |             100 |           0.004 |           44.815 |
- | "pv_beamline_calculate_denom"                          |             100 |           0.004 |           42.701 |
- | "pv_beamline_histo"                                    |             100 |           0.004 |           37.617 |
- | "velo_consolidate_tracks"                              |             100 |           0.004 |           36.326 |
- | "pv_beamline_peak"                                     |             100 |           0.003 |           30.357 |
- | "velo_three_hit_tracks_filter"                         |             100 |           0.003 |           29.382 |
- | "calculate_number_of_retinaclusters_each_sensor_pair"  |             100 |           0.003 |           29.024 |
- | "initialize_number_of_events"                          |             100 |           0.003 |           27.936 |
- | "velo_copy_track_hit_number"                           |             100 |           0.003 |           27.898 |
- | "velo_banks"                                           |             100 |           0.003 |           27.721 |
- | "pv_beamline_cleanup"                                  |             100 |           0.003 |           26.635 |
- | "pv_beamline_extrapolate"                              |             100 |           0.003 |           25.723 |
- | "TransposeRawBanks_d381aaa1"                           |             100 |           0.003 |           25.252 |
- | "make_event_list_dd513db7"                             |             100 |           0.002 |           24.527 |
- | "UnpackRawEvent_ODIN"                                  |             100 |           0.001 |            7.856 |
- | "PrStoreUTHitClustersEmptyProducer_157e5eb0"           |             100 |           0.000 |            4.734 |
- | "ProvideRuntimeOptions_3cfd3604"                       |             100 |           0.000 |            3.963 |
- | "LinkMCHeader_8272a2ef"                                |             100 |           0.000 |            3.197 |
- | "UniqueIDGeneratorAlg_26e527e9"                        |             100 |           0.000 |            2.652 |
- | "DummyEventTime"                                       |             100 |           0.000 |            2.489 |
- | "GaudiAllenPVsToPrimaryVertexContainer_733da036"       |             100 |           0.000 |            2.403 |
- | "Decode_ODIN"                                          |             100 |           0.000 |            2.223 |
- | "ProvideRuntimeOptions_a3a59eb5"                       |             100 |           0.000 |            2.125 |
- | "FTRawBankDecoderEmptyProducer_1b0ec37f"               |             100 |           0.000 |            1.566 |
- | "TransposeRawBanks_111e7696"                           |             100 |           0.000 |            1.458 |
- | "UnpackRawEvent_VP"                                    |             100 |           0.000 |            0.920 |
- | "UnpackRawEvent_VPRetinaCluster"                       |             100 |           0.000 |            0.853 |
- | "DeviceBeamline"                                       |             100 |           0.000 |            0.642 |
- | "DeviceUTGeometry"                                     |             100 |           0.000 |            0.628 |
- | "DeviceFTGeometry"                                     |             100 |           0.000 |            0.585 |
- | "DeviceUTLookupTables"                                 |             100 |           0.000 |            0.426 |
- | "DeviceMuonGeometry"                                   |             100 |           0.000 |            0.353 |
- | "DeviceRichPDMDBMapping"                               |             100 |           0.000 |            0.352 |
- | "DeviceMuonTable"                                      |             100 |           0.000 |            0.345 |
- | "DeviceCaloGeometry"                                   |             100 |           0.000 |            0.344 |
- | "DeviceVPGeometry"                                     |             100 |           0.000 |            0.344 |
- | "DeviceRichCableMapping"                               |             100 |           0.000 |            0.340 |
- | "DeviceMagneticField"                                  |             100 |           0.000 |            0.339 |
-
-HLTControlFlowMgr                      INFO StateTree: CFNode   #executed  #passed
-NONLAZY_OR: allen_reconstruction                       #=100     Sum=100         Eff=|( 100.0000 +- 0.00000 )%|
- NONLAZY_OR: allen_non_event_data                      #=100     Sum=100         Eff=|( 100.0000 +- 0.00000 )%|
-  DumpBeamline/DeviceBeamline                          #=100     Sum=100         Eff=|( 100.0000 +- 0.00000 )%|
-  DumpVPGeometry/DeviceVPGeometry                      #=100     Sum=100         Eff=|( 100.0000 +- 0.00000 )%|
-  DumpUTGeometry/DeviceUTGeometry                      #=100     Sum=100         Eff=|( 100.0000 +- 0.00000 )%|
-  DumpUTLookupTables/DeviceUTLookupTables              #=100     Sum=100         Eff=|( 100.0000 +- 0.00000 )%|
-  DumpCaloGeometry/DeviceCaloGeometry                  #=100     Sum=100         Eff=|( 100.0000 +- 0.00000 )%|
-  DumpMagneticField/DeviceMagneticField                #=100     Sum=100         Eff=|( 100.0000 +- 0.00000 )%|
-  DumpFTGeometry/DeviceFTGeometry                      #=100     Sum=100         Eff=|( 100.0000 +- 0.00000 )%|
-  DumpMuonGeometry/DeviceMuonGeometry                  #=100     Sum=100         Eff=|( 100.0000 +- 0.00000 )%|
-  DumpMuonTable/DeviceMuonTable                        #=100     Sum=100         Eff=|( 100.0000 +- 0.00000 )%|
-  DumpRichPDMDBMapping/DeviceRichPDMDBMapping          #=100     Sum=100         Eff=|( 100.0000 +- 0.00000 )%|
-  DumpRichCableMapping/DeviceRichCableMapping          #=100     Sum=100         Eff=|( 100.0000 +- 0.00000 )%|
- LAZY_AND: pv_checker_decision                         #=100     Sum=100         Eff=|( 100.0000 +- 0.00000 )%|
-  NONLAZY_OR: pv_checker_data                          #=100     Sum=100         Eff=|( 100.0000 +- 0.00000 )%|
-   PrimaryVertexChecker/PrimaryVertexChecker_6ecf8c4f  #=100     Sum=100         Eff=|( 100.0000 +- 0.00000 )%|
-
-HLTControlFlowMgr                      INFO Histograms converted successfully according to request.
-ToolSvc                                INFO Removing all tools created by ToolSvc
 NTupleSvc                              INFO NTuples saved successfully
 ApplicationMgr                         INFO Application Manager Finalized successfully
-ApplicationMgr                         INFO Application Manager Terminated successfully
\ No newline at end of file
+ApplicationMgr                         INFO Application Manager Terminated successfully
+GaudiAllenPVsToPrimaryVertexCont...    INFO Number of counters : 1
+ |    Counter                                      |     #     |    sum     | mean/eff^* | rms/err^*  |     min     |     max     |
+ | "Nb PVs"                                        |       100 |        511 |     5.1100 |
+HLTControlFlowMgr                      INFO Number of counters : 1
+ |    Counter                                      |     #     |    sum     | mean/eff^* | rms/err^*  |     min     |     max     |
+ | "Processed events"                              |       100 |
+PrVPHitsToVPLightClusters_8cd36c45     INFO Number of counters : 1
+ |    Counter                                      |     #     |    sum     | mean/eff^* | rms/err^*  |     min     |     max     |
+ | "Nb of Produced Clusters"                       |       100 |     214133 |     2141.3 |
+PrimaryVertexChecker_6ecf8c4f          INFO Number of counters : 1
+ |    Counter                                      |     #     |    sum     | mean/eff^* | rms/err^*  |     min     |     max     |
+ | "nEvents"                                       |       100 |
+VPLightClustersToVPMicroClusters...    INFO Number of counters : 1
+ |    Counter                                      |     #     |    sum     | mean/eff^* | rms/err^*  |     min     |     max     |
+ | "# Converted Clusters"                          |       100 |     214133 |     2141.3 |
+VeloRetinaClusterTrackingSIMD_66...    INFO Number of counters : 2
+ |    Counter                                      |     #     |    sum     | mean/eff^* | rms/err^*  |     min     |     max     |
+ | "Nb of Produced Clusters"                       |       100 |     214133 |     2141.3 |
+ | "Nb of Produced Tracks"                         |       100 |      23441 |     234.41 |
+fromV3TrackV1Track_8cb534ec            INFO Number of counters : 1
+ |    Counter                                      |     #     |    sum     | mean/eff^* | rms/err^*  |     min     |     max     |
+ | "Nb of Produced Tracks"                         |       100 |      15095 |     150.95 |
+fromV3TrackV1Track_ccafc722            INFO Number of counters : 1
+ |    Counter                                      |     #     |    sum     | mean/eff^* | rms/err^*  |     min     |     max     |
+ | "Nb of Produced Tracks"                         |       100 |       9183 |     91.830 |
+pv_beamline_cleanup                    INFO Number of counters : 1
+ |    Counter                                      |     #     |    sum     | mean/eff^* | rms/err^*  |     min     |     max     |
+ | "n_PVs"                                         |        99 |        503 |     5.0808 |
+velo_consolidate_tracks                INFO Number of counters : 1
+ |    Counter                                      |     #     |    sum     | mean/eff^* | rms/err^*  |     min     |     max     |
+ | "n_velo_tracks"                                 |       100 |      24278 |     242.78 |
+TransposeRawBanks_d381aaa1             INFO 1D histograms in directory "TransposeRawBanks_d381aaa1" : 1
+ | ID                                            | Title                                         |      #     |     Mean   |    RMS     |  Skewness  |  Kurtosis  |
+ | VP                                            | "VP"                                          |      20800 |     91.976 | 53.082     |     1.1414 |     2.4252 |
+pv_beamline_cleanup                    INFO 1D histograms in directory "pv_beamline_cleanup" : 5
+ | ID                                            | Title                                         |      #     |     Mean   |    RMS     |  Skewness  |  Kurtosis  |
+ | n_pvs_event                                   | "n_pvs_event"                                 |         99 |     5.0808 | 2.0581     |    0.86467 |     1.1447 |
+ | n_smog2_PVs                                   | "n_smog2_PVs"                                 |         99 |          0 | 0.0000     |-nan        |-nan        |
+ | pv_x                                          | "pv_x"                                        |        502 |-0.00090837 | 0.029226   |    0.22571 |     0.2503 |
+ | pv_y                                          | "pv_y"                                        |        502 | 0.00014343 | 0.028860   |    0.12825 |     1.1008 |
+ | pv_z                                          | "pv_z"                                        |        502 |   -0.77769 | 62.999     |  -0.053897 |   -0.18087 |
+velo_consolidate_tracks                INFO 1D histograms in directory "velo_consolidate_tracks" : 1
+ | ID                                            | Title                                         |      #     |     Mean   |    RMS     |  Skewness  |  Kurtosis  |
+ | n_velo_tracks_event                           | "n_velo_tracks_event"                         |        100 |     242.78 | 126.91     |    0.60024 |  -0.089309 |
+velo_kalman_filter                     INFO 1D histograms in directory "velo_kalman_filter" : 9
+ | ID                                            | Title                                         |      #     |     Mean   |    RMS     |  Skewness  |  Kurtosis  |
+ | velo_backward_track_eta                       | "#backward_eta"                               |       9183 |    -3.0023 | 0.79897    |   0.012368 |   -0.72527 |
+ | velo_backward_track_nhits                     | "backward N. hits / track"                    |       9183 |     4.5761 | 1.3768     |     1.2732 |     2.4019 |
+ | velo_backward_track_phi                       | "#backward_phi"                               |       9183 | 0.00029674 | 1.8049     |  -0.014911 |    -1.1806 |
+ | velo_forward_track_eta                        | "#forward_eta"                                |      15095 |     3.2637 | 1.0895     |     0.1205 |   -0.97983 |
+ | velo_forward_track_nhits                      | "forward N. hits / track"                     |      15095 |     7.3149 | 3.4654     |    0.58595 |   -0.59118 |
+ | velo_forward_track_phi                        | "#forward_phi"                                |      15095 |  0.0010484 | 1.8141     |  -0.011629 |    -1.1992 |
+ | velo_total_track_eta                          | "#total_eta"                                  |      24278 |    0.89361 | 3.1958     |   -0.35429 |    -1.4984 |
+ | velo_total_track_nhits                        | "total N. hits / track"                       |      24278 |     6.2789 | 3.1540     |     1.1086 |    0.45651 |
+ | velo_total_track_phi                          | "#total_phi"                                  |      24278 | 0.00076407 | 1.8106     |  -0.012856 |    -1.1922 |
diff --git a/Hlt/RecoConf/tests/refs/allen_gaudi_pv_with_mcchecking_beamshift.ref.detdesc b/Hlt/RecoConf/tests/refs/allen_gaudi_pv_with_mcchecking_beamshift.ref.detdesc
new file mode 100644
index 00000000000..e2fe65c8c2a
--- /dev/null
+++ b/Hlt/RecoConf/tests/refs/allen_gaudi_pv_with_mcchecking_beamshift.ref.detdesc
@@ -0,0 +1,116 @@
+PrimaryVertexChecker_6ecf8c4f          INFO      ************************************
+PrimaryVertexChecker_6ecf8c4f          INFO  MC PV is reconstructible if at least 4  tracks are reconstructed
+PrimaryVertexChecker_6ecf8c4f          INFO  MC PV is isolated if dz to closest reconstructible MC PV >  10 mm
+PrimaryVertexChecker_6ecf8c4f          INFO  MC efficiency split by tracks with threshold: (4,10), >= 10
+PrimaryVertexChecker_6ecf8c4f          INFO  MC efficiency split by z position: <-50, (-50,50), >50
+PrimaryVertexChecker_6ecf8c4f          INFO  REC and MC vertices matched:  by distance
+PrimaryVertexChecker_6ecf8c4f          INFO
+PrimaryVertexChecker_6ecf8c4f          INFO 00 all                    :      499 from      532 (     743-211     ) [ 93.80 %], false   12 from reco.      511 (     499+12  ) [  2.35 %]
+PrimaryVertexChecker_6ecf8c4f          INFO 01 isolated               :      292 from      298 (     415-117     ) [ 97.99 %], false    4 from reco.      296 (     292+4   ) [  1.35 %]
+PrimaryVertexChecker_6ecf8c4f          INFO 02 close                  :      207 from      234 (     328-94      ) [ 88.46 %], false    8 from reco.      215 (     207+8   ) [  3.72 %]
+PrimaryVertexChecker_6ecf8c4f          INFO 03 ntracks<10             :       38 from       50 (      50-0       ) [ 76.00 %], false    8 from reco.       46 (      38+8   ) [ 17.39 %]
+PrimaryVertexChecker_6ecf8c4f          INFO 04 ntracks>=10            :      461 from      482 (     482-0       ) [ 95.64 %], false    4 from reco.      465 (     461+4   ) [  0.86 %]
+PrimaryVertexChecker_6ecf8c4f          INFO 05 z<-50.0                :      109 from      115 (     149-34      ) [ 94.78 %], false    1 from reco.      110 (     109+1   ) [  0.91 %]
+PrimaryVertexChecker_6ecf8c4f          INFO 06 z in (-50.0, 50.0)     :      278 from      300 (     427-127     ) [ 92.67 %], false    9 from reco.      287 (     278+9   ) [  3.14 %]
+PrimaryVertexChecker_6ecf8c4f          INFO 07 z >=50.0               :      112 from      117 (     167-50      ) [ 95.73 %], false    2 from reco.      114 (     112+2   ) [  1.75 %]
+PrimaryVertexChecker_6ecf8c4f          INFO 08 decayBeauty            :        6 from        6 (       6-0       ) [ 100.00 %], false    0 from reco.       18 (      18+0   ) [  0.00 %]
+PrimaryVertexChecker_6ecf8c4f          INFO 09 decayCharm             :       68 from       71 (      71-0       ) [ 95.77 %], false    3 from reco.       80 (      77+3   ) [  3.75 %]
+PrimaryVertexChecker_6ecf8c4f          INFO 10 decayStrange           :      499 from      532 (     558-26      ) [ 93.80 %], false   12 from reco.      511 (     499+12  ) [  2.35 %]
+PrimaryVertexChecker_6ecf8c4f          INFO 11 other                  :        0 from        0 (     185-185     ) [ -100.00 %], false    0 from reco.       12 (      12+0   ) [  0.00 %]
+PrimaryVertexChecker_6ecf8c4f          INFO 12 1MCPV                  :       97 from      100 (     100-0       ) [ 97.00 %], false    3 from reco.      100 (      97+3   ) [  3.00 %]
+PrimaryVertexChecker_6ecf8c4f          INFO 13 2MCPV                  :       99 from      100 (     100-0       ) [ 99.00 %], false    2 from reco.      101 (      99+2   ) [  1.98 %]
+PrimaryVertexChecker_6ecf8c4f          INFO 14 3MCPV                  :       90 from       93 (     100-7       ) [ 96.77 %], false    1 from reco.       91 (      90+1   ) [  1.10 %]
+PrimaryVertexChecker_6ecf8c4f          INFO 15 4MCPV                  :       75 from       78 (      96-18      ) [ 96.15 %], false    2 from reco.       77 (      75+2   ) [  2.60 %]
+PrimaryVertexChecker_6ecf8c4f          INFO 16 5MCPV                  :       54 from       57 (      84-27      ) [ 94.74 %], false    1 from reco.       55 (      54+1   ) [  1.82 %]
+PrimaryVertexChecker_6ecf8c4f          INFO
+PrimaryVertexChecker_6ecf8c4f          INFO 00 all                    : av. PV tracks:  39.55 [MC:  37.12]
+PrimaryVertexChecker_6ecf8c4f          INFO 01 isolated               : av. PV tracks:  36.38 [MC:  35.55]
+PrimaryVertexChecker_6ecf8c4f          INFO 02 close                  : av. PV tracks:  44.02 [MC:  39.12]
+PrimaryVertexChecker_6ecf8c4f          INFO 03 ntracks<10             : av. PV tracks:   9.37 [MC:   6.44]
+PrimaryVertexChecker_6ecf8c4f          INFO 04 ntracks>=10            : av. PV tracks:  42.04 [MC:  40.30]
+PrimaryVertexChecker_6ecf8c4f          INFO 05 z<-50.0                : av. PV tracks:  34.46 [MC:  32.43]
+PrimaryVertexChecker_6ecf8c4f          INFO 06 z in (-50.0, 50.0)     : av. PV tracks:  39.78 [MC:  36.99]
+PrimaryVertexChecker_6ecf8c4f          INFO 07 z >=50.0               : av. PV tracks:  43.93 [MC:  42.06]
+PrimaryVertexChecker_6ecf8c4f          INFO 08 decayBeauty            : av. PV tracks:  87.67 [MC:  86.00]
+PrimaryVertexChecker_6ecf8c4f          INFO 09 decayCharm             : av. PV tracks:  65.99 [MC:  62.11]
+PrimaryVertexChecker_6ecf8c4f          INFO 10 decayStrange           : av. PV tracks:  39.55 [MC:  37.12]
+PrimaryVertexChecker_6ecf8c4f          INFO 11 other                  : av. PV tracks:   0.00 [MC:   0.00]
+PrimaryVertexChecker_6ecf8c4f          INFO 12 1MCPV                  : av. PV tracks:  72.26 [MC:  72.92]
+PrimaryVertexChecker_6ecf8c4f          INFO 13 2MCPV                  : av. PV tracks:  48.25 [MC:  48.54]
+PrimaryVertexChecker_6ecf8c4f          INFO 14 3MCPV                  : av. PV tracks:  33.56 [MC:  32.14]
+PrimaryVertexChecker_6ecf8c4f          INFO 15 4MCPV                  : av. PV tracks:  28.43 [MC:  24.96]
+PrimaryVertexChecker_6ecf8c4f          INFO 16 5MCPV                  : av. PV tracks:  24.52 [MC:  20.95]
+PrimaryVertexChecker_6ecf8c4f          INFO
+PrimaryVertexChecker_6ecf8c4f          INFO 1_res_all                 :  x: +0.014, y: +0.013, z: +0.091
+PrimaryVertexChecker_6ecf8c4f          INFO 2_res_ntracks<10          :  x: +0.028, y: +0.025, z: +0.187
+PrimaryVertexChecker_6ecf8c4f          INFO 3_res_ntracks(10,30)      :  x: +0.016, y: +0.015, z: +0.105
+PrimaryVertexChecker_6ecf8c4f          INFO 4_res_ntracks>30          :  x: +0.008, y: +0.007, z: +0.043
+PrimaryVertexChecker_6ecf8c4f          INFO 5_res_z<-50               :  x: +0.016, y: +0.015, z: +0.119
+PrimaryVertexChecker_6ecf8c4f          INFO 6_res_z(-50,50)           :  x: +0.014, y: +0.013, z: +0.089
+PrimaryVertexChecker_6ecf8c4f          INFO 7_res_z>50                :  x: +0.011, y: +0.013, z: +0.058
+PrimaryVertexChecker_6ecf8c4f          INFO
+PrimaryVertexChecker_6ecf8c4f          INFO 1_pull_width_all          :  x: +1.115, y: +1.104, z: +1.181
+PrimaryVertexChecker_6ecf8c4f          INFO 1_pull_mean_all           :  x: -0.033, y: +0.046, z: +0.039
+PrimaryVertexChecker_6ecf8c4f          INFO
+PrimaryVertexChecker_6ecf8c4f       SUCCESS Booked 2 N-Tuples and 0 Event Tag Collections
+PrimaryVertexChecker_6ecf8c4f       SUCCESS List of booked N-Tuples in directory "FILE1/PrimaryVertexChecker_6ecf8c4f"
+PrimaryVertexChecker_6ecf8c4f       SUCCESS  ID=101           Title="PV_nTuple"                               #items=38 {reco,isol,ntracks,nrectrmc,dzclose,nmcpv,mtruemcpv,nmcallpv,nrecpv,decayCharm,dec}
+PrimaryVertexChecker_6ecf8c4f       SUCCESS  ID=102           Title="PV_nTuple2"                              #items=12 {fake,r,x,y,z,errr,errz,errx,erry,mother,chi2,nDoF}
+NTupleSvc                              INFO NTuples saved successfully
+ApplicationMgr                         INFO Application Manager Finalized successfully
+ApplicationMgr                         INFO Application Manager Terminated successfully
+GaudiAllenPVsToPrimaryVertexCont...    INFO Number of counters : 1
+ |    Counter                                      |     #     |    sum     | mean/eff^* | rms/err^*  |     min     |     max     |
+ | "Nb PVs"                                        |       100 |        511 |     5.1100 |
+HLTControlFlowMgr                      INFO Number of counters : 1
+ |    Counter                                      |     #     |    sum     | mean/eff^* | rms/err^*  |     min     |     max     |
+ | "Processed events"                              |       100 |
+PrVPHitsToVPLightClusters_8cd36c45     INFO Number of counters : 1
+ |    Counter                                      |     #     |    sum     | mean/eff^* | rms/err^*  |     min     |     max     |
+ | "Nb of Produced Clusters"                       |       100 |     214133 |     2141.3 |
+PrimaryVertexChecker_6ecf8c4f          INFO Number of counters : 1
+ |    Counter                                      |     #     |    sum     | mean/eff^* | rms/err^*  |     min     |     max     |
+ | "nEvents"                                       |       100 |
+VPLightClustersToVPMicroClusters...    INFO Number of counters : 1
+ |    Counter                                      |     #     |    sum     | mean/eff^* | rms/err^*  |     min     |     max     |
+ | "# Converted Clusters"                          |       100 |     214133 |     2141.3 |
+VeloRetinaClusterTrackingSIMD_66...    INFO Number of counters : 2
+ |    Counter                                      |     #     |    sum     | mean/eff^* | rms/err^*  |     min     |     max     |
+ | "Nb of Produced Clusters"                       |       100 |     214133 |     2141.3 |
+ | "Nb of Produced Tracks"                         |       100 |      23441 |     234.41 |
+fromV3TrackV1Track_8cb534ec            INFO Number of counters : 1
+ |    Counter                                      |     #     |    sum     | mean/eff^* | rms/err^*  |     min     |     max     |
+ | "Nb of Produced Tracks"                         |       100 |      15095 |     150.95 |
+fromV3TrackV1Track_ccafc722            INFO Number of counters : 1
+ |    Counter                                      |     #     |    sum     | mean/eff^* | rms/err^*  |     min     |     max     |
+ | "Nb of Produced Tracks"                         |       100 |       9183 |     91.830 |
+pv_beamline_cleanup                    INFO Number of counters : 1
+ |    Counter                                      |     #     |    sum     | mean/eff^* | rms/err^*  |     min     |     max     |
+ | "n_PVs"                                         |        99 |        503 |     5.0808 |
+velo_consolidate_tracks                INFO Number of counters : 1
+ |    Counter                                      |     #     |    sum     | mean/eff^* | rms/err^*  |     min     |     max     |
+ | "n_velo_tracks"                                 |       100 |      24278 |     242.78 |
+TransposeRawBanks_d381aaa1             INFO 1D histograms in directory "TransposeRawBanks_d381aaa1" : 1
+ | ID                                            | Title                                         |      #     |     Mean   |    RMS     |  Skewness  |  Kurtosis  |
+ | VP                                            | "VP"                                          |      20800 |     91.976 | 53.082     |     1.1414 |     2.4252 |
+pv_beamline_cleanup                    INFO 1D histograms in directory "pv_beamline_cleanup" : 5
+ | ID                                            | Title                                         |      #     |     Mean   |    RMS     |  Skewness  |  Kurtosis  |
+ | n_pvs_event                                   | "n_pvs_event"                                 |         99 |     5.0808 | 2.0581     |    0.86467 |     1.1447 |
+ | n_smog2_PVs                                   | "n_smog2_PVs"                                 |         99 |          0 | 0.0000     |-nan        |-nan        |
+ | pv_x                                          | "pv_x"                                        |        502 |-0.00090837 | 0.029226   |    0.22571 |     0.2503 |
+ | pv_y                                          | "pv_y"                                        |        502 | 0.00014343 | 0.028860   |    0.12825 |     1.1008 |
+ | pv_z                                          | "pv_z"                                        |        502 |   -0.77769 | 62.999     |  -0.053897 |   -0.18087 |
+velo_consolidate_tracks                INFO 1D histograms in directory "velo_consolidate_tracks" : 1
+ | ID                                            | Title                                         |      #     |     Mean   |    RMS     |  Skewness  |  Kurtosis  |
+ | n_velo_tracks_event                           | "n_velo_tracks_event"                         |        100 |     242.78 | 126.91     |    0.60024 |  -0.089309 |
+velo_kalman_filter                     INFO 1D histograms in directory "velo_kalman_filter" : 9
+ | ID                                            | Title                                         |      #     |     Mean   |    RMS     |  Skewness  |  Kurtosis  |
+ | velo_backward_track_eta                       | "#backward_eta"                               |       9183 |    -3.0023 | 0.79897    |   0.012368 |   -0.72527 |
+ | velo_backward_track_nhits                     | "backward N. hits / track"                    |       9183 |     4.5761 | 1.3768     |     1.2732 |     2.4019 |
+ | velo_backward_track_phi                       | "#backward_phi"                               |       9183 | 0.00029674 | 1.8049     |  -0.014911 |    -1.1806 |
+ | velo_forward_track_eta                        | "#forward_eta"                                |      15095 |     3.2637 | 1.0895     |     0.1205 |   -0.97983 |
+ | velo_forward_track_nhits                      | "forward N. hits / track"                     |      15095 |     7.3149 | 3.4654     |    0.58595 |   -0.59118 |
+ | velo_forward_track_phi                        | "#forward_phi"                                |      15095 |  0.0010484 | 1.8141     |  -0.011629 |    -1.1992 |
+ | velo_total_track_eta                          | "#total_eta"                                  |      24278 |    0.89361 | 3.1958     |   -0.35429 |    -1.4984 |
+ | velo_total_track_nhits                        | "total N. hits / track"                       |      24278 |     6.2789 | 3.1540     |     1.1086 |    0.45651 |
+ | velo_total_track_phi                          | "#total_phi"                                  |      24278 | 0.00076407 | 1.8106     |  -0.012856 |    -1.1922 |
diff --git a/Hlt/RecoConf/tests/refs/allen_gaudi_pv_with_mcchecking_beamshift.ref.x86_64_v3-detdesc-opt b/Hlt/RecoConf/tests/refs/allen_gaudi_pv_with_mcchecking_beamshift.ref.x86_64_v3-detdesc-opt
new file mode 100644
index 00000000000..0504838407a
--- /dev/null
+++ b/Hlt/RecoConf/tests/refs/allen_gaudi_pv_with_mcchecking_beamshift.ref.x86_64_v3-detdesc-opt
@@ -0,0 +1,116 @@
+PrimaryVertexChecker_6ecf8c4f          INFO      ************************************
+PrimaryVertexChecker_6ecf8c4f          INFO  MC PV is reconstructible if at least 4  tracks are reconstructed
+PrimaryVertexChecker_6ecf8c4f          INFO  MC PV is isolated if dz to closest reconstructible MC PV >  10 mm
+PrimaryVertexChecker_6ecf8c4f          INFO  MC efficiency split by tracks with threshold: (4,10), >= 10
+PrimaryVertexChecker_6ecf8c4f          INFO  MC efficiency split by z position: <-50, (-50,50), >50
+PrimaryVertexChecker_6ecf8c4f          INFO  REC and MC vertices matched:  by distance
+PrimaryVertexChecker_6ecf8c4f          INFO
+PrimaryVertexChecker_6ecf8c4f          INFO 00 all                    :      499 from      532 (     743-211     ) [ 93.80 %], false   13 from reco.      512 (     499+13  ) [  2.54 %]
+PrimaryVertexChecker_6ecf8c4f          INFO 01 isolated               :      292 from      298 (     415-117     ) [ 97.99 %], false    4 from reco.      296 (     292+4   ) [  1.35 %]
+PrimaryVertexChecker_6ecf8c4f          INFO 02 close                  :      207 from      234 (     328-94      ) [ 88.46 %], false    9 from reco.      216 (     207+9   ) [  4.17 %]
+PrimaryVertexChecker_6ecf8c4f          INFO 03 ntracks<10             :       38 from       50 (      50-0       ) [ 76.00 %], false    9 from reco.       47 (      38+9   ) [ 19.15 %]
+PrimaryVertexChecker_6ecf8c4f          INFO 04 ntracks>=10            :      461 from      482 (     482-0       ) [ 95.64 %], false    4 from reco.      465 (     461+4   ) [  0.86 %]
+PrimaryVertexChecker_6ecf8c4f          INFO 05 z<-50.0                :      109 from      115 (     149-34      ) [ 94.78 %], false    2 from reco.      111 (     109+2   ) [  1.80 %]
+PrimaryVertexChecker_6ecf8c4f          INFO 06 z in (-50.0, 50.0)     :      278 from      300 (     427-127     ) [ 92.67 %], false    9 from reco.      287 (     278+9   ) [  3.14 %]
+PrimaryVertexChecker_6ecf8c4f          INFO 07 z >=50.0               :      112 from      117 (     167-50      ) [ 95.73 %], false    2 from reco.      114 (     112+2   ) [  1.75 %]
+PrimaryVertexChecker_6ecf8c4f          INFO 08 decayBeauty            :        6 from        6 (       6-0       ) [ 100.00 %], false    0 from reco.       19 (      19+0   ) [  0.00 %]
+PrimaryVertexChecker_6ecf8c4f          INFO 09 decayCharm             :       68 from       71 (      71-0       ) [ 95.77 %], false    3 from reco.       81 (      78+3   ) [  3.70 %]
+PrimaryVertexChecker_6ecf8c4f          INFO 10 decayStrange           :      499 from      532 (     558-26      ) [ 93.80 %], false   13 from reco.      512 (     499+13  ) [  2.54 %]
+PrimaryVertexChecker_6ecf8c4f          INFO 11 other                  :        0 from        0 (     185-185     ) [ -100.00 %], false    0 from reco.       13 (      13+0   ) [  0.00 %]
+PrimaryVertexChecker_6ecf8c4f          INFO 12 1MCPV                  :       97 from      100 (     100-0       ) [ 97.00 %], false    3 from reco.      100 (      97+3   ) [  3.00 %]
+PrimaryVertexChecker_6ecf8c4f          INFO 13 2MCPV                  :       99 from      100 (     100-0       ) [ 99.00 %], false    2 from reco.      101 (      99+2   ) [  1.98 %]
+PrimaryVertexChecker_6ecf8c4f          INFO 14 3MCPV                  :       90 from       93 (     100-7       ) [ 96.77 %], false    1 from reco.       91 (      90+1   ) [  1.10 %]
+PrimaryVertexChecker_6ecf8c4f          INFO 15 4MCPV                  :       75 from       78 (      96-18      ) [ 96.15 %], false    2 from reco.       77 (      75+2   ) [  2.60 %]
+PrimaryVertexChecker_6ecf8c4f          INFO 16 5MCPV                  :       54 from       57 (      84-27      ) [ 94.74 %], false    1 from reco.       55 (      54+1   ) [  1.82 %]
+PrimaryVertexChecker_6ecf8c4f          INFO
+PrimaryVertexChecker_6ecf8c4f          INFO 00 all                    : av. PV tracks:  39.54 [MC:  37.12]
+PrimaryVertexChecker_6ecf8c4f          INFO 01 isolated               : av. PV tracks:  36.37 [MC:  35.55]
+PrimaryVertexChecker_6ecf8c4f          INFO 02 close                  : av. PV tracks:  44.02 [MC:  39.12]
+PrimaryVertexChecker_6ecf8c4f          INFO 03 ntracks<10             : av. PV tracks:   9.34 [MC:   6.44]
+PrimaryVertexChecker_6ecf8c4f          INFO 04 ntracks>=10            : av. PV tracks:  42.03 [MC:  40.30]
+PrimaryVertexChecker_6ecf8c4f          INFO 05 z<-50.0                : av. PV tracks:  34.45 [MC:  32.43]
+PrimaryVertexChecker_6ecf8c4f          INFO 06 z in (-50.0, 50.0)     : av. PV tracks:  39.77 [MC:  36.99]
+PrimaryVertexChecker_6ecf8c4f          INFO 07 z >=50.0               : av. PV tracks:  43.93 [MC:  42.06]
+PrimaryVertexChecker_6ecf8c4f          INFO 08 decayBeauty            : av. PV tracks:  87.83 [MC:  86.00]
+PrimaryVertexChecker_6ecf8c4f          INFO 09 decayCharm             : av. PV tracks:  65.99 [MC:  62.11]
+PrimaryVertexChecker_6ecf8c4f          INFO 10 decayStrange           : av. PV tracks:  39.54 [MC:  37.12]
+PrimaryVertexChecker_6ecf8c4f          INFO 11 other                  : av. PV tracks:   0.00 [MC:   0.00]
+PrimaryVertexChecker_6ecf8c4f          INFO 12 1MCPV                  : av. PV tracks:  72.22 [MC:  72.92]
+PrimaryVertexChecker_6ecf8c4f          INFO 13 2MCPV                  : av. PV tracks:  48.30 [MC:  48.54]
+PrimaryVertexChecker_6ecf8c4f          INFO 14 3MCPV                  : av. PV tracks:  33.53 [MC:  32.14]
+PrimaryVertexChecker_6ecf8c4f          INFO 15 4MCPV                  : av. PV tracks:  28.43 [MC:  24.96]
+PrimaryVertexChecker_6ecf8c4f          INFO 16 5MCPV                  : av. PV tracks:  24.54 [MC:  20.95]
+PrimaryVertexChecker_6ecf8c4f          INFO
+PrimaryVertexChecker_6ecf8c4f          INFO 1_res_all                 :  x: +0.014, y: +0.013, z: +0.092
+PrimaryVertexChecker_6ecf8c4f          INFO 2_res_ntracks<10          :  x: +0.029, y: +0.025, z: +0.188
+PrimaryVertexChecker_6ecf8c4f          INFO 3_res_ntracks(10,30)      :  x: +0.016, y: +0.015, z: +0.106
+PrimaryVertexChecker_6ecf8c4f          INFO 4_res_ntracks>30          :  x: +0.008, y: +0.007, z: +0.043
+PrimaryVertexChecker_6ecf8c4f          INFO 5_res_z<-50               :  x: +0.016, y: +0.015, z: +0.121
+PrimaryVertexChecker_6ecf8c4f          INFO 6_res_z(-50,50)           :  x: +0.014, y: +0.013, z: +0.089
+PrimaryVertexChecker_6ecf8c4f          INFO 7_res_z>50                :  x: +0.011, y: +0.013, z: +0.059
+PrimaryVertexChecker_6ecf8c4f          INFO
+PrimaryVertexChecker_6ecf8c4f          INFO 1_pull_width_all          :  x: +1.116, y: +1.107, z: +1.186
+PrimaryVertexChecker_6ecf8c4f          INFO 1_pull_mean_all           :  x: -0.033, y: +0.045, z: +0.042
+PrimaryVertexChecker_6ecf8c4f          INFO
+PrimaryVertexChecker_6ecf8c4f       SUCCESS Booked 2 N-Tuples and 0 Event Tag Collections
+PrimaryVertexChecker_6ecf8c4f       SUCCESS List of booked N-Tuples in directory "FILE1/PrimaryVertexChecker_6ecf8c4f"
+PrimaryVertexChecker_6ecf8c4f       SUCCESS  ID=101           Title="PV_nTuple"                               #items=38 {reco,isol,ntracks,nrectrmc,dzclose,nmcpv,mtruemcpv,nmcallpv,nrecpv,decayCharm,dec}
+PrimaryVertexChecker_6ecf8c4f       SUCCESS  ID=102           Title="PV_nTuple2"                              #items=12 {fake,r,x,y,z,errr,errz,errx,erry,mother,chi2,nDoF}
+NTupleSvc                              INFO NTuples saved successfully
+ApplicationMgr                         INFO Application Manager Finalized successfully
+ApplicationMgr                         INFO Application Manager Terminated successfully
+GaudiAllenPVsToPrimaryVertexCont...    INFO Number of counters : 1
+ |    Counter                                      |     #     |    sum     | mean/eff^* | rms/err^*  |     min     |     max     |
+ | "Nb PVs"                                        |       100 |        512 |     5.1200 |
+HLTControlFlowMgr                      INFO Number of counters : 1
+ |    Counter                                      |     #     |    sum     | mean/eff^* | rms/err^*  |     min     |     max     |
+ | "Processed events"                              |       100 |
+PrVPHitsToVPLightClusters_8cd36c45     INFO Number of counters : 1
+ |    Counter                                      |     #     |    sum     | mean/eff^* | rms/err^*  |     min     |     max     |
+ | "Nb of Produced Clusters"                       |       100 |     214133 |     2141.3 |
+PrimaryVertexChecker_6ecf8c4f          INFO Number of counters : 1
+ |    Counter                                      |     #     |    sum     | mean/eff^* | rms/err^*  |     min     |     max     |
+ | "nEvents"                                       |       100 |
+VPLightClustersToVPMicroClusters...    INFO Number of counters : 1
+ |    Counter                                      |     #     |    sum     | mean/eff^* | rms/err^*  |     min     |     max     |
+ | "# Converted Clusters"                          |       100 |     214133 |     2141.3 |
+VeloRetinaClusterTrackingSIMD_66...    INFO Number of counters : 2
+ |    Counter                                      |     #     |    sum     | mean/eff^* | rms/err^*  |     min     |     max     |
+ | "Nb of Produced Clusters"                       |       100 |     214133 |     2141.3 |
+ | "Nb of Produced Tracks"                         |       100 |      23490 |     234.90 |
+fromV3TrackV1Track_8cb534ec            INFO Number of counters : 1
+ |    Counter                                      |     #     |    sum     | mean/eff^* | rms/err^*  |     min     |     max     |
+ | "Nb of Produced Tracks"                         |       100 |      15093 |     150.93 |
+fromV3TrackV1Track_ccafc722            INFO Number of counters : 1
+ |    Counter                                      |     #     |    sum     | mean/eff^* | rms/err^*  |     min     |     max     |
+ | "Nb of Produced Tracks"                         |       100 |       9184 |     91.840 |
+pv_beamline_cleanup                    INFO Number of counters : 1
+ |    Counter                                      |     #     |    sum     | mean/eff^* | rms/err^*  |     min     |     max     |
+ | "n_PVs"                                         |        99 |        504 |     5.0909 |
+velo_consolidate_tracks                INFO Number of counters : 1
+ |    Counter                                      |     #     |    sum     | mean/eff^* | rms/err^*  |     min     |     max     |
+ | "n_velo_tracks"                                 |       100 |      24277 |     242.77 |
+TransposeRawBanks_d381aaa1             INFO 1D histograms in directory "TransposeRawBanks_d381aaa1" : 1
+ | ID                                            | Title                                         |      #     |     Mean   |    RMS     |  Skewness  |  Kurtosis  |
+ | VP                                            | "VP"                                          |      20800 |     91.976 | 53.082     |     1.1414 |     2.4252 |
+pv_beamline_cleanup                    INFO 1D histograms in directory "pv_beamline_cleanup" : 5
+ | ID                                            | Title                                         |      #     |     Mean   |    RMS     |  Skewness  |  Kurtosis  |
+ | n_pvs_event                                   | "n_pvs_event"                                 |         99 |     5.0909 | 2.0797     |    0.88957 |     1.1469 |
+ | n_smog2_PVs                                   | "n_smog2_PVs"                                 |         99 |          0 | 0.0000     |-nan        |-nan        |
+ | pv_x                                          | "pv_x"                                        |        503 |-0.00071173 | 0.029348   |    0.24018 |     0.2636 |
+ | pv_y                                          | "pv_y"                                        |        503 |  0.0002664 | 0.029120   |    0.15568 |     1.0692 |
+ | pv_z                                          | "pv_z"                                        |        503 |   -0.91968 | 63.019     |  -0.049807 |    -0.1869 |
+velo_consolidate_tracks                INFO 1D histograms in directory "velo_consolidate_tracks" : 1
+ | ID                                            | Title                                         |      #     |     Mean   |    RMS     |  Skewness  |  Kurtosis  |
+ | n_velo_tracks_event                           | "n_velo_tracks_event"                         |        100 |     242.77 | 126.90     |    0.60048 |  -0.088683 |
+velo_kalman_filter                     INFO 1D histograms in directory "velo_kalman_filter" : 9
+ | ID                                            | Title                                         |      #     |     Mean   |    RMS     |  Skewness  |  Kurtosis  |
+ | velo_backward_track_eta                       | "#backward_eta"                               |       9184 |    -3.0025 | 0.79916    |   0.011738 |   -0.72444 |
+ | velo_backward_track_nhits                     | "backward N. hits / track"                    |       9184 |      4.576 | 1.3767     |     1.2734 |     2.4026 |
+ | velo_backward_track_phi                       | "#backward_phi"                               |       9184 | 0.00033754 | 1.8048     |  -0.014982 |    -1.1804 |
+ | velo_forward_track_eta                        | "#forward_eta"                                |      15093 |     3.2635 | 1.0895     |    0.12055 |   -0.97981 |
+ | velo_forward_track_nhits                      | "forward N. hits / track"                     |      15093 |     7.3154 | 3.4652     |    0.58585 |   -0.59122 |
+ | velo_forward_track_phi                        | "#forward_phi"                                |      15093 | 0.00085967 | 1.8141     |  -0.011566 |    -1.1992 |
+ | velo_total_track_eta                          | "#total_eta"                                  |      24277 |     0.8931 | 3.1959     |   -0.35414 |    -1.4986 |
+ | velo_total_track_nhits                        | "total N. hits / track"                       |      24277 |     6.2791 | 3.1539     |     1.1086 |    0.45651 |
+ | velo_total_track_phi                          | "#total_phi"                                  |      24277 | 0.00066215 | 1.8106     |  -0.012844 |    -1.1922 |
diff --git a/Hlt/RecoConf/tests/refs/allen_gaudi_pv_with_mcchecking_beamshift.ref.x86_64_v3-opt b/Hlt/RecoConf/tests/refs/allen_gaudi_pv_with_mcchecking_beamshift.ref.x86_64_v3-opt
new file mode 100644
index 00000000000..0504838407a
--- /dev/null
+++ b/Hlt/RecoConf/tests/refs/allen_gaudi_pv_with_mcchecking_beamshift.ref.x86_64_v3-opt
@@ -0,0 +1,116 @@
+PrimaryVertexChecker_6ecf8c4f          INFO      ************************************
+PrimaryVertexChecker_6ecf8c4f          INFO  MC PV is reconstructible if at least 4  tracks are reconstructed
+PrimaryVertexChecker_6ecf8c4f          INFO  MC PV is isolated if dz to closest reconstructible MC PV >  10 mm
+PrimaryVertexChecker_6ecf8c4f          INFO  MC efficiency split by tracks with threshold: (4,10), >= 10
+PrimaryVertexChecker_6ecf8c4f          INFO  MC efficiency split by z position: <-50, (-50,50), >50
+PrimaryVertexChecker_6ecf8c4f          INFO  REC and MC vertices matched:  by distance
+PrimaryVertexChecker_6ecf8c4f          INFO
+PrimaryVertexChecker_6ecf8c4f          INFO 00 all                    :      499 from      532 (     743-211     ) [ 93.80 %], false   13 from reco.      512 (     499+13  ) [  2.54 %]
+PrimaryVertexChecker_6ecf8c4f          INFO 01 isolated               :      292 from      298 (     415-117     ) [ 97.99 %], false    4 from reco.      296 (     292+4   ) [  1.35 %]
+PrimaryVertexChecker_6ecf8c4f          INFO 02 close                  :      207 from      234 (     328-94      ) [ 88.46 %], false    9 from reco.      216 (     207+9   ) [  4.17 %]
+PrimaryVertexChecker_6ecf8c4f          INFO 03 ntracks<10             :       38 from       50 (      50-0       ) [ 76.00 %], false    9 from reco.       47 (      38+9   ) [ 19.15 %]
+PrimaryVertexChecker_6ecf8c4f          INFO 04 ntracks>=10            :      461 from      482 (     482-0       ) [ 95.64 %], false    4 from reco.      465 (     461+4   ) [  0.86 %]
+PrimaryVertexChecker_6ecf8c4f          INFO 05 z<-50.0                :      109 from      115 (     149-34      ) [ 94.78 %], false    2 from reco.      111 (     109+2   ) [  1.80 %]
+PrimaryVertexChecker_6ecf8c4f          INFO 06 z in (-50.0, 50.0)     :      278 from      300 (     427-127     ) [ 92.67 %], false    9 from reco.      287 (     278+9   ) [  3.14 %]
+PrimaryVertexChecker_6ecf8c4f          INFO 07 z >=50.0               :      112 from      117 (     167-50      ) [ 95.73 %], false    2 from reco.      114 (     112+2   ) [  1.75 %]
+PrimaryVertexChecker_6ecf8c4f          INFO 08 decayBeauty            :        6 from        6 (       6-0       ) [ 100.00 %], false    0 from reco.       19 (      19+0   ) [  0.00 %]
+PrimaryVertexChecker_6ecf8c4f          INFO 09 decayCharm             :       68 from       71 (      71-0       ) [ 95.77 %], false    3 from reco.       81 (      78+3   ) [  3.70 %]
+PrimaryVertexChecker_6ecf8c4f          INFO 10 decayStrange           :      499 from      532 (     558-26      ) [ 93.80 %], false   13 from reco.      512 (     499+13  ) [  2.54 %]
+PrimaryVertexChecker_6ecf8c4f          INFO 11 other                  :        0 from        0 (     185-185     ) [ -100.00 %], false    0 from reco.       13 (      13+0   ) [  0.00 %]
+PrimaryVertexChecker_6ecf8c4f          INFO 12 1MCPV                  :       97 from      100 (     100-0       ) [ 97.00 %], false    3 from reco.      100 (      97+3   ) [  3.00 %]
+PrimaryVertexChecker_6ecf8c4f          INFO 13 2MCPV                  :       99 from      100 (     100-0       ) [ 99.00 %], false    2 from reco.      101 (      99+2   ) [  1.98 %]
+PrimaryVertexChecker_6ecf8c4f          INFO 14 3MCPV                  :       90 from       93 (     100-7       ) [ 96.77 %], false    1 from reco.       91 (      90+1   ) [  1.10 %]
+PrimaryVertexChecker_6ecf8c4f          INFO 15 4MCPV                  :       75 from       78 (      96-18      ) [ 96.15 %], false    2 from reco.       77 (      75+2   ) [  2.60 %]
+PrimaryVertexChecker_6ecf8c4f          INFO 16 5MCPV                  :       54 from       57 (      84-27      ) [ 94.74 %], false    1 from reco.       55 (      54+1   ) [  1.82 %]
+PrimaryVertexChecker_6ecf8c4f          INFO
+PrimaryVertexChecker_6ecf8c4f          INFO 00 all                    : av. PV tracks:  39.54 [MC:  37.12]
+PrimaryVertexChecker_6ecf8c4f          INFO 01 isolated               : av. PV tracks:  36.37 [MC:  35.55]
+PrimaryVertexChecker_6ecf8c4f          INFO 02 close                  : av. PV tracks:  44.02 [MC:  39.12]
+PrimaryVertexChecker_6ecf8c4f          INFO 03 ntracks<10             : av. PV tracks:   9.34 [MC:   6.44]
+PrimaryVertexChecker_6ecf8c4f          INFO 04 ntracks>=10            : av. PV tracks:  42.03 [MC:  40.30]
+PrimaryVertexChecker_6ecf8c4f          INFO 05 z<-50.0                : av. PV tracks:  34.45 [MC:  32.43]
+PrimaryVertexChecker_6ecf8c4f          INFO 06 z in (-50.0, 50.0)     : av. PV tracks:  39.77 [MC:  36.99]
+PrimaryVertexChecker_6ecf8c4f          INFO 07 z >=50.0               : av. PV tracks:  43.93 [MC:  42.06]
+PrimaryVertexChecker_6ecf8c4f          INFO 08 decayBeauty            : av. PV tracks:  87.83 [MC:  86.00]
+PrimaryVertexChecker_6ecf8c4f          INFO 09 decayCharm             : av. PV tracks:  65.99 [MC:  62.11]
+PrimaryVertexChecker_6ecf8c4f          INFO 10 decayStrange           : av. PV tracks:  39.54 [MC:  37.12]
+PrimaryVertexChecker_6ecf8c4f          INFO 11 other                  : av. PV tracks:   0.00 [MC:   0.00]
+PrimaryVertexChecker_6ecf8c4f          INFO 12 1MCPV                  : av. PV tracks:  72.22 [MC:  72.92]
+PrimaryVertexChecker_6ecf8c4f          INFO 13 2MCPV                  : av. PV tracks:  48.30 [MC:  48.54]
+PrimaryVertexChecker_6ecf8c4f          INFO 14 3MCPV                  : av. PV tracks:  33.53 [MC:  32.14]
+PrimaryVertexChecker_6ecf8c4f          INFO 15 4MCPV                  : av. PV tracks:  28.43 [MC:  24.96]
+PrimaryVertexChecker_6ecf8c4f          INFO 16 5MCPV                  : av. PV tracks:  24.54 [MC:  20.95]
+PrimaryVertexChecker_6ecf8c4f          INFO
+PrimaryVertexChecker_6ecf8c4f          INFO 1_res_all                 :  x: +0.014, y: +0.013, z: +0.092
+PrimaryVertexChecker_6ecf8c4f          INFO 2_res_ntracks<10          :  x: +0.029, y: +0.025, z: +0.188
+PrimaryVertexChecker_6ecf8c4f          INFO 3_res_ntracks(10,30)      :  x: +0.016, y: +0.015, z: +0.106
+PrimaryVertexChecker_6ecf8c4f          INFO 4_res_ntracks>30          :  x: +0.008, y: +0.007, z: +0.043
+PrimaryVertexChecker_6ecf8c4f          INFO 5_res_z<-50               :  x: +0.016, y: +0.015, z: +0.121
+PrimaryVertexChecker_6ecf8c4f          INFO 6_res_z(-50,50)           :  x: +0.014, y: +0.013, z: +0.089
+PrimaryVertexChecker_6ecf8c4f          INFO 7_res_z>50                :  x: +0.011, y: +0.013, z: +0.059
+PrimaryVertexChecker_6ecf8c4f          INFO
+PrimaryVertexChecker_6ecf8c4f          INFO 1_pull_width_all          :  x: +1.116, y: +1.107, z: +1.186
+PrimaryVertexChecker_6ecf8c4f          INFO 1_pull_mean_all           :  x: -0.033, y: +0.045, z: +0.042
+PrimaryVertexChecker_6ecf8c4f          INFO
+PrimaryVertexChecker_6ecf8c4f       SUCCESS Booked 2 N-Tuples and 0 Event Tag Collections
+PrimaryVertexChecker_6ecf8c4f       SUCCESS List of booked N-Tuples in directory "FILE1/PrimaryVertexChecker_6ecf8c4f"
+PrimaryVertexChecker_6ecf8c4f       SUCCESS  ID=101           Title="PV_nTuple"                               #items=38 {reco,isol,ntracks,nrectrmc,dzclose,nmcpv,mtruemcpv,nmcallpv,nrecpv,decayCharm,dec}
+PrimaryVertexChecker_6ecf8c4f       SUCCESS  ID=102           Title="PV_nTuple2"                              #items=12 {fake,r,x,y,z,errr,errz,errx,erry,mother,chi2,nDoF}
+NTupleSvc                              INFO NTuples saved successfully
+ApplicationMgr                         INFO Application Manager Finalized successfully
+ApplicationMgr                         INFO Application Manager Terminated successfully
+GaudiAllenPVsToPrimaryVertexCont...    INFO Number of counters : 1
+ |    Counter                                      |     #     |    sum     | mean/eff^* | rms/err^*  |     min     |     max     |
+ | "Nb PVs"                                        |       100 |        512 |     5.1200 |
+HLTControlFlowMgr                      INFO Number of counters : 1
+ |    Counter                                      |     #     |    sum     | mean/eff^* | rms/err^*  |     min     |     max     |
+ | "Processed events"                              |       100 |
+PrVPHitsToVPLightClusters_8cd36c45     INFO Number of counters : 1
+ |    Counter                                      |     #     |    sum     | mean/eff^* | rms/err^*  |     min     |     max     |
+ | "Nb of Produced Clusters"                       |       100 |     214133 |     2141.3 |
+PrimaryVertexChecker_6ecf8c4f          INFO Number of counters : 1
+ |    Counter                                      |     #     |    sum     | mean/eff^* | rms/err^*  |     min     |     max     |
+ | "nEvents"                                       |       100 |
+VPLightClustersToVPMicroClusters...    INFO Number of counters : 1
+ |    Counter                                      |     #     |    sum     | mean/eff^* | rms/err^*  |     min     |     max     |
+ | "# Converted Clusters"                          |       100 |     214133 |     2141.3 |
+VeloRetinaClusterTrackingSIMD_66...    INFO Number of counters : 2
+ |    Counter                                      |     #     |    sum     | mean/eff^* | rms/err^*  |     min     |     max     |
+ | "Nb of Produced Clusters"                       |       100 |     214133 |     2141.3 |
+ | "Nb of Produced Tracks"                         |       100 |      23490 |     234.90 |
+fromV3TrackV1Track_8cb534ec            INFO Number of counters : 1
+ |    Counter                                      |     #     |    sum     | mean/eff^* | rms/err^*  |     min     |     max     |
+ | "Nb of Produced Tracks"                         |       100 |      15093 |     150.93 |
+fromV3TrackV1Track_ccafc722            INFO Number of counters : 1
+ |    Counter                                      |     #     |    sum     | mean/eff^* | rms/err^*  |     min     |     max     |
+ | "Nb of Produced Tracks"                         |       100 |       9184 |     91.840 |
+pv_beamline_cleanup                    INFO Number of counters : 1
+ |    Counter                                      |     #     |    sum     | mean/eff^* | rms/err^*  |     min     |     max     |
+ | "n_PVs"                                         |        99 |        504 |     5.0909 |
+velo_consolidate_tracks                INFO Number of counters : 1
+ |    Counter                                      |     #     |    sum     | mean/eff^* | rms/err^*  |     min     |     max     |
+ | "n_velo_tracks"                                 |       100 |      24277 |     242.77 |
+TransposeRawBanks_d381aaa1             INFO 1D histograms in directory "TransposeRawBanks_d381aaa1" : 1
+ | ID                                            | Title                                         |      #     |     Mean   |    RMS     |  Skewness  |  Kurtosis  |
+ | VP                                            | "VP"                                          |      20800 |     91.976 | 53.082     |     1.1414 |     2.4252 |
+pv_beamline_cleanup                    INFO 1D histograms in directory "pv_beamline_cleanup" : 5
+ | ID                                            | Title                                         |      #     |     Mean   |    RMS     |  Skewness  |  Kurtosis  |
+ | n_pvs_event                                   | "n_pvs_event"                                 |         99 |     5.0909 | 2.0797     |    0.88957 |     1.1469 |
+ | n_smog2_PVs                                   | "n_smog2_PVs"                                 |         99 |          0 | 0.0000     |-nan        |-nan        |
+ | pv_x                                          | "pv_x"                                        |        503 |-0.00071173 | 0.029348   |    0.24018 |     0.2636 |
+ | pv_y                                          | "pv_y"                                        |        503 |  0.0002664 | 0.029120   |    0.15568 |     1.0692 |
+ | pv_z                                          | "pv_z"                                        |        503 |   -0.91968 | 63.019     |  -0.049807 |    -0.1869 |
+velo_consolidate_tracks                INFO 1D histograms in directory "velo_consolidate_tracks" : 1
+ | ID                                            | Title                                         |      #     |     Mean   |    RMS     |  Skewness  |  Kurtosis  |
+ | n_velo_tracks_event                           | "n_velo_tracks_event"                         |        100 |     242.77 | 126.90     |    0.60048 |  -0.088683 |
+velo_kalman_filter                     INFO 1D histograms in directory "velo_kalman_filter" : 9
+ | ID                                            | Title                                         |      #     |     Mean   |    RMS     |  Skewness  |  Kurtosis  |
+ | velo_backward_track_eta                       | "#backward_eta"                               |       9184 |    -3.0025 | 0.79916    |   0.011738 |   -0.72444 |
+ | velo_backward_track_nhits                     | "backward N. hits / track"                    |       9184 |      4.576 | 1.3767     |     1.2734 |     2.4026 |
+ | velo_backward_track_phi                       | "#backward_phi"                               |       9184 | 0.00033754 | 1.8048     |  -0.014982 |    -1.1804 |
+ | velo_forward_track_eta                        | "#forward_eta"                                |      15093 |     3.2635 | 1.0895     |    0.12055 |   -0.97981 |
+ | velo_forward_track_nhits                      | "forward N. hits / track"                     |      15093 |     7.3154 | 3.4652     |    0.58585 |   -0.59122 |
+ | velo_forward_track_phi                        | "#forward_phi"                                |      15093 | 0.00085967 | 1.8141     |  -0.011566 |    -1.1992 |
+ | velo_total_track_eta                          | "#total_eta"                                  |      24277 |     0.8931 | 3.1959     |   -0.35414 |    -1.4986 |
+ | velo_total_track_nhits                        | "total N. hits / track"                       |      24277 |     6.2791 | 3.1539     |     1.1086 |    0.45651 |
+ | velo_total_track_phi                          | "#total_phi"                                  |      24277 | 0.00066215 | 1.8106     |  -0.012844 |    -1.1922 |
-- 
GitLab