def _downstreamDVPreselection(self, name):
     from Configurables import RecVertices2Particles
     _makeDownVerticesCand = RecVertices2Particles("PreselDown" + name +
                                                   "Alg")
     _makeDownVerticesCand.RCutMethod = self.__confdict__['RCutMethod']
     _makeDownVerticesCand.PreyMinMass = self.__confdict__['MinMass'][
         'PreselVelo']
     _makeDownVerticesCand.PreyMinSumpt = self.__confdict__['MinSumPt'][
         'PreselVelo']
     _makeDownVerticesCand.RMin = self.__confdict__['MinR']['PreselVelo']
     _makeDownVerticesCand.NbTracks = self.__confdict__['NTracks'][
         'PreselVelo']
     _makeDownVerticesCand.RemVtxFromDet = self.__confdict__[
         'MaterialVeto']['PreselVelo']
     _makeDownVerticesCand.UsePartFromTES = False
     return Selection("PreselDown" + name,
                      Algorithm=_makeDownVerticesCand,
                      RequiredSelections=[self.dvDownReco],
                      InputDataSetter='RecVerticesLocation')
예제 #2
0
RV.PVOfflineTool.addTool(LSAdaptPV3DFitter())
RV.PVOfflineTool.LSAdaptPV3DFitter.maxIP2PV = 2 * mm
RV.PVOfflineTool.LSAdaptPV3DFitter.MinTracks = 4

#Default PV reconstruction
from Configurables import PatPVOffline
myPVLocation = "/Event/Rec/Vertex/myPVOffline"
myPVOffl = PatPVOffline("myPVOffl")
myPVOffl.OutputVertices = myPVLocation
#DVSeq.Members += [ myPVOffl ]
########################################################################

########################################################################
# Preselection of candidates
from Configurables import RecVertices2Particles
RV2P = RecVertices2Particles("RV2P")
DVSeq.Members += [RV2P]

RV2P.RecVerticesLocation = ["Rec/Vertices/RV"]
#RV2P.RecVerticesLocation = [myPVLocation]
RV2P.OutputLevel = 3

#Selection Cuts
RV2P.Prey = prey
RV2P.PreyMinSumpt = 4 * GeV
RV2P.PreyMinMass = 4 * GeV
RV2P.RMin = 0.3 * mm  #Min dist to z axis, D = 0.3 mm
RV2P.NbTracks = 4
RV2P.IsolationDistance = 0  # D = 0
RV2P.RemVtxFromDet = 0 * mm  #Switch off for tupling !
RV2P.RCutMethod = MethodRCut