ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/CmsHi/JetAnalysis/python/CommonFunctions_cff.py
Revision: 1.1
Committed: Tue May 29 18:03:13 2012 UTC (12 years, 11 months ago) by yilmaz
Content type: text/x-python
Branch: MAIN
CVS Tags: HiForest_V02_85, HiForest_V02_84, HiForest_V02_83, HiForest_V02_82, HiForest_V02_81, HiForest_V02_80, HiForest_V02_79, HiForest_V02_78, HiForest_V02_77, HiForest_V02_76, HiForest_V02_75, HiForest_V02_74, HiForest_V02_73, HiForest_V02_72, HiForest_V02_71, HiForest_V02_70, HiForest_V02_69, HiForest_V02_68, HiForest_V02_67, HiForest_V02_66, HiForest_V02_65, HiForest_V02_64, HiForest_V02_63, HiForest_V02_62, HiForest_V02_61, HiForest_V02_60, HiForest_V02_59, HiForest_V02_58, HiForest_V02_57, HiForest_V02_56, HiForest_V02_55, HiForest_V02_54, HiForest_V02_53, HiForest_V02_52, HiForest_V02_51, HiForest_V02_50, HiForest_V02_49, HiForest_V02_48, HiForest_V02_47, HiForest_V02_46, HiForest_V02_45, HiForest_V02_44, HiForest_V02_43, HiForest_V02_42, HiForest_V02_41, HiForest_V02_40, HiForest_V02_39, HiForest_V02_38, HiForest_V02_37, HiForest_V02_36, HiForest_V02_35, HiForest_V02_34, HiForest_V02_33, HiForest_V02_32, HiForest_V02_31, HiForest_V02_30, HiForest_V02_27, HiForest_V02_26, QM_2012, HiForest_V02_25, HiForest_V02_24, HiForest_V02_23, HiForest_V02_22, HiForest_V02_21, HiForest_V02_20, HiForest_V02_19, HiForest_V02_18, HiForest_V02_17, HiForest_V02_16, HiForest_V02_15, HiForest_V02_14, HEAD
Branch point for: branch_44x
Log Message:
fixes

File Contents

