Skip to content
Snippets Groups Projects

Prototype of new alignment configuration

Merged Florian Reiss requested to merge pyconf into master
Compare and Show latest version
1 file
+ 6
5
Compare changes
  • Side-by-side
  • Inline
@@ -15,7 +15,8 @@ from PyConf.application import configure_input
from RecoConf.hlt1_tracking import default_ft_decoding_version
default_ft_decoding_version.global_bind(value=6)
options.set_input_and_conds_from_testfiledb('upgrade_DC19_01_MinBiasMD')
options.input_files = list(set(options.input_files)) # remove dups
#use only a cetain file from testfileDB as some files seem to be corrupt in that sample
options.input_files = list(set(["root://eoslhcb.cern.ch//eos/lhcb/grid/prod/lhcb/MC/Upgrade/XDIGI/00092857/0000/00092857_00000030_1.xdigi"]))
options.evt_max = 10
# options.use_iosvc = True
options.event_store = 'EvtStoreSvc'
@@ -39,10 +40,10 @@ def getAlignmentTracksAndPVs():
from RecoConf.reconstruction_objects import reconstruction
from PyConf.Algorithms import VeloClusterTrackingSIMDFull, PrKalmanFilter
# note that the PVs reconstructed by TrackBeamLineVertexFinderSoA do not store the list of associated tracks. Use PatPV3DFuture instead
from RecoConf.hlt1_tracking import make_reco_pvs, make_PatPV3DFuture_pvs, make_VeloClusterTrackingSIMD_tracks
from RecoConf.hlt2_tracking import make_hlt2_tracks
from RecoConf.hlt2_global_reco import make_default_reconstruction
with reconstruction.bind(from_file=False), make_hlt2_tracks.bind(light_reco=True, use_pr_kf=True), make_reco_pvs.bind( make_pvs_from_velo_tracks=make_PatPV3DFuture_pvs), make_VeloClusterTrackingSIMD_tracks.bind(make_tracks=VeloClusterTrackingSIMDFull), PrKalmanFilter.bind(FillFitResult=True, ClassicSmoothing=True), make_default_reconstruction.bind(usePatPVFuture=True, usePrKalman=True):
from RecoConf.hlt1_tracking import make_reco_pvs, make_PatPV3DFuture_pvs
from RecoConf.hlt2_global_reco import make_fastest_reconstruction
from RecoConf.hlt2_global_reco import reconstruction as reconstruction_hook
with reconstruction.bind(from_file=False), PrKalmanFilter.bind(FillFitResult=True, ClassicSmoothing=True), reconstruction_hook.bind(make_reconstruction=make_fastest_reconstruction), make_reco_pvs.bind( make_pvs_from_velo_tracks=make_PatPV3DFuture_pvs), make_fastest_reconstruction.bind(usePatPVFuture=True):
#make tracks and PVs
# TODO: in principle the PVs should be an optional input for the alignment
reco = reconstruction()
Loading