Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-03-05 02:39:10

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