CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
jetAnalyzer_cfi.py
Go to the documentation of this file.
2 
3 from DQMOffline.JetMET.jetDQMConfig_cff import * # parameters for all jet analyzers
4 from DQMOffline.JetMET.jetMETDQMCleanup_cff import * # parameters for event cleanup
5 
6 
7 from JetMETCorrections.Configuration.JetCorrectionServices_cff import ak4CaloL2L3,ak4CaloL2Relative,ak4CaloL3Absolute
8 newAk4CaloL2L3 = ak4CaloL2L3.clone()
9 
10 from JetMETCorrections.Configuration.JetCorrectionServicesAllAlgos_cff import ak7CaloL2L3,ak7CaloL2Relative,ak7CaloL3Absolute
11 newAk7CaloL2L3 = ak7CaloL2L3.clone()
12 
13 from JetMETCorrections.Configuration.JetCorrectionServices_cff import ak4PFL1FastL2L3,ak4PFL1Fastjet,ak4PFL2Relative,ak4PFL3Absolute
14 newAk4PFL1FastL2L3 = ak4PFL1FastL2L3.clone()
15 
16 #from JetMETCorrections.Configuration.JetCorrectionServices_cff import ak4JPTL1FastL2L3,ak4JPTL1Fastjet,ak4JPTL2Relative,ak4JPTL3Absolute
17 #newAk4JPTL1FastL2L3 = ak4JPTL1FastL2L3.clone()
18 
19 jetDQMAnalyzerAk4CaloUncleaned = cms.EDAnalyzer("JetAnalyzer",
20  OutputMEsInRootFile = cms.bool(False),
21  OutputFile = cms.string('jetMETMonitoring.root'),
22  JetType = cms.string('calo'),#pf, calo or jpt
23  JetCorrections = cms.string("newAk4CaloL2L3"),
24  jetsrc = cms.InputTag("ak4CaloJets"),
25  filljetHighLevel =cms.bool(True),
26  #
27  #
28  #
29  highPtJetTrigger = cms.PSet(
30  andOr = cms.bool( False ),
31  dbLabel = cms.string("JetMETDQMTrigger"),
32  hltInputTag = cms.InputTag( "TriggerResults::HLT" ),
33  hltDBKey = cms.string( 'jetmet_highptjet' ),
34  hltPaths = cms.vstring( 'HLT_Jet300_v','HLT_Jet300_v6','HLT_Jet300_v7','HLT_Jet300_v8' ),
35  andOrHlt = cms.bool( True ),
36  errorReplyHlt = cms.bool( False ),
37  ),
38  lowPtJetTrigger = cms.PSet(
39  andOr = cms.bool( False ),
40  dbLabel = cms.string("JetMETDQMTrigger"),
41  hltInputTag = cms.InputTag( "TriggerResults::HLT" ),
42  hltDBKey = cms.string( 'jetmet_lowptjet' ),
43  hltPaths = cms.vstring( 'HLT_Jet60_v','HLT_Jet60_v6','HLT_Jet60_v7','HLT_Jet60_v8' ),
44  andOrHlt = cms.bool( True ),
45  errorReplyHlt = cms.bool( False ),
46  ),
47 
48  TriggerResultsLabel = cms.InputTag("TriggerResults::HLT"),
49  processname = cms.string("HLT"),
50 
51  #
52  # Jet-related
53  #
54 
55  JetCleaningFlag = cms.untracked.bool(False),
56 
57  runcosmics = cms.untracked.bool(False),
58 
59  #Cleanup parameters
60  CleaningParameters = cleaningParameters.clone(
61  bypassAllPVChecks = cms.bool(True),
62  ),
63 
64  #for JPT and CaloJetID
65  InputJetIDValueMap = cms.InputTag("ak4JetID"),
66  #options for Calo and JPT: LOOSE,LOOSE_AOD,TIGHT,MINIMAL
67  #for PFJets: LOOSE,TIGHT
68  JetIDQuality = cms.string("LOOSE"),
69  #options for Calo and JPT: PURE09,DQM09,CRAFT08
70  #for PFJets: FIRSTDATA
71  JetIDVersion = cms.string("PURE09"),
72  #
73  # For jetAnalysis
74  #
75  jetAnalysis = jetDQMParameters.clone(),
76 
77  #
78  # DCS
79  #
80  DCSFilterForJetMonitoring = cms.PSet(
81  DetectorTypes = cms.untracked.string("ecal:hbhe:hf"),
82  #DebugOn = cms.untracked.bool(True),
83  alwaysPass = cms.untracked.bool(False)
84  )
85 )
86 
87 jetDQMAnalyzerAk4CaloCleaned=jetDQMAnalyzerAk4CaloUncleaned.clone(
88  JetCleaningFlag = cms.untracked.bool(True),
89  filljetHighLevel = cms.bool(False),
90  CleaningParameters = cleaningParameters.clone(
91  bypassAllPVChecks = cms.bool(False),
92  ),
93  jetAnalysis=jetDQMParameters.clone(
94  ptThreshold = cms.double(20.),
95  asymmetryThirdJetCut = cms.double(30),
96  balanceThirdJetCut = cms.double(0.2),
97  )
98 )
99 
100 
101 #jetDQMAnalyzerAk4JPTCleaned=jetDQMAnalyzerAk4CaloCleaned.clone(
102 # JetType = cms.string('jpt'),#pf, calo or jpt
103 # JetCorrections = cms.string("newAk4JPTL1FastL2L3"),
104 # jetsrc = cms.InputTag("JetPlusTrackZSPCorJetAntiKt5"),
105 # JetCleaningFlag = cms.untracked.bool(True),
106 # filljetHighLevel = cms.bool(False),
107 # DCSFilterForJetMonitoring = cms.PSet(
108 # DetectorTypes = cms.untracked.string("ecal:hbhe:hf:pixel:sistrip:es:muon"),
109 # #DebugOn = cms.untracked.bool(True),
110 # alwaysPass = cms.untracked.bool(False)
111 # )
112 #)
113 
114 jetDQMAnalyzerAk4PFUncleaned=jetDQMAnalyzerAk4CaloUncleaned.clone(
115  CleaningParameters = cleaningParameters.clone(
116  bypassAllPVChecks = cms.bool(False),
117  ),
118  #for PFJets: LOOSE,TIGHT
119  JetIDQuality = cms.string("LOOSE"),
120  #options for Calo and JPT: PURE09,DQM09,CRAFT08
121  #for PFJets: FIRSTDATA
122  JetIDVersion = cms.string("FIRSTDATA"),
123  JetType = cms.string('pf'),#pf, calo or jpt
124  JetCorrections = cms.string("newAk4PFL1FastL2L3"),
125  jetsrc = cms.InputTag("ak4PFJets"),
126  filljetHighLevel = cms.bool(False),
127  DCSFilterForJetMonitoring = cms.PSet(
128  DetectorTypes = cms.untracked.string("ecal:hbhe:hf:pixel:sistrip:es:muon"),
129  #DebugOn = cms.untracked.bool(True),
130  alwaysPass = cms.untracked.bool(False)
131  )
132 )
133 
134 jetDQMAnalyzerAk4PFCleaned=jetDQMAnalyzerAk4PFUncleaned.clone(
135  JetCleaningFlag = cms.untracked.bool(True),
136  filljetHighLevel = cms.bool(False),
137  jetAnalysis=jetDQMParameters.clone(
138  ptThreshold = cms.double(20.),
139  asymmetryThirdJetCut = cms.double(30),
140  balanceThirdJetCut = cms.double(0.2),
141  )
142 )
143 
144 jetDQMAnalyzerIC5CaloHIUncleaned=jetDQMAnalyzerAk4CaloUncleaned.clone(
145  CleaningParameters = cleaningParameters.clone(
146  bypassAllPVChecks = cms.bool(False),
147  vertexCollection = cms.InputTag( "hiSelectedVertex" ),
148  ),
149  JetType = cms.string('calo'),#pf, calo or jpt
150  JetCorrections = cms.string(""),# no jet correction available yet?
151  jetsrc = cms.InputTag("iterativeConePu5CaloJets"),
152  JetCleaningFlag = cms.untracked.bool(False),
153  runcosmics = cms.untracked.bool(True),
154  DCSFilterForJetMonitoring = cms.PSet(
155  DetectorTypes = cms.untracked.string("ecal:hbhe:hf:pixel:sistrip:es:muon"),
156  #DebugOn = cms.untracked.bool(True),
157  alwaysPass = cms.untracked.bool(False)
158  )
159 )