CMS 3D CMS Logo

METplusTrackMonitor_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 from DQMOffline.Trigger.metPlusTrackMonitoring_cfi import metPlusTrackMonitoring
4 
5 hltMETplusTrackMonitoring = metPlusTrackMonitoring.clone()
6 hltMETplusTrackMonitoring.FolderName = cms.string('HLT/MET/MET105_IsoTrk50/')
7 hltMETplusTrackMonitoring.histoPSet.lsPSet = cms.PSet(
8  nbins = cms.uint32( 250 ),
9  xmin = cms.double( 0.),
10  xmax = cms.double( 2500.),
11 )
12 hltMETplusTrackMonitoring.histoPSet.metPSet = cms.PSet(
13  nbins = cms.uint32 (100),
14  xmin = cms.double(-0.5),
15  xmax = cms.double(999.5),
16 )
17 hltMETplusTrackMonitoring.histoPSet.ptPSet = cms.PSet(
18  nbins = cms.uint32 (100),
19  xmin = cms.double(-0.5),
20  xmax = cms.double(999.5),
21 )
22 hltMETplusTrackMonitoring.histoPSet.etaPSet = cms.PSet(
23  nbins = cms.uint32 (24),
24  xmin = cms.double(-2.4),
25  xmax = cms.double(2.4),
26 )
27 hltMETplusTrackMonitoring.histoPSet.phiPSet = cms.PSet(
28  nbins = cms.uint32(32),
29  xmin = cms.double(-3.2),
30  xmax = cms.double(3.2),
31 )
32 
33 # Define 100 logarithmic bins from 10^0 to 10^3 GeV
34 binsLogX_METplusTrack = []
35 nBinsLogX_METplusTrack = 100
36 powerLo_METplusTrack = 0.0
37 powerHi_METplusTrack = 3.0
38 binPowerWidth_METplusTrack = (powerHi_METplusTrack - powerLo_METplusTrack) / nBinsLogX_METplusTrack
39 for ibin in range(nBinsLogX_METplusTrack + 1):
40  binsLogX_METplusTrack.append( pow(10, powerLo_METplusTrack + ibin * binPowerWidth_METplusTrack) )
41 
42 hltMETplusTrackMonitoring.histoPSet.metBinning = cms.vdouble(binsLogX_METplusTrack)
43 hltMETplusTrackMonitoring.histoPSet.ptBinning = cms.vdouble(binsLogX_METplusTrack)
44 
45 hltMETplusTrackMonitoring.met = cms.InputTag("caloMet") # caloMet
46 hltMETplusTrackMonitoring.jets = cms.InputTag("pfJetsEI") # ak4PFJets, ak4PFJetsCHS
47 hltMETplusTrackMonitoring.muons = cms.InputTag("muons") # while pfIsolatedMuonsEI are reco::PFCandidate !
48 
49 hltMETplusTrackMonitoring.muonSelection = cms.string('pt>26 && abs(eta)<2.1 && (pfIsolationR04.sumChargedHadronPt+pfIsolationR04.sumPhotonEt+pfIsolationR04.sumNeutralHadronEt-0.5*pfIsolationR04.sumPUPt)/pt<0.12')
50 hltMETplusTrackMonitoring.vtxSelection = cms.string('ndof>=4 && abs(z)<24.0 && position.Rho<2.0')
51 hltMETplusTrackMonitoring.nmuons = cms.uint32(1)
52 hltMETplusTrackMonitoring.leadJetEtaCut = cms.double(2.4)
53 
54 hltMETplusTrackMonitoring.numGenericTriggerEventPSet.andOr = cms.bool( False )
55 #hltMETplusTrackMonitoring.numGenericTriggerEventPSet.dbLabel = cms.string("ExoDQMTrigger") # it does not exist yet, we should consider the possibility of using the DB, but as it is now it will need a label per path !
56 hltMETplusTrackMonitoring.numGenericTriggerEventPSet.andOrHlt = cms.bool(True)# True:=OR; False:=AND
57 hltMETplusTrackMonitoring.numGenericTriggerEventPSet.hltInputTag = cms.InputTag( "TriggerResults::HLT" )
58 hltMETplusTrackMonitoring.numGenericTriggerEventPSet.hltPaths = cms.vstring("HLT_MET105_IsoTrk50_v*") # HLT_ZeroBias_v
59 #hltMETplusTrackMonitoring.numGenericTriggerEventPSet.hltDBKey = cms.string("EXO_HLT_MET")
60 hltMETplusTrackMonitoring.numGenericTriggerEventPSet.errorReplyHlt = cms.bool( False )
61 hltMETplusTrackMonitoring.numGenericTriggerEventPSet.verbosityLevel = cms.uint32(0)
62 
63 hltMETplusTrackMonitoring.denGenericTriggerEventPSet.andOr = cms.bool( False )
64 hltMETplusTrackMonitoring.denGenericTriggerEventPSet.dcsInputTag = cms.InputTag( "scalersRawToDigi" )
65 hltMETplusTrackMonitoring.denGenericTriggerEventPSet.dcsPartitions = cms.vint32 ( 24, 25, 26, 27, 28, 29 ) # 24-27: strip, 28-29: pixel, we should add all other detectors !
66 hltMETplusTrackMonitoring.denGenericTriggerEventPSet.andOrDcs = cms.bool( False )
67 hltMETplusTrackMonitoring.denGenericTriggerEventPSet.errorReplyDcs = cms.bool( True )
68 hltMETplusTrackMonitoring.denGenericTriggerEventPSet.verbosityLevel = cms.uint32(1)
69 hltMETplusTrackMonitoring.denGenericTriggerEventPSet.hltPaths = cms.vstring("HLT_IsoMu27_v*", "HLT_IsoTkMu27_v*")
70 
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:40