def recoVelo(OutputTracksName=HltSharedTrackLoc["Velo"]):
    recoVelo = FastVeloTracking( 'FastVeloHlt', OutputTracksName = OutputTracksName)
    recoVelo.StatPrint = True
    extendVelo = HltRecoConf().getProp("BeamGasMode")
    if extendVelo:
        recoVelo.ZVertexMin = HltRecoConf().getProp("VeloTrackingZMin")
        recoVelo.ZVertexMax = HltRecoConf().getProp("VeloTrackingZMax")
    recoVelo.VetoObjects = [ OutputTracksName ]
    return recoVelo
Example #2
0
  def _modify_velo_seq(self, sequence):
    '''
    Modify RecoVertexSeq sequence.
    '''
    from Configurables import FastVeloTracking

    myFastVelo = FastVeloTracking("MyFastVelo")
    myFastVelo.ZVertexMin = -2000
    myFastVelo.ZVertexMax = 2000

    sequence.Members = [myFastVelo]
Example #3
0
    def _modify_velo_seq(self, sequence):
        '''
    Modify RecoVertexSeq sequence.
    '''
        from Configurables import FastVeloTracking

        myFastVelo = FastVeloTracking("MyFastVelo")
        myFastVelo.ZVertexMin = -2000
        myFastVelo.ZVertexMax = 2000

        sequence.Members = [myFastVelo]
Example #4
0
    def _create_tracking_algos(self):
        '''Create the common velo tracking instance.'''

        tracking_conf = self.getProp("TrackingConf")
        tracking_output = self.getProp("TrackContName")

        algs = []
        if tracking_conf == 'FastVelo':
            from Configurables import FastVeloTracking
            algTr = FastVeloTracking('FastVeloTrackingBeamGas')
            algTr.HitManagerName = self.getProp("FastVeloBGHitManagerName")
            algTr.OutputTracksName = tracking_output
            algTr.ZVertexMin = self.getProp("TrackingZMin")
            algTr.ZVertexMax = self.getProp("TrackingZMax")
            algs.append(algTr)
        elif tracking_conf == 'PatVelo':
            from Configurables import Tf__PatVeloRTracking, Tf__PatVeloSpaceTracking, Tf__PatVeloSpaceTool, Tf__PatVeloGeneralTracking
            patVeloR = Tf__PatVeloRTracking('PatVeloBeamGas_RTracking')
            patVeloR.OutputTracksName = self.getProp('RZTrackContName')
            patVeloR.ZVertexMin = self.getProp("TrackingZMin")
            patVeloR.ZVertexMax = self.getProp("TrackingZMax")
            patVeloSpace = Tf__PatVeloSpaceTracking(
                'PatVeloBeamGas_SpaceTracking')
            patVeloSpace.InputTracksName = patVeloR.OutputTracksName
            patVeloSpace.OutputTracksName = tracking_output
            patVeloSpace.addTool(Tf__PatVeloSpaceTool(),
                                 name="PatVeloSpaceTool")
            patVeloSpace.PatVeloSpaceTool.MarkClustersUsed = True
            patVeloGeneral = Tf__PatVeloGeneralTracking(
                'PatVeloBeamGas_GeneralTracking')
            patVeloGeneral.OutputTracksLocation = tracking_output
            patVeloGeneral.PointErrorMin = 2
            algs.extend([patVeloR, patVeloSpace, patVeloGeneral])
        else:
            raise ValueError(
                "Unknown TrackingConf ({})!".format(tracking_conf))

        return algs