CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/HLTriggerOffline/Top/python/singletopHLTEventDQM_cfi.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 SingleTopSingleMuonTriggerDQM = cms.EDAnalyzer("TopHLTSingleLeptonDQM",
00004   ## ------------------------------------------------------
00005   ## SETUP
00006   ##
00007   ## configuration of the MonitoringEnsemble(s)
00008   ## [mandatory] : optional PSets may be omitted
00009   ##
00010   setup = cms.PSet(
00011     ## sub-directory to write the monitor histograms to
00012     ## [mandatory] : should not be changed w/o explicit
00013     ## communication to TopCom!
00014     directory = cms.string("HLTriggerOffline/SingleTop/SingleTopMuonTriggerDQM/"),
00015     ## [mandatory]
00016     sources = cms.PSet(
00017       muons = cms.InputTag("muons"),
00018       elecs = cms.InputTag("gsfElectrons"),
00019       jets  = cms.InputTag("ak5CaloJets"),
00020       mets  = cms.VInputTag("met", "tcMet", "pfMet"),
00021       pvs   = cms.InputTag("offlinePrimaryVertices")
00022 
00023     ),
00024     ## [optional] : when omitted the verbosity level is set to STANDARD
00025     monitoring = cms.PSet(
00026       verbosity = cms.string("DEBUG")
00027     ),
00028     ## [optional] : when omitted all monitoring plots for primary vertices
00029     ## will be filled w/o extras
00030     pvExtras = cms.PSet(
00031       ## when omitted electron plots will be filled w/o additional pre-
00032       ## selection of the primary vertex candidates                                                                                            
00033       select = cms.string("abs(x)<1. & abs(y)<1. & abs(z)<20. & tracksSize>3 & !isFake")
00034     ),
00035     ## [optional] : when omitted all monitoring plots for muons
00036     ## will be filled w/o extras                                           
00037     muonExtras = cms.PSet(
00038       ## when omitted muon plots will be filled w/o additional pre-
00039       ## selection of the muon candidates                                                
00040       select    = cms.string("pt>20 & abs(eta)<2.1 & isGlobalMuon & innerTrack.numberOfValidHits>10 & globalTrack.normalizedChi2>-1 & globalTrack.normalizedChi2<10 & (isolationR03.sumPt+isolationR03.emEt+isolationR03.hadEt)/pt<0.1"),  
00041       ## when omitted isolated muon multiplicity plot will be equi-
00042       ## valent to inclusive muon multiplicity plot                                                    
00043       isolation = cms.string("(isolationR03.sumPt+isolationR03.emEt+isolationR03.hadEt)/pt<0.1")
00044     ),
00045     ## [optional] : when omitted all monitoring plots for jets
00046     ## will be filled w/o extras
00047     jetExtras = cms.PSet(
00048       ## when omitted monitor plots for pt will be filled from uncorrected
00049       ## jets
00050       jetCorrector = cms.string("ak5PFL2L3"),
00051       ## when omitted monitor plots will be filled w/o additional cut on
00052       ## jetID                                                                                                   
00053       jetID  = cms.PSet(
00054         label  = cms.InputTag("ak5JetID"),
00055         select = cms.string("fHPD < 0.98 & n90Hits>1 & restrictedEMF<1")
00056       ),
00057       ## when omitted no extra selection will be applied on jets before
00058       ## filling the monitor histograms; if jetCorrector is present the
00059       ## selection will be applied to corrected jets                                                
00060       select = cms.string("pt>30 & abs(eta)<4.5& emEnergyFraction>0.01"),
00061       ## when omitted monitor histograms for b-tagging will not be filled                                                                                                   
00062       jetBTaggers  = cms.PSet(
00063         trackCountingEff = cms.PSet(
00064           label = cms.InputTag("trackCountingHighEffBJetTags" ),
00065           workingPoint = cms.double(1.25)
00066         ),
00067         trackCountingPur = cms.PSet(
00068           label = cms.InputTag("trackCountingHighPurBJetTags" ),
00069           workingPoint = cms.double(3.00)
00070         ),
00071         secondaryVertex  = cms.PSet(
00072           label = cms.InputTag("simpleSecondaryVertexHighEffBJetTags"),
00073           workingPoint = cms.double(2.05)
00074         )
00075       ),                                                
00076     ),
00077     ## [optional] : when omitted no mass window will be applied
00078     ## for the W mass before filling the event monitoring plots
00079     massExtras = cms.PSet(
00080       lowerEdge = cms.double( 70.),
00081       upperEdge = cms.double(110.)
00082     ),
00083     ## [optional] : when omitted the monitoring plots for triggering
00084     ## will be empty
00085     triggerExtras = cms.PSet(
00086       src   = cms.InputTag("TriggerResults","","HLT"),
00087      paths = cms.vstring(['HLT_Mu3:HLT_QuadJet15U',
00088                           'HLT_Mu5:HLT_QuadJet15U',
00089                           'HLT_Mu7:HLT_QuadJet15U',
00090                           'HLT_Mu9:HLT_QuadJet15U',
00091                           'HLT_Mu11:HLT_QuadJet15U'])      
00092     )
00093   ),
00094   ## ------------------------------------------------------
00095   ## PRESELECTION
00096   ##
00097   ## setup of the event preselection, which will not
00098   ## be monitored
00099   ## [mandatory] : but may be empty
00100   ##
00101   preselection = cms.PSet(
00102    trigger = cms.PSet(
00103       src    = cms.InputTag("TriggerResults","","HLT"),
00104       select = cms.vstring(['HLT_Iso10Mu20_eta2p1_CentralCaloJet30_BTagIPIter_v1'])#ONLY ONE PATH
00105     ),
00106     ## [optional] : when omitted no preselection is applied
00107     vertex = cms.PSet(
00108       src    = cms.InputTag("offlinePrimaryVertices"),
00109       select = cms.string('abs(x)<1. & abs(y)<1. & abs(z)<20. & tracksSize>3 & !isFake')
00110     )                                       
00111   ), 
00112   ## ------------------------------------------------------
00113   ## SELECTION
00114   ##
00115   ## monitor histrograms are filled after each selection
00116   ## step, the selection is applied in the order defined
00117   ## by this vector
00118   ## [mandatory] : may be empty or contain an arbitrary
00119   ## number of PSets
00120   selection = cms.VPSet(
00121     cms.PSet(
00122       label  = cms.string("Hlt:step0"),
00123       src    = cms.InputTag(""),
00124       select = cms.string(""),
00125       min    = cms.int32(0),
00126       max    = cms.int32(0),
00127     ),
00128     cms.PSet(
00129       label  = cms.string("muons:step1"),
00130       src    = cms.InputTag("muons"),
00131       select = cms.string("pt>20 & abs(eta)<2.1 & isGlobalMuon & innerTrack.numberOfValidHits>10 & globalTrack.normalizedChi2>-1 & globalTrack.normalizedChi2<10 & (isolationR03.sumPt+isolationR03.emEt+isolationR03.hadEt)/pt<0.1"),       
00132       min    = cms.int32(1),
00133       max    = cms.int32(1),
00134     ),
00135     cms.PSet(
00136       label  = cms.string("jets/calo:step2"),
00137       src    = cms.InputTag("ak5CaloJets"),
00138       jetCorrector = cms.string("ak5PFL2L3"),
00139       select = cms.string("pt>30 & abs(eta)<4.5 & emEnergyFraction>0.01"),
00140       jetID  = cms.PSet(
00141         label  = cms.InputTag("ak5JetID"),
00142         select = cms.string("fHPD < 0.98 & n90Hits>1 & restrictedEMF<1")
00143       ),
00144       min = cms.int32(1),
00145     ), 
00146     cms.PSet(
00147       label  = cms.string("jets/calo:step3"),
00148       src    = cms.InputTag("ak5CaloJets"),
00149       jetCorrector = cms.string("ak5PFL2L3"),
00150       select = cms.string("pt>30 & abs(eta)<4.5 & emEnergyFraction>0.01"),
00151       jetID  = cms.PSet(
00152         label  = cms.InputTag("ak5JetID"),
00153         select = cms.string("fHPD < 0.98 & n90Hits>1 & restrictedEMF<1")
00154       ),
00155       min = cms.int32(2),
00156     ), 
00157   )
00158 )
00159 
00160 SingleTopSingleElectronTriggerDQM = cms.EDAnalyzer("TopHLTSingleLeptonDQM",
00161   ## ------------------------------------------------------
00162   ## SETUP
00163   ##
00164   ## configuration of the MonitoringEnsemble(s)
00165   ## [mandatory] : optional PSets may be omitted
00166   ##
00167   setup = cms.PSet(
00168     ## sub-directory to write the monitor histograms to
00169     ## [mandatory] : should not be changed w/o explicit
00170     ## communication to TopCom!
00171     directory = cms.string("HLTriggerOffline/SingleTop/SingleTopElectronTriggerDQM/"),
00172     ## [mandatory]
00173     sources = cms.PSet(
00174       muons = cms.InputTag("muons"),
00175       elecs = cms.InputTag("gsfElectrons"),
00176       jets  = cms.InputTag("ak5CaloJets"),
00177       mets  = cms.VInputTag("met", "tcMet", "pfMet"),
00178       pvs   = cms.InputTag("offlinePrimaryVertices")
00179 
00180     ),
00181     ## [optional] : when omitted the verbosity level is set to STANDARD
00182     monitoring = cms.PSet(
00183       verbosity = cms.string("DEBUG")
00184     ),
00185     ## [optional] : when omitted all monitoring plots for primary vertices
00186     ## will be filled w/o extras
00187     pvExtras = cms.PSet(
00188       ## when omitted electron plots will be filled w/o additional pre-
00189       ## selection of the primary vertex candidates                                                                                            
00190       select = cms.string("abs(x)<1. & abs(y)<1. & abs(z)<20. & tracksSize>3 & !isFake")
00191     ),
00192     ## [optional] : when omitted all monitoring plots for muons
00193     ## will be filled w/o extras                                           
00194     muonExtras = cms.PSet(
00195       ## when omitted muon plots will be filled w/o additional pre-
00196       ## selection of the muon candidates                                                
00197       select    = cms.string("pt>20 & abs(eta)<2.1 & isGlobalMuon & innerTrack.numberOfValidHits>10 & globalTrack.normalizedChi2>-1 & globalTrack.normalizedChi2<10 & (isolationR03.sumPt+isolationR03.emEt+isolationR03.hadEt)/pt<0.1"),  
00198       ## when omitted isolated muon multiplicity plot will be equi-
00199       ## valent to inclusive muon multiplicity plot                                                    
00200       isolation = cms.string("(isolationR03.sumPt+isolationR03.emEt+isolationR03.hadEt)/pt<0.1")
00201     ),
00202     ## [optional] : when omitted all monitoring plots for jets
00203     ## will be filled w/o extras
00204     jetExtras = cms.PSet(
00205       ## when omitted monitor plots for pt will be filled from uncorrected
00206       ## jets
00207       jetCorrector = cms.string("ak5PFL2L3"),
00208       ## when omitted monitor plots will be filled w/o additional cut on
00209       ## jetID                                                                                                   
00210       jetID  = cms.PSet(
00211         label  = cms.InputTag("ak5JetID"),
00212         select = cms.string("fHPD < 0.98 & n90Hits>1 & restrictedEMF<1")
00213       ),
00214       ## when omitted no extra selection will be applied on jets before
00215       ## filling the monitor histograms; if jetCorrector is present the
00216       ## selection will be applied to corrected jets                                                
00217       select = cms.string("pt>30 & abs(eta)<4.5& emEnergyFraction>0.01"),
00218       ## when omitted monitor histograms for b-tagging will not be filled                                                                                                   
00219       jetBTaggers  = cms.PSet(
00220         trackCountingEff = cms.PSet(
00221           label = cms.InputTag("trackCountingHighEffBJetTags" ),
00222           workingPoint = cms.double(1.25)
00223         ),
00224         trackCountingPur = cms.PSet(
00225           label = cms.InputTag("trackCountingHighPurBJetTags" ),
00226           workingPoint = cms.double(3.00)
00227         ),
00228         secondaryVertex  = cms.PSet(
00229           label = cms.InputTag("simpleSecondaryVertexHighEffBJetTags"),
00230           workingPoint = cms.double(2.05)
00231         )
00232       ),                                                
00233     ),
00234     ## [optional] : when omitted no mass window will be applied
00235     ## for the W mass before filling the event monitoring plots
00236     massExtras = cms.PSet(
00237       lowerEdge = cms.double( 70.),
00238       upperEdge = cms.double(110.)
00239     ),
00240     ## [optional] : when omitted the monitoring plots for triggering
00241     ## will be empty
00242     triggerExtras = cms.PSet(
00243       src   = cms.InputTag("TriggerResults","","HLT"),
00244      paths = cms.vstring(['HLT_Mu3:HLT_QuadJet15U',
00245                           'HLT_Mu5:HLT_QuadJet15U',
00246                           'HLT_Mu7:HLT_QuadJet15U',
00247                           'HLT_Mu9:HLT_QuadJet15U',
00248                           'HLT_Mu11:HLT_QuadJet15U'])      
00249     )
00250   ),
00251   ## ------------------------------------------------------
00252   ## PRESELECTION
00253   ##
00254   ## setup of the event preselection, which will not
00255   ## be monitored
00256   ## [mandatory] : but may be empty
00257   ##
00258   preselection = cms.PSet(
00259    trigger = cms.PSet(
00260       src    = cms.InputTag("TriggerResults","","HLT"),
00261       select = cms.vstring(['HLT_Iso10Mu20_eta2p1_CentralCaloJet30_BTagIPIter_v1'])#ONLY ONE PATH
00262     ),
00263     ## [optional] : when omitted no preselection is applied
00264     vertex = cms.PSet(
00265       src    = cms.InputTag("offlinePrimaryVertices"),
00266       select = cms.string('abs(x)<1. & abs(y)<1. & abs(z)<20. & tracksSize>3 & !isFake')
00267     )                                       
00268   ), 
00269   ## ------------------------------------------------------
00270   ## SELECTION
00271   ##
00272   ## monitor histrograms are filled after each selection
00273   ## step, the selection is applied in the order defined
00274   ## by this vector
00275   ## [mandatory] : may be empty or contain an arbitrary
00276   ## number of PSets
00277   selection = cms.VPSet(
00278     cms.PSet(
00279       label  = cms.string("Hlt:step0"),
00280       src    = cms.InputTag(""),
00281       select = cms.string(""),
00282       min    = cms.int32(0),
00283       max    = cms.int32(0),
00284     ),
00285     cms.PSet(
00286       label  = cms.string("muons:step1"),
00287       src    = cms.InputTag("muons"),
00288       select = cms.string("pt>20 & abs(eta)<2.1 & isGlobalMuon & innerTrack.numberOfValidHits>10 & globalTrack.normalizedChi2>-1 & globalTrack.normalizedChi2<10 & (isolationR03.sumPt+isolationR03.emEt+isolationR03.hadEt)/pt<0.1"),       
00289       min    = cms.int32(1),
00290       max    = cms.int32(1),
00291     ),
00292     cms.PSet(
00293       label  = cms.string("jets/calo:step2"),
00294       src    = cms.InputTag("ak5CaloJets"),
00295       jetCorrector = cms.string("ak5PFL2L3"),
00296       select = cms.string("pt>30 & abs(eta)<4.5 & emEnergyFraction>0.01"),
00297       jetID  = cms.PSet(
00298         label  = cms.InputTag("ak5JetID"),
00299         select = cms.string("fHPD < 0.98 & n90Hits>1 & restrictedEMF<1")
00300       ),
00301       min = cms.int32(1),
00302     ), 
00303     cms.PSet(
00304       label  = cms.string("jets/calo:step3"),
00305       src    = cms.InputTag("ak5CaloJets"),
00306       jetCorrector = cms.string("ak5CaloL2L3"),
00307       select = cms.string("pt>30 & abs(eta)<4.5 & emEnergyFraction>0.01"),
00308       jetID  = cms.PSet(
00309         label  = cms.InputTag("ak5JetID"),
00310         select = cms.string("fHPD < 0.98 & n90Hits>1 & restrictedEMF<1")
00311       ),
00312       min = cms.int32(2),
00313     ), 
00314   )
00315 )