B2GegHLTDQMOfflineTnPSource = cms.EDAnalyzer("HLTEleTagAndProbeOfflineSource", tagAndProbeCollections = cms.VPSet( cms.PSet( tagAndProbeConfigEle50CaloIdVTGsfTrkIdT, histConfigs = egammaStdHistConfigs, baseHistName = cms.string("eleWPTightTag_"), filterConfigs = egammaStdFiltersToMonitor, ), ) ) from RecoEgamma.ElectronIdentification.egmGsfElectronIDs_cff import egmGsfElectronIDs B2GegmGsfElectronIDsForDQM = egmGsfElectronIDs.clone() B2GegmGsfElectronIDsForDQM.physicsObjectsIDs = cms.VPSet() B2GegmGsfElectronIDsForDQM.physicsObjectSrc == cms.InputTag('gedGsfElectrons') #note: be careful here to when selecting new ids that the vid tools doesnt do extra setup for them #for example the HEEP cuts need an extra producer which vid tools automatically handles from PhysicsTools.SelectorUtils.tools.vid_id_tools import setupVIDSelection my_id_modules = ['RecoEgamma.ElectronIdentification.Identification.cutBasedElectronID_Summer16_80X_V1_cff'] for id_module_name in my_id_modules: idmod= __import__(id_module_name, globals(), locals(), ['idName','cutFlow']) for name in dir(idmod): item = getattr(idmod,name) if hasattr(item,'idName') and hasattr(item,'cutFlow'): setupVIDSelection(B2GegmGsfElectronIDsForDQM,item)
tagExtraFilter=cms.string(""), ), ) B2GegHLTDQMOfflineTnPSource = cms.EDAnalyzer( "HLTEleTagAndProbeOfflineSource", tagAndProbeCollections=cms.VPSet( cms.PSet( tagAndProbeConfigEle50CaloIdVTGsfTrkIdT, histConfigs=egammaStdHistConfigs, baseHistName=cms.string("eleWPTightTag_"), filterConfigs=egammaStdFiltersToMonitor, ), )) from RecoEgamma.ElectronIdentification.egmGsfElectronIDs_cff import egmGsfElectronIDs B2GegmGsfElectronIDsForDQM = egmGsfElectronIDs.clone() B2GegmGsfElectronIDsForDQM.physicsObjectsIDs = cms.VPSet() B2GegmGsfElectronIDsForDQM.physicsObjectSrc == cms.InputTag('gedGsfElectrons') #note: be careful here to when selecting new ids that the vid tools doesnt do extra setup for them #for example the HEEP cuts need an extra producer which vid tools automatically handles from PhysicsTools.SelectorUtils.tools.vid_id_tools import setupVIDSelection my_id_modules = [ 'RecoEgamma.ElectronIdentification.Identification.cutBasedElectronID_Summer16_80X_V1_cff' ] for id_module_name in my_id_modules: idmod = __import__(id_module_name, globals(), locals(), ['idName', 'cutFlow']) for name in dir(idmod): item = getattr(idmod, name) if hasattr(item, 'idName') and hasattr(item, 'cutFlow'): setupVIDSelection(B2GegmGsfElectronIDsForDQM, item)
from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer B2GegHLTDQMOfflineTnPSource = DQMEDAnalyzer("HLTEleTagAndProbeOfflineSource", tagAndProbeCollections = cms.VPSet( cms.PSet( tagAndProbeConfigEle50CaloIdVTGsfTrkIdT, histConfigs = egammaStdHistConfigs, baseHistName = cms.string("eleWPTightTag_"), filterConfigs = egammaStdFiltersToMonitor, ), ) ) from RecoEgamma.ElectronIdentification.egmGsfElectronIDs_cff import egmGsfElectronIDs B2GegmGsfElectronIDsForDQM = egmGsfElectronIDs.clone( physicsObjectsIDs = cms.VPSet(), physicsObjectSrc = 'gedGsfElectrons' ) #note: be careful here to when selecting new ids that the vid tools doesnt do extra setup for them #for example the HEEP cuts need an extra producer which vid tools automatically handles from PhysicsTools.SelectorUtils.tools.vid_id_tools import setupVIDSelection my_id_modules = ['RecoEgamma.ElectronIdentification.Identification.cutBasedElectronID_Summer16_80X_V1_cff'] for id_module_name in my_id_modules: idmod= __import__(id_module_name, globals(), locals(), ['idName','cutFlow']) for name in dir(idmod): item = getattr(idmod,name) if hasattr(item,'idName') and hasattr(item,'cutFlow'): setupVIDSelection(B2GegmGsfElectronIDsForDQM,item)