# Content
1 import FWCore.ParameterSet.Config as cms
2
3 # Turn of MC dependence in pat sequence
4 def removePatMCMatch(process):
5 process.prod.remove(process.genPartons)
6 process.prod.remove(process.heavyIonCleanedGenJets)
7 process.prod.remove(process.hiPartons)
8 process.prod.remove(process.patJetGenJetMatch)
9 process.prod.remove(process.patJetPartonMatch)
10
11 process.patJets.addGenPartonMatch = False
12 process.patJets.embedGenPartonMatch = False
13 process.patJets.genPartonMatch = ''
14 process.patJets.addGenJetMatch = False
15 process.patJets.genJetMatch = ''
16 process.patJets.getJetMCFlavour = False
17 process.patJets.JetPartonMapSource = ''
18 return process
19
20 # Top Config to turn off all mc dependence
21 def disableMC(process):
22 process.prod.remove(process.heavyIon)
23 removePatMCMatch(process)
24 return process
25
26 def hltFromREDIGI(process):
27 process.hltanalysis.HLTProcessName = "REDIGI"
28 process.hltanalysis.l1GtObjectMapRecord = cms.InputTag("hltL1GtObjectMap::REDIGI")
29 process.hltanalysis.l1GtReadoutRecord = cms.InputTag("hltGtDigis::REDIGI")
30 process.hltanalysis.hltresults = cms.InputTag("TriggerResults::REDIGI")
31 return process
32
33 def overrideBeamSpot(process):
34 process.GlobalTag.toGet = cms.VPSet(
35 cms.PSet(record = cms.string("BeamSpotObjectsRcd"),
36 tag = cms.string("Realistic2.76ATeVCollisions_STARTUP_v0_mc"),
37 connect = cms.untracked.string("frontier://FrontierProd/CMS_COND_31X_BEAMSPOT")
38 ),
39 )
40 return process
41
42
43 def addRPFlat(process):
44 process.GlobalTag.toGet.extend([
45 cms.PSet(record = cms.string("HeavyIonRPRcd"),
46 tag = cms.string("RPFlatParams_Test_v0_offline"),
47 connect = cms.untracked.string("frontier://FrontierPrep/CMS_COND_TEMP"),
48 ),
49 ])
50 return process
51
52
53 def overrideGlobalTag(process):
54 process.GlobalTag.toGet.extend([
55
56 #==================== MC Tables ====================
57 cms.PSet(record = cms.string("HeavyIonRcd"),
58 tag = cms.string("CentralityTable_HFhits40_AMPTOrgan_v0_offline"),
59 connect = cms.untracked.string("frontier://FrontierProd/CMS_COND_31X_PHYSICSTOOLS"),
60 label = cms.untracked.string("HFhitsAMPT_Organ")
61 ),
62 cms.PSet(record = cms.string("HeavyIonRcd"),
63 tag = cms.string("CentralityTable_PixelHits40_AMPTOrgan_v0_offline"),
64 connect = cms.untracked.string("frontier://FrontierProd/CMS_COND_31X_PHYSICSTOOLS"),
65 label = cms.untracked.string("PixelHitsAMPT_Organ")
66 ),
67
68 cms.PSet(record = cms.string("HeavyIonRcd"),
69 tag = cms.string("CentralityTable_HFhits40_HydjetBass_vv44x04_mc"),
70 connect = cms.untracked.string("frontier://FrontierProd/CMS_COND_31X_PHYSICSTOOLS"),
71 label = cms.untracked.string("HFhitsHydjet_Bass")
72 ),
73 cms.PSet(record = cms.string("HeavyIonRcd"),
74 tag = cms.string("CentralityTable_PixelHits40_HydjetBass_vv44x04_mc"),
75 connect = cms.untracked.string("frontier://FrontierProd/CMS_COND_31X_PHYSICSTOOLS"),
76 label = cms.untracked.string("PixelHitsHydjet_Bass")
77 ),
78 cms.PSet(record = cms.string("HeavyIonRcd"),
79 tag = cms.string("CentralityTable_Tracks40_HydjetBass_vv44x04_mc"),
80 connect = cms.untracked.string("frontier://FrontierProd/CMS_COND_31X_PHYSICSTOOLS"),
81 label = cms.untracked.string("TracksHydjet_Bass")
82 ),
83 cms.PSet(record = cms.string("HeavyIonRcd"),
84 tag = cms.string("CentralityTable_PixelTracks40_HydjetBass_vv44x04_mc"),
85 connect = cms.untracked.string("frontier://FrontierProd/CMS_COND_31X_PHYSICSTOOLS"),
86 label = cms.untracked.string("PixelTracksHydjet_Bass")
87 ),
88
89 cms.PSet(record = cms.string("HeavyIonRcd"),
90 tag = cms.string("CentralityTable_HFtowers40_HydjetBass_vv44x04_mc"),
91 connect = cms.untracked.string("frontier://FrontierProd/CMS_COND_31X_PHYSICSTOOLS"),
92 label = cms.untracked.string("HFtowersHydjet_Bass")
93 ),
94
95
96 cms.PSet(record = cms.string("HeavyIonRcd"),
97 tag = cms.string("CentralityTable_HFhits40_HydjetDrum_vv44x05_mc"),
98 connect = cms.untracked.string("frontier://FrontierProd/CMS_COND_31X_PHYSICSTOOLS"),
99 label = cms.untracked.string("HFhitsHydjet_Drum")
100 ),
101 cms.PSet(record = cms.string("HeavyIonRcd"),
102 tag = cms.string("CentralityTable_PixelHits40_HydjetDrum_vv44x05_mc"),
103 connect = cms.untracked.string("frontier://FrontierProd/CMS_COND_31X_PHYSICSTOOLS"),
104 label = cms.untracked.string("PixelHitsHydjet_Drum")
105 ),
106 cms.PSet(record = cms.string("HeavyIonRcd"),
107 tag = cms.string("CentralityTable_Tracks40_HydjetDrum_vv44x05_mc"),
108 connect = cms.untracked.string("frontier://FrontierProd/CMS_COND_31X_PHYSICSTOOLS"),
109 label = cms.untracked.string("TracksHydjet_Drum")
110 ),
111 cms.PSet(record = cms.string("HeavyIonRcd"),
112 tag = cms.string("CentralityTable_PixelTracks40_HydjetDrum_vv44x05_mc"),
113 connect = cms.untracked.string("frontier://FrontierProd/CMS_COND_31X_PHYSICSTOOLS"),
114 label = cms.untracked.string("PixelTracksHydjet_Drum")
115 ),
116
117 cms.PSet(record = cms.string("HeavyIonRcd"),
118 tag = cms.string("CentralityTable_HFtowers40_HydjetDrum_vv44x05_mc"),
119 connect = cms.untracked.string("frontier://FrontierProd/CMS_COND_31X_PHYSICSTOOLS"),
120 label = cms.untracked.string("HFtowersHydjet_Drum")
121 ),
122
123 #==================== JET CORRECTIONS
124
125 cms.PSet(record = cms.string("JetCorrectionsRecord"),
126 # tag = cms.string("JetCorrectorParametersCollection_HI_PFTowers_hiGoodTightTracks_PythiaZ2_442p5_AK1PF"),
127 # connect = cms.untracked.string("sqlite_file:JEC_HI2760_CMSSW442pa9_2012.db"),
128 # connect = cms.untracked.string("sqlite_file:JEC_HI2760_CMSSW501_2012.db"),
129
130 tag = cms.string("JetCorrectorParametersCollection_AK1PFTowers_hiIterativeTracks_HI_2760GeV_v3_offline"),
131 connect = cms.untracked.string("frontier://FrontierProd/CMS_COND_31X_PHYSICSTOOLS"),
132
133
134 label = cms.untracked.string("AK1PF_hiIterativeTracks")
135 ),
136 cms.PSet(record = cms.string("JetCorrectionsRecord"),
137 tag = cms.string("JetCorrectorParametersCollection_AK2PFTowers_hiIterativeTracks_HI_2760GeV_v3_offline"),
138 connect = cms.untracked.string("frontier://FrontierProd/CMS_COND_31X_PHYSICSTOOLS"),
139 label = cms.untracked.string("AK2PF_hiIterativeTracks")
140 ),
141 cms.PSet(record = cms.string("JetCorrectionsRecord"),
142 tag = cms.string("JetCorrectorParametersCollection_AK3PFTowers_hiIterativeTracks_HI_2760GeV_v3_offline"),
143 connect = cms.untracked.string("frontier://FrontierProd/CMS_COND_31X_PHYSICSTOOLS"),
144 label = cms.untracked.string("AK3PF_hiIterativeTracks")
145 ),
146 cms.PSet(record = cms.string("JetCorrectionsRecord"),
147 tag = cms.string("JetCorrectorParametersCollection_AK4PFTowers_hiIterativeTracks_HI_2760GeV_v3_offline"),
148 connect = cms.untracked.string("frontier://FrontierProd/CMS_COND_31X_PHYSICSTOOLS"),
149 label = cms.untracked.string("AK4PF_hiIterativeTracks")
150 ),
151 cms.PSet(record = cms.string("JetCorrectionsRecord"),
152 tag = cms.string("JetCorrectorParametersCollection_AK5PFTowers_hiIterativeTracks_HI_2760GeV_v3_offline"),
153 connect = cms.untracked.string("frontier://FrontierProd/CMS_COND_31X_PHYSICSTOOLS"),
154 label = cms.untracked.string("AK5PF_hiIterativeTracks")
155 ),
156 cms.PSet(record = cms.string("JetCorrectionsRecord"),
157 tag = cms.string("JetCorrectorParametersCollection_AK6PFTowers_hiIterativeTracks_HI_2760GeV_v3_offline"),
158 connect = cms.untracked.string("frontier://FrontierProd/CMS_COND_31X_PHYSICSTOOLS"),
159 label = cms.untracked.string("AK6PF_hiIterativeTracks")
160 ),
161
162 cms.PSet(record = cms.string("JetCorrectionsRecord"),
163 tag = cms.string("JetCorrectorParametersCollection_AK1Calo_HI_2760GeV_v3_offline"),
164 connect = cms.untracked.string("frontier://FrontierProd/CMS_COND_31X_PHYSICSTOOLS"),
165 label = cms.untracked.string("AK1Calo_HI")
166 ),
167 cms.PSet(record = cms.string("JetCorrectionsRecord"),
168 tag = cms.string("JetCorrectorParametersCollection_AK2Calo_HI_2760GeV_v3_offline"),
169 connect = cms.untracked.string("frontier://FrontierProd/CMS_COND_31X_PHYSICSTOOLS"),
170 label = cms.untracked.string("AK2Calo_HI")
171 ),
172 cms.PSet(record = cms.string("JetCorrectionsRecord"),
173 tag = cms.string("JetCorrectorParametersCollection_AK3Calo_HI_2760GeV_v3_offline"),
174 connect = cms.untracked.string("frontier://FrontierProd/CMS_COND_31X_PHYSICSTOOLS"),
175 label = cms.untracked.string("AK3Calo_HI")
176 ),
177 cms.PSet(record = cms.string("JetCorrectionsRecord"),
178 tag = cms.string("JetCorrectorParametersCollection_AK4Calo_HI_2760GeV_v3_offline"),
179 connect = cms.untracked.string("frontier://FrontierProd/CMS_COND_31X_PHYSICSTOOLS"),
180 label = cms.untracked.string("AK4Calo_HI")
181 ),
182 cms.PSet(record = cms.string("JetCorrectionsRecord"),
183 tag = cms.string("JetCorrectorParametersCollection_AK5Calo_HI_2760GeV_v3_offline"),
184 connect = cms.untracked.string("frontier://FrontierProd/CMS_COND_31X_PHYSICSTOOLS"),
185 label = cms.untracked.string("AK5Calo_HI")
186 ),
187 cms.PSet(record = cms.string("JetCorrectionsRecord"),
188 tag = cms.string("JetCorrectorParametersCollection_AK6Calo_HI_2760GeV_v3_offline"),
189 connect = cms.untracked.string("frontier://FrontierProd/CMS_COND_31X_PHYSICSTOOLS"),
190 label = cms.untracked.string("AK6Calo_HI")
191 ),
192
193 cms.PSet(record = cms.string("JetCorrectionsRecord"),
194 tag = cms.string("JetCorrectorParametersCollection_IC5Calo_2760GeV_v0_offline"),
195 connect = cms.untracked.string("frontier://FrontierProd/CMS_COND_31X_PHYSICSTOOLS"),
196 label = cms.untracked.string("IC5Calo_2760GeV")
197 ),
198
199 #==================== DATA ONLY, FIXED RUN TAGS =====================================
200 # NOTHING
201 ])
202
203 return process
204
205
206 def overrideCentrality(process):
207 overrideGlobalTag(process)
208 return process
209
210