CMS 3D CMS Logo

nanoDQM_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 from PhysicsTools.NanoAOD.nanoDQM_cfi import nanoDQM
5 
6 ## Modify plots accordingly to era
7 from Configuration.StandardSequences.Eras import eras
8 _vplots80X = nanoDQM.vplots.clone()
9 # Tau plots
10 _tauPlots80X = cms.VPSet()
11 for plot in _vplots80X.Tau.plots:
12  if plot.name.value().find("MVA")>-1 and plot.name.value().find("2017")>-1:
13  continue
14  _tauPlots80X.append(plot)
15 _tauPlots80X.append(Plot1D('idMVAnewDM', 'idMVAnewDM', 64, -0.5, 63.5, 'IsolationMVArun2v1DBnewDMwLT ID working point: bitmask 1 = VLoose, 2 = Loose, 4 = Medium, 8 = Tight, 16 = VTight, 32 = VVTight'))
16 _tauPlots80X.append(Plot1D('idMVAoldDMdR03', 'idMVAoldDMdR03', 64, -0.5, 63.5, 'IsolationMVArun2v1DBdR03oldDMwLT ID working point: bitmask 1 = VLoose, 2 = Loose, 4 = Medium, 8 = Tight, 16 = VTight, 32 = VVTight'))
17 _tauPlots80X.append(Plot1D('rawMVAnewDM', 'rawMVAnewDM', 20, -1, 1, 'byIsolationMVArun2v1DBnewDMwLT raw output discriminator'))
18 _tauPlots80X.append(Plot1D('rawMVAoldDMdR03', 'rawMVAoldDMdR03', 20, -1, 1, 'byIsolationMVArun2v1DBdR03oldDMwLT raw output discriminator'))
19 _vplots80X.Tau.plots = _tauPlots80X
20 eras.run2_miniAOD_80XLegacy.toModify(nanoDQM,
21  vplots = _vplots80X
22 )
23 
24 ## MC
25 nanoDQMMC = nanoDQM.clone()
26 nanoDQMMC.vplots.Electron.sels.Prompt = cms.string("genPartFlav == 1")
27 nanoDQMMC.vplots.Muon.sels.Prompt = cms.string("genPartFlav == 1")
28 nanoDQMMC.vplots.Photon.sels.Prompt = cms.string("genPartFlav == 1")
29 nanoDQMMC.vplots.Tau.sels.Prompt = cms.string("genPartFlav == 5")
30 nanoDQMMC.vplots.Jet.sels.Prompt = cms.string("genJetIdx != 1")
31 nanoDQMMC.vplots.Jet.sels.PromptB = cms.string("genJetIdx != 1 && hadronFlavour == 5")
32 
33 nanoDQMQTester = cms.EDAnalyzer("QualityTester",
34  qtList = cms.untracked.FileInPath('PhysicsTools/NanoAOD/test/dqmQualityTests.xml'),
35  prescaleFactor = cms.untracked.int32(1),
36  testInEventloop = cms.untracked.bool(False),
37  qtestOnEndLumi = cms.untracked.bool(False),
38  verboseQT = cms.untracked.bool(True)
39 )
40 
41 nanoHarvest = cms.Sequence( nanoDQMQTester )
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:20