CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
dqmAnalyzer_cff.py
Go to the documentation of this file.
2 
3 #not useful anymore for b-tagging but used in some other sequences
4 from JetMETCorrections.Configuration.JetCorrectionServices_cff import ak4PFL2L3,ak4PFL2Relative,ak4PFL3Absolute
5 
6 #JEC for CHS
7 from JetMETCorrections.Configuration.JetCorrectionServices_cff import ak4PFCHSL1Fastjet, ak4PFCHSL2Relative, ak4PFCHSL3Absolute, ak4PFCHSResidual, ak4PFCHSL1FastL2L3, ak4PFCHSL1FastL2L3Residual
8 
9 ######### DATA ############
11 bTagAnalysis.ptRanges = cms.vdouble(0.0)
12 bTagAnalysis.doJetID = True
13 bTagAnalysis.doJEC = True
14 #Residual correction will be added inside the c++ code only for data (checking the presence of genParticles collection), not explicit here as this sequence also ran on MC FullSim
15 bTagAnalysis.JECsource = cms.string("ak4PFCHSL1FastL2L3")
16 bTagPlotsDATA = cms.Sequence(bTagAnalysis)
17 
18 ########## MC ############
19 #Matching
21 AK4byRef.jets = cms.InputTag("ak4PFJetsCHS")
22 #Get gen jet collection for real jets
23 ak4GenJetsForPUid = cms.EDFilter("GenJetSelector",
24  src = cms.InputTag("ak4GenJets"),
25  cut = cms.string('pt > 8.'),
26  filter = cms.bool(False)
27  )
28 #do reco gen - reco matching
29 from PhysicsTools.PatAlgos.mcMatchLayer0.jetMatch_cfi import patJetGenJetMatch
30 newpatJetGenJetMatch = patJetGenJetMatch.clone(
31  src = cms.InputTag("ak4PFJetsCHS"),
32  matched = cms.InputTag("ak4GenJetsForPUid"),
33  maxDeltaR = cms.double(0.25),
34  resolveAmbiguities = cms.bool(True)
35 )
36 
37 # Module execution for MC
39 bTagValidation.jetMCSrc = 'AK4byValAlgo'
40 bTagValidation.ptRanges = cms.vdouble(0.0)
41 bTagValidation.etaRanges = cms.vdouble(0.0)
42 bTagValidation.doJetID = True
43 bTagValidation.doJEC = True
44 bTagValidation.JECsource = cms.string("ak4PFCHSL1FastL2L3")
45 bTagValidation.genJetsMatched = cms.InputTag("newpatJetGenJetMatch")
46 #to run on fastsim
47 prebTagSequenceMC = cms.Sequence(ak4GenJetsForPUid*newpatJetGenJetMatch*myPartons*AK4Flavour)
48 bTagPlotsMC = cms.Sequence(bTagValidation)
49 
50 #to run on fullsim in the validation sequence, all histograms produced in the dqmoffline sequence
51 bTagValidationNoall = bTagValidation.clone(flavPlots="bcl")
52 bTagPlotsMCbcl = cms.Sequence(bTagValidationNoall)
DATA ############.