Difference: Ghostsinreco13 (22 vs. 23)

Revision 232015-08-05 - PaulSeyfert

Line: 1 to 1
 
META TOPICPARENT name="LHCbTracking"

Ghosts (since 2012)

Line: 21 to 21
  https://groups.cern.ch/group/lhcb-davinci/Lists/Archive/Flat.aspx?RootFolder=%2Fgroup%2Flhcb%2Ddavinci%2FLists%2FArchive%2FQuestion%20on%20GhostProb%20cut&FolderCTID=0x01200200B795ECDBD8943F4E90E5F02A017196C9
Added:
>
>
howto get the run2 25ns tuning on run1 data

use DaVinci v37r0

and getpack Tr/TrackTools v5r11

cp /afs/cern.ch/user/p/pseyfert/public/GhostProbRun2/25ns/* Tr/TrackTools/src

and compile Tr/TrackTools

on MDST, it was necessary to provide the RootInTES by hand to various tracking tools. Not sure if recent DaVinci versions cover this automatically. Try first w/o all the "MyStream" lines (commented out).

from STTools import STOfflineConf
STOfflineConf.DefaultConf().configureTools()
from Configurables import RefitParticleTracks
refitter = RefitParticleTracks()
refitter.DoFit = True 
refitter.DoProbability = True
refitter.UpdateProbability = True
refitter.ReplaceTracks = True
refitter.Inputs = ["Phys/B2JpsiX_B2JpsiKKLine/Particles"]   ### EDIT ME!
DaVinci().UserAlgorithms = [refitter,decaytreetuple]            ### pick YOUR ntuple algorithm instead of "decaytreetuple" here.
#MyStream = "Dimuon"                                             ### EDIT ME


from Configurables import TrackInitFit, TrackMasterFitter
from TrackFitter.ConfiguredFitters import ConfiguredMasterFitter
from Configurables import TrackBestTrackCreator, TrackMasterFitter, TrackStateInitTool

def giveitafit(thething):  

   thething.addTool(TrackInitFit,"TrackInitFit")
   
   thething.TrackInitFit.addTool( TrackMasterFitter, name = "Fit" )
   thething.TrackInitFit.addTool( TrackStateInitTool, name = "Init")
   thething.TrackInitFit.Init.UseFastMomentumEstimate = True
   #thething.TrackInitFit.Init.OutputLevel = 1
   #thething.TrackInitFit.OutputLevel = 1
   ConfiguredMasterFitter( getattr(thething.TrackInitFit, "Fit"), SimplifiedGeometry = True, LiteClusters = True, MSRossiAndGreisen = True )
   thething.TrackInitFit.Init.VeloFitterName = "FastVeloFitLHCbIDs"
   #if DaVinci().InputType == "MDST":
      #thething.TrackInitFit.RootInTES = MyStream
      #thething.TrackInitFit.Fit.RootInTES = MyStream
      #thething.TrackInitFit.Init.RootInTES = MyStream
      #from Configurables import FastVeloFitLHCbIDs
      #FastVeloFitLHCbIDs("RefitParticleTracks.TrackInitFit.Init.FastVeloFitLHCbIDs").RootInTES = MyStream


giveitafit(refitter)

#from Configurables import OTRawBankDecoder, PatSeedFit, Tf__OTHitCreator, Tf__DefaultVeloPhiHitManager, Tf__DefaultVeloRHitManager
#
#ToolSvc().addTool(OTRawBankDecoder())
#if "MDST" == DaVinci().InputType:
#   ToolSvc().OTRawBankDecoder.RootInTES = '/Event/' + MyStream
#ToolSvc().addTool(PatSeedFit())
#if "MDST" == DaVinci().InputType:
#   ToolSvc().PatSeedFit.RootInTES = '/Event/' + MyStream
#ToolSvc().addTool(Tf__OTHitCreator("OTHitCreator") )
#if "MDST" == DaVinci().InputType:
#   ToolSvc().OTHitCreator.RootInTES = '/Event/' + MyStream
#
#
#ToolSvc().addTool(Tf__DefaultVeloPhiHitManager("DefaultVeloPhiHitManager"))
#if "MDST" == DaVinci().InputType:
#   ToolSvc().DefaultVeloPhiHitManager.RootInTES = '/Event/' + MyStream
#
#ToolSvc().addTool(Tf__DefaultVeloRHitManager("DefaultVeloRHitManager"))
#if "MDST" == DaVinci().InputType:
#   ToolSvc().DefaultVeloRHitManager.RootInTES = '/Event/' + MyStream

NB: If clusters for signal tracks are not stored in your input (M)DST, then trackfitting may fail (with many errors in your logs about velo clusters not being found).

 
howto get the run2 50ns tuning on run1 data

use DaVinci v36r7p7

and getpack Tr/TrackTools v5r10

Changed:
<
<
cp /afs/cern.ch/user/p/pseyfert/public/GhostProbRun2/* Tr/TrackTools/src
>
>
and getpack Phys/DaVinciTrackRefitting v2r1

cp /afs/cern.ch/user/p/pseyfert/public/GhostProbRun2/50ns/* Tr/TrackTools/src

  and compile Tr/TrackTools
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback