Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-10-25 09:44:46

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 hltTauDQMofflineProcess = "HLT"
0004 
0005 #Ref Objects-------------------------------------------------------------------------------------------------------
0006 TauRefProducer = cms.EDProducer("HLTTauRefProducer",
0007 
0008                     PFTaus = cms.untracked.PSet(
0009                             PFTauDiscriminatorContainers  = cms.untracked.VInputTag(),
0010                             PFTauDiscriminatorContainerWPs  = cms.untracked.vstring(),
0011                             PFTauDiscriminators = cms.untracked.VInputTag(
0012                                     cms.InputTag("hpsPFTauDiscriminationByDecayModeFinding")
0013                             ),
0014                             doPFTaus = cms.untracked.bool(True),
0015                             ptMin = cms.untracked.double(15.0),
0016                             etaMin = cms.untracked.double(-2.5),
0017                             etaMax = cms.untracked.double(2.5),
0018                             phiMin = cms.untracked.double(-3.15),
0019                             phiMax = cms.untracked.double(3.15),
0020                             PFTauProducer = cms.untracked.InputTag("hpsPFTauProducer")
0021                             ),
0022                     Electrons = cms.untracked.PSet(
0023                             ElectronCollection = cms.untracked.InputTag("gedGsfElectrons"),
0024                             doID = cms.untracked.bool(False),
0025                             InnerConeDR = cms.untracked.double(0.02),
0026                             MaxIsoVar = cms.untracked.double(0.02),
0027                             doElectrons = cms.untracked.bool(True),
0028                             TrackCollection = cms.untracked.InputTag("generalTracks"),
0029                             OuterConeDR = cms.untracked.double(0.6),
0030                             ptMin = cms.untracked.double(15.0),
0031                             doTrackIso = cms.untracked.bool(True),
0032                             ptMinTrack = cms.untracked.double(1.5),
0033                             lipMinTrack = cms.untracked.double(0.2),
0034                             IdCollection = cms.untracked.InputTag("elecIDext")
0035                             ),
0036                     Jets = cms.untracked.PSet(
0037                             JetCollection = cms.untracked.InputTag("ak4PFJetsCHS"),
0038                             etMin = cms.untracked.double(15.0),
0039                             doJets = cms.untracked.bool(False)
0040                             ),
0041                     Towers = cms.untracked.PSet(
0042                             TowerCollection = cms.untracked.InputTag("towerMaker"),
0043                             etMin = cms.untracked.double(10.0),
0044                             doTowers = cms.untracked.bool(False),
0045                             towerIsolation = cms.untracked.double(5.0)
0046                             ),
0047 
0048                     Muons = cms.untracked.PSet(
0049                             doMuons = cms.untracked.bool(True),
0050                             MuonCollection = cms.untracked.InputTag("muons"),
0051                             ptMin = cms.untracked.double(15.0)
0052                             ),
0053 
0054                     Photons = cms.untracked.PSet(
0055                             doPhotons = cms.untracked.bool(False),
0056                             PhotonCollection = cms.untracked.InputTag("gedPhotons"),
0057                             etMin = cms.untracked.double(15.0),
0058                             ECALIso = cms.untracked.double(3.0)
0059                             ),
0060 
0061                     MET = cms.untracked.PSet(
0062                             doMET = cms.untracked.bool(True),
0063                             METCollection = cms.untracked.InputTag("caloMet"), 
0064                             ptMin = cms.untracked.double(0.0)
0065                             ),
0066 
0067                     EtaMin = cms.untracked.double(-2.3),
0068                     EtaMax = cms.untracked.double(2.3),
0069                     PhiMin = cms.untracked.double(-3.15),
0070                     PhiMax = cms.untracked.double(3.15)
0071                   )
0072 
0073 #----------------------------------MONITORS--------------------------------------------------------------------------
0074 kEverything = 0
0075 kVital      = 1
0076 
0077 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
0078 hltTauOfflineMonitor_PFTaus = DQMEDAnalyzer('HLTTauDQMOfflineSource',
0079     HLTProcessName = cms.untracked.string(hltTauDQMofflineProcess),
0080     DQMBaseFolder = cms.untracked.string("HLT/TAU/PFTaus"),
0081     PlotLevel = cms.untracked.int32(kVital),
0082     TriggerResultsSrc = cms.untracked.InputTag("TriggerResults", "", hltTauDQMofflineProcess),
0083     TriggerEventSrc = cms.untracked.InputTag("hltTriggerSummaryAOD", "", hltTauDQMofflineProcess),
0084     L1Plotter = cms.untracked.PSet(
0085         DQMFolder             = cms.untracked.string('L1'),
0086         L1Taus                = cms.untracked.InputTag("caloStage2Digis", "Tau"),
0087         L1ETM                 = cms.untracked.InputTag("caloStage2Digis","EtSum"),
0088         L1ETMMin              = cms.untracked.double(50),
0089     ),
0090     Paths = cms.untracked.string("PFTau"),
0091     PtHistoBins = cms.untracked.int32(50),
0092     PtHistoMax = cms.untracked.double(500),
0093     PathSummaryPlotter = cms.untracked.PSet(
0094         DQMFolder             = cms.untracked.string('Summary'),
0095     ),
0096     Matching = cms.PSet(
0097         doMatching            = cms.untracked.bool(True),
0098         matchFilters          = cms.untracked.VPSet(
0099                                     cms.untracked.PSet(
0100                                         FilterName        = cms.untracked.InputTag("TauRefProducer","PFTaus"),
0101                                         matchObjectID     = cms.untracked.int32(15),
0102                                     ),
0103                                     cms.untracked.PSet(
0104                                         FilterName        = cms.untracked.InputTag("TauRefProducer","Electrons"),
0105                                         matchObjectID     = cms.untracked.int32(11),
0106                                     ),
0107                                     cms.untracked.PSet(
0108                                         FilterName        = cms.untracked.InputTag("TauRefProducer","Muons"),
0109                                         matchObjectID     = cms.untracked.int32(13),
0110                                     ),
0111                                     cms.untracked.PSet(
0112                                         FilterName        = cms.untracked.InputTag("TauRefProducer","MET"),
0113                     matchObjectID     = cms.untracked.int32(0),
0114                                     ),
0115                                 ),
0116     ),
0117 )
0118 
0119 hltTauOfflineMonitor_Inclusive = hltTauOfflineMonitor_PFTaus.clone(
0120     DQMBaseFolder = "HLT/TAU/Inclusive",
0121     Matching = cms.PSet(
0122         doMatching            = cms.untracked.bool(False),
0123         matchFilters          = cms.untracked.VPSet(),
0124     )
0125 )
0126 
0127 def TriggerSelectionParameters(hltpaths):
0128     genericTriggerSelectionParameters = cms.PSet(
0129                 andOr          = cms.bool( False ),#specifies the logical combination of the single filters' (L1, HLT and DCS) decisions at top level (True=OR)
0130                 dbLabel        = cms.string("PFTauDQMTrigger"),#specifies the label under which the DB payload is available from the ESSource or Global Tag
0131                 andOrHlt       = cms.bool(True),#specifies the logical combination of the single HLT paths' decisions (True=OR)
0132                 hltInputTag    = cms.InputTag("TriggerResults", "", hltTauDQMofflineProcess),
0133                 hltPaths       = hltpaths,#Lists logical expressions of HLT paths, which should have accepted the event (fallback in case DB unaccessible)
0134                 errorReplyHlt  = cms.bool(False),#specifies the desired return value of the HLT filter and the single HLT path filter in case of certain errors
0135                 verbosityLevel = cms.uint32(0) #0: complete silence (default), needed for T0 processing;
0136     )
0137     return genericTriggerSelectionParameters
0138 
0139 
0140 hltTauOfflineMonitor_TagAndProbe = hltTauOfflineMonitor_PFTaus.clone(
0141     DQMBaseFolder = "HLT/TAU/TagAndProbe",
0142     Matching = cms.PSet(                                                                                                                                                                             
0143         doMatching            = cms.untracked.bool(True),                                                                                                                                            
0144         matchFilters          = cms.untracked.VPSet(                                                                                                                                                 
0145                                     cms.untracked.PSet(                                                                                                                                              
0146                                         FilterName        = cms.untracked.InputTag("TauRefProducer","PFTaus"),
0147                                         matchObjectID     = cms.untracked.int32(15),                          
0148                                     ),                                                                        
0149                                     cms.untracked.PSet(                                                       
0150                                         FilterName        = cms.untracked.InputTag("TauRefProducer","Electrons"),
0151                                         matchObjectID     = cms.untracked.int32(11),                             
0152                                     ),                                                                           
0153                                     cms.untracked.PSet(                                                          
0154                                         FilterName        = cms.untracked.InputTag("TauRefProducer","Muons"),    
0155                                         matchObjectID     = cms.untracked.int32(13),                             
0156                                     ),                                                                           
0157                                     cms.untracked.PSet(                                                          
0158                                         FilterName        = cms.untracked.InputTag("TauRefProducer","MET"),
0159                                         matchObjectID     = cms.untracked.int32(0),                              
0160                                     ),
0161                                 ),
0162     ),
0163     TagAndProbe = cms.untracked.VPSet(
0164         cms.untracked.PSet(
0165             name        = cms.string('MuTauTemplate'),
0166             xvariable   = cms.string('Tau'),
0167             nPtBins     = cms.int32(20),
0168             ptmin       = cms.double(0.),
0169             ptmax       = cms.double(200.),
0170             nEtaBins    = cms.int32(20),  
0171             etamin      = cms.double(-2.5),
0172             etamax      = cms.double(2.5),
0173             nPhiBins    = cms.int32(20),  
0174             phimin      = cms.double(-3.15),
0175             phimax      = cms.double(3.15),
0176             numerator   = TriggerSelectionParameters(cms.vstring('HLT_IsoMu24_eta2p1_.+PFTau.+')),
0177             denominator = TriggerSelectionParameters(cms.vstring('HLT_IsoMu27_v*'))
0178         ),
0179         cms.untracked.PSet(
0180             name        = cms.string('ETauTemplate'),
0181             xvariable   = cms.string('Tau'),
0182             nPtBins     = cms.int32(20),
0183             ptmin       = cms.double(0.),  
0184             ptmax       = cms.double(200.),
0185             nEtaBins    = cms.int32(20),   
0186             etamin      = cms.double(-2.5),
0187             etamax      = cms.double(2.5), 
0188             nPhiBins    = cms.int32(20),  
0189             phimin      = cms.double(-3.15),
0190             phimax      = cms.double(3.15), 
0191             numerator   = TriggerSelectionParameters(cms.vstring('HLT_Ele.+PFTau.+')),
0192             denominator = TriggerSelectionParameters(cms.vstring('HLT_Ele35_WPTight_Gsf_v*'))
0193         ),
0194         cms.untracked.PSet(
0195             name        = cms.string('TauMETTemplate'),
0196             xvariable   = cms.string('MET'),
0197             nPtBins     = cms.int32(50),
0198             ptmin       = cms.double(0.),
0199             ptmax       = cms.double(500.),
0200             nPhiBins    = cms.int32(20),
0201             phimin      = cms.double(-3.15),
0202             phimax      = cms.double(3.15),
0203             numerator   = TriggerSelectionParameters(cms.vstring('HLT_MediumChargedIsoPFTau50_Trk30_eta2p1_1pr_MET.*')),
0204             denominator = TriggerSelectionParameters(cms.vstring('HLT_MediumChargedIsoPFTau50_Trk30_eta2p1_1pr_v*'))
0205         ),
0206         cms.untracked.PSet(
0207             name        = cms.string('IsoMu20_eta2p1'),
0208             xvariable   = cms.string('Muon'),
0209             nPtBins     = cms.int32(20),
0210             ptmin       = cms.double(0.),
0211             ptmax       = cms.double(200.),
0212             nEtaBins    = cms.int32(20),
0213             etamin      = cms.double(-2.5),  
0214             etamax      = cms.double(2.5),
0215             nPhiBins    = cms.int32(20),
0216             phimin      = cms.double(-3.15),
0217             phimax      = cms.double(3.15),
0218             numerator   = TriggerSelectionParameters(cms.vstring('HLT_DoubleIsoMu20_eta2p1_v*')),
0219             denominator = TriggerSelectionParameters(cms.vstring('HLT_IsoMu27_v*')),
0220             nOfflObjs   = cms.untracked.uint32(2)
0221         ),
0222         cms.untracked.PSet(
0223             name        = cms.string('IsoMu24_eta2p1'),
0224             xvariable   = cms.string('Muon'),
0225             nPtBins     = cms.int32(20),  
0226             ptmin       = cms.double(0.),  
0227             ptmax       = cms.double(200.),
0228             nEtaBins    = cms.int32(20),
0229             etamin      = cms.double(-2.5),  
0230             etamax      = cms.double(2.5), 
0231             nPhiBins    = cms.int32(20),   
0232             phimin      = cms.double(-3.15),
0233             phimax      = cms.double(3.15),
0234             numerator   = TriggerSelectionParameters(cms.vstring('HLT_DoubleIsoMu24_eta2p1_v*')),
0235             denominator = TriggerSelectionParameters(cms.vstring('HLT_IsoMu27_v*'))
0236         ),
0237         cms.untracked.PSet(
0238             name        = cms.string('Ele24_eta2p1_WPTight_Gsf'),
0239             xvariable   = cms.string('Electron'),
0240             nPtBins     = cms.int32(20),   
0241             ptmin       = cms.double(0.),
0242             ptmax       = cms.double(200.),
0243             nEtaBins    = cms.int32(20),
0244             etamin      = cms.double(-2.5),  
0245             etamax      = cms.double(2.5), 
0246             nPhiBins    = cms.int32(20),   
0247             phimin      = cms.double(-3.15),
0248             phimax      = cms.double(3.15),
0249             numerator   = TriggerSelectionParameters(cms.vstring('HLT_DoubleEle24_eta2p1_WPTight_Gsf_v*')),
0250             denominator = TriggerSelectionParameters(cms.vstring('HLT_Ele35_WPTight_Gsf_v*'))
0251         )
0252     )
0253 )