Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
import FWCore.ParameterSet.Config as cms
from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer

DoubleEGL1 = [
  "L1_DoubleEG_LooseIso16_LooseIso12_er1p5",
  "L1_DoubleEG_LooseIso18_LooseIso12_er1p5",
  "L1_DoubleEG_LooseIso20_LooseIso12_er1p5",
  "L1_DoubleEG_LooseIso22_LooseIso12_er1p5",
  "L1_DoubleEG11_er1p2_dR_Max0p6"
]

SinglePhotonL1 = [
  'L1_SingleLooseIsoEG26er2p5',
  'L1_SingleLooseIsoEG26er1p5',
  'L1_SingleLooseIsoEG28er2p5',
  'L1_SingleLooseIsoEG28er2p1',
  'L1_SingleLooseIsoEG28er1p5',
  'L1_SingleLooseIsoEG30er2p5',
  'L1_SingleLooseIsoEG30er1p5',
  'L1_SingleEG26er2p5',
  'L1_SingleEG38er2p5',
  'L1_SingleEG40er2p5',
  'L1_SingleEG42er2p5',
  'L1_SingleEG45er2p5',
  'L1_SingleEG60',
  'L1_SingleEG34er2p5',
  'L1_SingleEG36er2p5',
  'L1_SingleIsoEG24er2p1',
  'L1_SingleIsoEG26er2p1',
  'L1_SingleIsoEG28er2p1',
  'L1_SingleIsoEG30er2p1',
  'L1_SingleIsoEG32er2p1',
  'L1_SingleIsoEG26er2p5',
  'L1_SingleIsoEG28er2p5',
  'L1_SingleIsoEG30er2p5',
  'L1_SingleIsoEG32er2p5',
  'L1_SingleIsoEG34er2p5'
]

PatElectronTagProbeAnalysis = DQMEDAnalyzer('PatElectronTagProbeAnalyzer',

    OutputInternalPath = cms.string('/HLT/ScoutingOffline/EGamma/TnP/Tag_PatElectron'),
    BaseTriggerSelection = cms.vstring(["DST_PFScouting_ZeroBias_v", "DST_PFScouting_SingleMuon_v", "DST_PFScouting_DoubleMuon_v", "DST_PFScouting_JetHT_v"]),
    triggerSelection = cms.vstring(["DST_PFScouting_DoubleEG_v", "DST_PFScouting_SinglePhotonEB_v"]),
    finalfilterSelection = cms.vstring(["hltDoubleEG11CaloIdLHEFilter", "hltEG30EBTightIDTightIsoTrackIsoFilter"]), # Must align with triggerSelection
    l1filterSelection  = cms.vstring(["hltL1sDSTRun3DoubleEGPFScoutingPixelTracking", "hltL1sSingleEGor"]),
    l1filterSelectionIndex = cms.vuint32([len(DoubleEGL1), len(DoubleEGL1) + len(SinglePhotonL1)]),
    AlgInputTag        = cms.InputTag("gtStage2Digis"),
    l1tAlgBlkInputTag  = cms.InputTag("gtStage2Digis"),
    l1tExtBlkInputTag  = cms.InputTag("gtStage2Digis"),
    L1Seeds            = cms.vstring(DoubleEGL1 + SinglePhotonL1),
    ReadPrescalesFromFile = cms.bool(False),
    TriggerResultTag   = cms.InputTag("TriggerResults", "", "HLT"),
    TriggerObjects     = cms.InputTag("slimmedPatTrigger"),
    ElectronCollection = cms.InputTag('slimmedElectrons'),
    ScoutingElectronCollection = cms.InputTag('hltScoutingEgammaPacker'),
    eleIdMapTight = cms.InputTag('egmGsfElectronIDsForScoutingDQM:cutBasedElectronID-RunIIIWinter22-V1-tight')

)

scoutingMonitoringPatElectronTagProbe = cms.Sequence(PatElectronTagProbeAnalysis)