示例#1
0
def getJetTagPrimaryVertexD3PDObject(level=10, **kw):

    if JetTagD3PDFlags.TrackAssocLabel() == "":
        TrackD3PDFlags.storeVertexTrackIndexAssociation = False

    JetTagPrimaryVertexD3PDObject = \
        BuildxAODVertexD3PDObject(_prefix=JetTagD3PDKeys.PrimaryVertexPrefix(),
                                  _label=JetTagD3PDKeys.PrimaryVertexGetterLabel(),
                                  _sgkey=JetTagD3PDFlags.PrimaryVertexSGKey(),
                                  trackTarget=JetTagD3PDFlags.TrackAssocLabel(),
                                  trackPrefix='trk_')

    return JetTagPrimaryVertexD3PDObject(level=level, **kw)
def getJetTagPrimaryVertexD3PDObject(level=10, **kw):

    if JetTagD3PDFlags.TrackAssocLabel() == "":
        TrackD3PDFlags.storeVertexTrackIndexAssociation = False

    JetTagPrimaryVertexD3PDObject = BuildVertexD3PDObject(
        _prefix=JetTagD3PDKeys.PrimaryVertexPrefix(),
        _label=JetTagD3PDKeys.PrimaryVertexGetterLabel(),
        _sgkey=JetTagD3PDFlags.PrimaryVertexSGKey(),
        #_object_name='JetTagPrimaryVertexD3PDObject',
        trackTarget=JetTagD3PDFlags.TrackAssocLabel(),
        trackPrefix='trk_',
        trackType='Rec::TrackParticleContainer')

    return JetTagPrimaryVertexD3PDObject(level=level, **kw)