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