Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-09 22:33:51

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_PNetTaus = hltTauOfflineMonitor_PFTaus.clone(
0120     DQMBaseFolder = cms.untracked.string("HLT/TAU/PNetTaus"),
0121     Paths = cms.untracked.string("PNetTauh")
0122 )
0123 
0124 hltTauOfflineMonitor_Inclusive = hltTauOfflineMonitor_PFTaus.clone(
0125     DQMBaseFolder = "HLT/TAU/Inclusive",
0126     Matching = cms.PSet(
0127         doMatching            = cms.untracked.bool(False),
0128         matchFilters          = cms.untracked.VPSet(),
0129     )
0130 )
0131 
0132 def TriggerSelectionParameters(hltpaths):
0133     genericTriggerSelectionParameters = cms.PSet(
0134                 andOr          = cms.bool( False ),#specifies the logical combination of the single filters' (L1, HLT and DCS) decisions at top level (True=OR)
0135                 dbLabel        = cms.string("PFTauDQMTrigger"),#specifies the label under which the DB payload is available from the ESSource or Global Tag
0136                 andOrHlt       = cms.bool(True),#specifies the logical combination of the single HLT paths' decisions (True=OR)
0137                 hltInputTag    = cms.InputTag("TriggerResults", "", hltTauDQMofflineProcess),
0138                 hltPaths       = hltpaths,#Lists logical expressions of HLT paths, which should have accepted the event (fallback in case DB unaccessible)
0139                 errorReplyHlt  = cms.bool(False),#specifies the desired return value of the HLT filter and the single HLT path filter in case of certain errors
0140                 verbosityLevel = cms.uint32(0) #0: complete silence (default), needed for T0 processing;
0141     )
0142     return genericTriggerSelectionParameters
0143 
0144 
0145 hltTauOfflineMonitor_TagAndProbe = hltTauOfflineMonitor_PFTaus.clone(
0146     DQMBaseFolder = "HLT/TAU/TagAndProbe",
0147     Matching = cms.PSet(                                                                                                                                                                             
0148         doMatching            = cms.untracked.bool(True),                                                                                                                                            
0149         matchFilters          = cms.untracked.VPSet(                                                                                                                                                 
0150                                     cms.untracked.PSet(                                                                                                                                              
0151                                         FilterName        = cms.untracked.InputTag("TauRefProducer","PFTaus"),
0152                                         matchObjectID     = cms.untracked.int32(15),                          
0153                                     ),                                                                        
0154                                     cms.untracked.PSet(                                                       
0155                                         FilterName        = cms.untracked.InputTag("TauRefProducer","Electrons"),
0156                                         matchObjectID     = cms.untracked.int32(11),                             
0157                                     ),                                                                           
0158                                     cms.untracked.PSet(                                                          
0159                                         FilterName        = cms.untracked.InputTag("TauRefProducer","Muons"),    
0160                                         matchObjectID     = cms.untracked.int32(13),                             
0161                                     ),                                                                           
0162                                     cms.untracked.PSet(                                                          
0163                                         FilterName        = cms.untracked.InputTag("TauRefProducer","MET"),
0164                                         matchObjectID     = cms.untracked.int32(0),                              
0165                                     ),
0166                                 ),
0167     ),
0168     TagAndProbe = cms.untracked.VPSet(
0169         cms.untracked.PSet(
0170             name        = cms.string('MuTauTemplate'),
0171             xvariable   = cms.string('Tau'),
0172             nPtBins     = cms.int32(20),
0173             ptmin       = cms.double(0.),
0174             ptmax       = cms.double(200.),
0175             nEtaBins    = cms.int32(20),  
0176             etamin      = cms.double(-2.5),
0177             etamax      = cms.double(2.5),
0178             nPhiBins    = cms.int32(20),  
0179             phimin      = cms.double(-3.15),
0180             phimax      = cms.double(3.15),
0181             numerator   = TriggerSelectionParameters(cms.vstring('HLT_IsoMu24_eta2p1_.+PFTau.+')),
0182             denominator = TriggerSelectionParameters(cms.vstring('HLT_IsoMu27_v*'))
0183         ),
0184         cms.untracked.PSet(
0185             name        = cms.string('ETauTemplate'),
0186             xvariable   = cms.string('Tau'),
0187             nPtBins     = cms.int32(20),
0188             ptmin       = cms.double(0.),  
0189             ptmax       = cms.double(200.),
0190             nEtaBins    = cms.int32(20),   
0191             etamin      = cms.double(-2.5),
0192             etamax      = cms.double(2.5), 
0193             nPhiBins    = cms.int32(20),  
0194             phimin      = cms.double(-3.15),
0195             phimax      = cms.double(3.15), 
0196             numerator   = TriggerSelectionParameters(cms.vstring('HLT_Ele.+PFTau.+')),
0197             denominator = TriggerSelectionParameters(cms.vstring('HLT_Ele35_WPTight_Gsf_v*'))
0198         ),
0199         cms.untracked.PSet(
0200             name        = cms.string('TauMETTemplate'),
0201             xvariable   = cms.string('MET'),
0202             nPtBins     = cms.int32(50),
0203             ptmin       = cms.double(0.),
0204             ptmax       = cms.double(500.),
0205             nPhiBins    = cms.int32(20),
0206             phimin      = cms.double(-3.15),
0207             phimax      = cms.double(3.15),
0208             numerator   = TriggerSelectionParameters(cms.vstring('HLT_MediumChargedIsoPFTau50_Trk30_eta2p1_1pr_MET.*')),
0209             denominator = TriggerSelectionParameters(cms.vstring('HLT_MediumChargedIsoPFTau50_Trk30_eta2p1_1pr_v*'))
0210         ),
0211         cms.untracked.PSet(
0212             name        = cms.string('IsoMu20_eta2p1'),
0213             xvariable   = cms.string('Muon'),
0214             nPtBins     = cms.int32(20),
0215             ptmin       = cms.double(0.),
0216             ptmax       = cms.double(200.),
0217             nEtaBins    = cms.int32(20),
0218             etamin      = cms.double(-2.5),  
0219             etamax      = cms.double(2.5),
0220             nPhiBins    = cms.int32(20),
0221             phimin      = cms.double(-3.15),
0222             phimax      = cms.double(3.15),
0223             numerator   = TriggerSelectionParameters(cms.vstring('HLT_DoubleIsoMu20_eta2p1_v*')),
0224             denominator = TriggerSelectionParameters(cms.vstring('HLT_IsoMu27_v*')),
0225             nOfflObjs   = cms.untracked.uint32(2)
0226         ),
0227         cms.untracked.PSet(
0228             name        = cms.string('IsoMu24_eta2p1'),
0229             xvariable   = cms.string('Muon'),
0230             nPtBins     = cms.int32(20),  
0231             ptmin       = cms.double(0.),  
0232             ptmax       = cms.double(200.),
0233             nEtaBins    = cms.int32(20),
0234             etamin      = cms.double(-2.5),  
0235             etamax      = cms.double(2.5), 
0236             nPhiBins    = cms.int32(20),   
0237             phimin      = cms.double(-3.15),
0238             phimax      = cms.double(3.15),
0239             numerator   = TriggerSelectionParameters(cms.vstring('HLT_DoubleIsoMu24_eta2p1_v*')),
0240             denominator = TriggerSelectionParameters(cms.vstring('HLT_IsoMu27_v*'))
0241         ),
0242         cms.untracked.PSet(
0243             name        = cms.string('Ele24_eta2p1_WPTight_Gsf'),
0244             xvariable   = cms.string('Electron'),
0245             nPtBins     = cms.int32(20),   
0246             ptmin       = cms.double(0.),
0247             ptmax       = cms.double(200.),
0248             nEtaBins    = cms.int32(20),
0249             etamin      = cms.double(-2.5),  
0250             etamax      = cms.double(2.5), 
0251             nPhiBins    = cms.int32(20),   
0252             phimin      = cms.double(-3.15),
0253             phimax      = cms.double(3.15),
0254             numerator   = TriggerSelectionParameters(cms.vstring('HLT_DoubleEle24_eta2p1_WPTight_Gsf_v*')),
0255             denominator = TriggerSelectionParameters(cms.vstring('HLT_Ele35_WPTight_Gsf_v*'))
0256         )
0257     )
0258 )