Exemple #1
0
def makeJetTagElectronInJetObject(
        name,
        prefix,
        object_name,
        label=JetTagD3PDKeys.ElectronInJetGetterLabel(),
        jetCollections=[]):

    from JetTagD3PDMaker import JetTagElectronInJetGetterTool
    getter = JetTagElectronInJetGetterTool(name + '_Getter',
                                           Label=label,
                                           JetCollections=jetCollections)

    from D3PDMakerConfig.D3PDMakerFlags import D3PDMakerFlags
    return  D3PDMakerCoreComps.VectorFillerTool (name, Prefix = prefix, Getter = getter,
                                                 ObjectName = object_name,
                                                 SaveMetadata = \
                                                 D3PDMakerFlags.SaveObjectMetadata())
TrackD3PDFlags.storeBLayerOutliersOnTrack = False
TrackD3PDFlags.storePixelOutliersOnTrack = False
TrackD3PDFlags.storeSCTOutliersOnTrack = False
TrackD3PDFlags.storeTRTOutliersOnTrack = False
TrackD3PDFlags.storeBLayerHolesOnTrack = False
TrackD3PDFlags.storePixelHolesOnTrack = False
TrackD3PDFlags.storeSCTHolesOnTrack = False
TrackD3PDFlags.storeTRTHolesOnTrack = False
TrackD3PDFlags.storeVertexAssociation = True
TrackD3PDFlags.storeTrackPredictionAtBLayer = False

### configure association labels
JetTagD3PDFlags.TrackAssocLabel = JetTagD3PDKeys.TrackGetterLabel()
JetTagD3PDFlags.MuonAssocLabel = JetTagD3PDKeys.MuonInJetGetterLabel()
JetTagD3PDFlags.Muon2AssocLabel = JetTagD3PDKeys.Muon2InJetGetterLabel()
JetTagD3PDFlags.ElectronAssocLabel = JetTagD3PDKeys.ElectronInJetGetterLabel()
#JetTagD3PDFlags.PhotonAssocLabel = JetTagD3PDKeys.PhotonInJetGetterLabel()
#JetTagD3PDFlags.JFVxOnJetAxisAssocLabel = JetTagD3PDKeys.JFVxOnJetAxisGetterLabel()
#JetTagD3PDFlags.JFTwoTrackVertexAssocLabel = JetTagD3PDKeys.JFTwoTrackVertexGetterLabel()
TruthD3PDFlags.GenParticleAssocLabel = TruthD3PDKeys.GenParticleGetterLabel()
TruthD3PDFlags.GenVertexAssocLabel = ""
TruthD3PDFlags.GenEventAssocLabel = TruthD3PDKeys.GenEventGetterLabel()
TruthD3PDFlags.TruthTrackAssocLabel = ""
JetTagD3PDFlags.MSVVtxInfoAssocLabel = JetTagD3PDKeys.MSVVtxInfoInJetGetterLabel(
)

### configure jet tag flags
JetTagD3PDFlags.SkimD3PD = True
JetTagD3PDFlags.FilterMinNJets = 1
JetTagD3PDFlags.FilterMinNJetsMuon = 1
JetTagD3PDFlags.TrackPtCut = 250.