Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:34:59

0001 # PYTHON configuration file for class: CMSDAS11DijetAnalyzer.cc
0002 # Description:  Example of simple EDAnalyzer for dijet mass & dijet spectrum ratio analysis
0003 # Authors: J.P. Chou, Jason St. John
0004 # Date:  01 - January - 2011
0005 import FWCore.ParameterSet.Config as cms
0006 
0007 process = cms.Process("Ana")
0008 process.load("FWCore.MessageService.MessageLogger_cfi")
0009 
0010 
0011 # Which files to use
0012 # 1: data, 10k events
0013 # 2: MC resonance 1.2TeV
0014 # 3: ??
0015 whichfiles = 2;
0016 
0017 if (whichfiles==1):
0018     thefileNames = cms.untracked.vstring('file:/uscms_data/d2/kalanand/dijet-Run2010A-JetMET-Nov4ReReco-9667events.root')
0019 elif (whichfiles==2):
0020     thefileNames = cms.untracked.vstring('/store/mc/Spring10/Qstar_DiJet1200/GEN-SIM-RECO/START3X_V26_S09-v1/0026/6C0BC238-4247-DF11-81D7-E41F1318160C.root',
0021                                       '/store/mc/Spring10/Qstar_DiJet1200/GEN-SIM-RECO/START3X_V26_S09-v1/0025/FE3B276E-1C47-DF11-83B7-00215E22053A.root',
0022                                       '/store/mc/Spring10/Qstar_DiJet1200/GEN-SIM-RECO/START3X_V26_S09-v1/0025/FCD94068-2647-DF11-80FF-E41F131817F8.root',
0023                                       '/store/mc/Spring10/Qstar_DiJet1200/GEN-SIM-RECO/START3X_V26_S09-v1/0025/F843DD92-2647-DF11-9B8F-E41F13181668.root',
0024                                       '/store/mc/Spring10/Qstar_DiJet1200/GEN-SIM-RECO/START3X_V26_S09-v1/0025/F62E9060-1C47-DF11-B431-00215E221BC0.root',
0025                                       '/store/mc/Spring10/Qstar_DiJet1200/GEN-SIM-RECO/START3X_V26_S09-v1/0025/DA63FD75-1C47-DF11-A347-00215E221692.root',
0026                                       '/store/mc/Spring10/Qstar_DiJet1200/GEN-SIM-RECO/START3X_V26_S09-v1/0025/D802BE12-1D47-DF11-9FA1-00215E93D738.root',
0027                                       '/store/mc/Spring10/Qstar_DiJet1200/GEN-SIM-RECO/START3X_V26_S09-v1/0025/D65DA979-1C47-DF11-941C-00215E21DD56.root',
0028                                       '/store/mc/Spring10/Qstar_DiJet1200/GEN-SIM-RECO/START3X_V26_S09-v1/0025/D2647956-1C47-DF11-9C8E-00215E2216EC.root',
0029                                       '/store/mc/Spring10/Qstar_DiJet1200/GEN-SIM-RECO/START3X_V26_S09-v1/0025/D0A03150-1C47-DF11-ACE6-E41F1318099C.root',
0030                                       '/store/mc/Spring10/Qstar_DiJet1200/GEN-SIM-RECO/START3X_V26_S09-v1/0025/CC2D830B-1D47-DF11-966E-E41F13181498.root',
0031                                       '/store/mc/Spring10/Qstar_DiJet1200/GEN-SIM-RECO/START3X_V26_S09-v1/0025/CACB401B-1847-DF11-B9C5-E41F13181D00.root',
0032                                       '/store/mc/Spring10/Qstar_DiJet1200/GEN-SIM-RECO/START3X_V26_S09-v1/0025/CA85A868-2647-DF11-86BA-00215E221818.root',
0033                                       '/store/mc/Spring10/Qstar_DiJet1200/GEN-SIM-RECO/START3X_V26_S09-v1/0025/CA4A0A60-1C47-DF11-836E-00215E21D86A.root',
0034                                       '/store/mc/Spring10/Qstar_DiJet1200/GEN-SIM-RECO/START3X_V26_S09-v1/0025/CA070629-2747-DF11-819C-00215E222790.root',
0035                                       '/store/mc/Spring10/Qstar_DiJet1200/GEN-SIM-RECO/START3X_V26_S09-v1/0025/C0757277-1C47-DF11-90B7-00215E2212D2.root',
0036                                       '/store/mc/Spring10/Qstar_DiJet1200/GEN-SIM-RECO/START3X_V26_S09-v1/0025/BE19E200-1D47-DF11-A019-00215E22200A.root',
0037                                       '/store/mc/Spring10/Qstar_DiJet1200/GEN-SIM-RECO/START3X_V26_S09-v1/0025/AE023D13-1D47-DF11-892F-E41F13181688.root',
0038                                       '/store/mc/Spring10/Qstar_DiJet1200/GEN-SIM-RECO/START3X_V26_S09-v1/0025/AC98A079-1E47-DF11-8842-E41F13180A64.root',
0039                                       '/store/mc/Spring10/Qstar_DiJet1200/GEN-SIM-RECO/START3X_V26_S09-v1/0025/AA56B163-1C47-DF11-BF57-00215E21D570.root',
0040                                       '/store/mc/Spring10/Qstar_DiJet1200/GEN-SIM-RECO/START3X_V26_S09-v1/0025/9E440461-1C47-DF11-AC32-00215E21DBA0.root',
0041                                       '/store/mc/Spring10/Qstar_DiJet1200/GEN-SIM-RECO/START3X_V26_S09-v1/0025/9A160E70-1C47-DF11-AE68-00215E2208EE.root',
0042                                       '/store/mc/Spring10/Qstar_DiJet1200/GEN-SIM-RECO/START3X_V26_S09-v1/0025/96DF3203-1D47-DF11-849B-00215E21D948.root',
0043                                       '/store/mc/Spring10/Qstar_DiJet1200/GEN-SIM-RECO/START3X_V26_S09-v1/0025/9606A290-2647-DF11-A095-E41F13181AB4.root',
0044                                       '/store/mc/Spring10/Qstar_DiJet1200/GEN-SIM-RECO/START3X_V26_S09-v1/0025/9451B34F-1C47-DF11-B75C-E41F13181A5C.root',
0045                                       '/store/mc/Spring10/Qstar_DiJet1200/GEN-SIM-RECO/START3X_V26_S09-v1/0025/80CCEE69-1E47-DF11-9216-00215E2211F4.root',
0046                                       '/store/mc/Spring10/Qstar_DiJet1200/GEN-SIM-RECO/START3X_V26_S09-v1/0025/76B9DA6A-1C47-DF11-B13C-00215E222340.root',
0047                                       '/store/mc/Spring10/Qstar_DiJet1200/GEN-SIM-RECO/START3X_V26_S09-v1/0025/74489C67-2647-DF11-9B52-E41F13181588.root',
0048                                       '/store/mc/Spring10/Qstar_DiJet1200/GEN-SIM-RECO/START3X_V26_S09-v1/0025/6E8FD06A-1C47-DF11-A1DF-00215E21D9F6.root',
0049                                       '/store/mc/Spring10/Qstar_DiJet1200/GEN-SIM-RECO/START3X_V26_S09-v1/0025/6E872979-1C47-DF11-87DE-00215E21D540.root',
0050                                       '/store/mc/Spring10/Qstar_DiJet1200/GEN-SIM-RECO/START3X_V26_S09-v1/0025/646F4C0E-1D47-DF11-9C8E-00215E21D7C8.root',
0051                                       '/store/mc/Spring10/Qstar_DiJet1200/GEN-SIM-RECO/START3X_V26_S09-v1/0025/62D1695A-1C47-DF11-9C53-00215E21D786.root',
0052                                       '/store/mc/Spring10/Qstar_DiJet1200/GEN-SIM-RECO/START3X_V26_S09-v1/0025/5CAAC1A3-1B47-DF11-9B5B-00215E21DBBE.root',
0053                                       '/store/mc/Spring10/Qstar_DiJet1200/GEN-SIM-RECO/START3X_V26_S09-v1/0025/5A173FCA-2547-DF11-8F56-E41F131816A0.root',
0054                                       '/store/mc/Spring10/Qstar_DiJet1200/GEN-SIM-RECO/START3X_V26_S09-v1/0025/5670C812-1D47-DF11-8020-E41F13181890.root',
0055                                       '/store/mc/Spring10/Qstar_DiJet1200/GEN-SIM-RECO/START3X_V26_S09-v1/0025/52597D68-1E47-DF11-B7D1-E41F131816B4.root',
0056                                       '/store/mc/Spring10/Qstar_DiJet1200/GEN-SIM-RECO/START3X_V26_S09-v1/0025/4ECB6F7B-1E47-DF11-833D-E41F131816A0.root',
0057                                       '/store/mc/Spring10/Qstar_DiJet1200/GEN-SIM-RECO/START3X_V26_S09-v1/0025/4EB42E67-1C47-DF11-A1FA-00215E2205AC.root',
0058                                       '/store/mc/Spring10/Qstar_DiJet1200/GEN-SIM-RECO/START3X_V26_S09-v1/0025/4EB42E67-1C47-DF11-A1FA-00215E2205AC.root',
0059                                       '/store/mc/Spring10/Qstar_DiJet1200/GEN-SIM-RECO/START3X_V26_S09-v1/0025/4AEB1C64-1C47-DF11-BA6A-00215E221B48.root',
0060                                       '/store/mc/Spring10/Qstar_DiJet1200/GEN-SIM-RECO/START3X_V26_S09-v1/0025/48CCB914-1D47-DF11-B3D2-E41F13181044.root',
0061                                       '/store/mc/Spring10/Qstar_DiJet1200/GEN-SIM-RECO/START3X_V26_S09-v1/0025/3E489C57-1C47-DF11-A6EC-00215E93ED9C.root',
0062                                       '/store/mc/Spring10/Qstar_DiJet1200/GEN-SIM-RECO/START3X_V26_S09-v1/0025/3C04D1FE-1C47-DF11-8E76-E41F1318170C.root',
0063                                       '/store/mc/Spring10/Qstar_DiJet1200/GEN-SIM-RECO/START3X_V26_S09-v1/0025/3AE57490-2647-DF11-AA52-E41F13181CF8.root',
0064                                       '/store/mc/Spring10/Qstar_DiJet1200/GEN-SIM-RECO/START3X_V26_S09-v1/0025/38AC77A1-1B47-DF11-B015-E41F13181CA4.root',
0065                                       '/store/mc/Spring10/Qstar_DiJet1200/GEN-SIM-RECO/START3X_V26_S09-v1/0025/2AD2CC1E-1847-DF11-BCE3-00215E21D57C.root',
0066                                       '/store/mc/Spring10/Qstar_DiJet1200/GEN-SIM-RECO/START3X_V26_S09-v1/0025/2A4DFD09-1D47-DF11-9D16-00215E2223D6.root',
0067                                       '/store/mc/Spring10/Qstar_DiJet1200/GEN-SIM-RECO/START3X_V26_S09-v1/0025/2A407379-1C47-DF11-A7F2-00215E21DAF2.root',
0068                                       '/store/mc/Spring10/Qstar_DiJet1200/GEN-SIM-RECO/START3X_V26_S09-v1/0025/289FB808-1D47-DF11-A091-00215E222808.root',
0069                                       '/store/mc/Spring10/Qstar_DiJet1200/GEN-SIM-RECO/START3X_V26_S09-v1/0025/28160333-1847-DF11-BAD5-00215E21D702.root',
0070                                       '/store/mc/Spring10/Qstar_DiJet1200/GEN-SIM-RECO/START3X_V26_S09-v1/0025/220A4374-1C47-DF11-9FA1-00215E21DF18.root',
0071                                       '/store/mc/Spring10/Qstar_DiJet1200/GEN-SIM-RECO/START3X_V26_S09-v1/0025/20D4E62F-1847-DF11-8D41-00215E2222A4.root',
0072                                       '/store/mc/Spring10/Qstar_DiJet1200/GEN-SIM-RECO/START3X_V26_S09-v1/0025/1C8DD3A3-1B47-DF11-BAF8-E41F1318168C.root',
0073                                       '/store/mc/Spring10/Qstar_DiJet1200/GEN-SIM-RECO/START3X_V26_S09-v1/0025/169CCA06-1D47-DF11-B2C0-00215E221EEA.root',
0074                                       '/store/mc/Spring10/Qstar_DiJet1200/GEN-SIM-RECO/START3X_V26_S09-v1/0025/102D9F52-1C47-DF11-B437-00215E22181E.root',
0075                                       '/store/mc/Spring10/Qstar_DiJet1200/GEN-SIM-RECO/START3X_V26_S09-v1/0025/0EB6DB6E-1E47-DF11-8D0B-00215E93DCFC.root',
0076                                       '/store/mc/Spring10/Qstar_DiJet1200/GEN-SIM-RECO/START3X_V26_S09-v1/0025/08056A58-1C47-DF11-A42D-00215E21DAAA.root',
0077                                       '/store/mc/Spring10/Qstar_DiJet1200/GEN-SIM-RECO/START3X_V26_S09-v1/0025/06E9D555-1C47-DF11-9E40-00215E2219E6.root',
0078                                       '/store/mc/Spring10/Qstar_DiJet1200/GEN-SIM-RECO/START3X_V26_S09-v1/0024/E2CAFC76-0C47-DF11-9784-00215E93E7DC.root',
0079                                       '/store/mc/Spring10/Qstar_DiJet1200/GEN-SIM-RECO/START3X_V26_S09-v1/0024/94318864-1147-DF11-B2FD-E41F131815B8.root',
0080                                       '/store/mc/Spring10/Qstar_DiJet1200/GEN-SIM-RECO/START3X_V26_S09-v1/0024/66451B78-0C47-DF11-8CB0-00215E93EE44.root',
0081                                       '/store/mc/Spring10/Qstar_DiJet1200/GEN-SIM-RECO/START3X_V26_S09-v1/0024/5A3665E0-1047-DF11-9537-00215E22175E.root'
0082                                       )
0083     
0084 #     fileNames = cms.untracked.vstring('file:/pnfs/cms/WAX/resilient/kalanand/JetSkim/JetSkim_10_1_91x.root',
0085 #                                       'file:/pnfs/cms/WAX/resilient/kalanand/JetSkim/JetSkim_11_1_wXT.root',
0086 #                                       'file:/pnfs/cms/WAX/resilient/kalanand/JetSkim/JetSkim_12_1_MeU.root',
0087 #                                       'file:/pnfs/cms/WAX/resilient/kalanand/JetSkim/JetSkim_13_1_lCw.root',
0088 #                                       'file:/pnfs/cms/WAX/resilient/kalanand/JetSkim/JetSkim_14_1_NmK.root',
0089 #                                       'file:/pnfs/cms/WAX/resilient/kalanand/JetSkim/JetSkim_15_1_aqj.root',
0090 #                                       'file:/pnfs/cms/WAX/resilient/kalanand/JetSkim/JetSkim_16_1_WzF.root',
0091 #                                       'file:/pnfs/cms/WAX/resilient/kalanand/JetSkim/JetSkim_17_1_0Gh.root',
0092 #                                       'file:/pnfs/cms/WAX/resilient/kalanand/JetSkim/JetSkim_18_1_Fch.root',
0093 #                                       'file:/pnfs/cms/WAX/resilient/kalanand/JetSkim/JetSkim_19_1_u0m.root',
0094 #                                       'file:/pnfs/cms/WAX/resilient/kalanand/JetSkim/JetSkim_1_1_I0F.root',
0095 #                                       'file:/pnfs/cms/WAX/resilient/kalanand/JetSkim/JetSkim_20_1_wom.root',
0096 #                                       'file:/pnfs/cms/WAX/resilient/kalanand/JetSkim/JetSkim_21_1_CLq.root',
0097 #                                       'file:/pnfs/cms/WAX/resilient/kalanand/JetSkim/JetSkim_22_1_rCM.root',
0098 #                                       'file:/pnfs/cms/WAX/resilient/kalanand/JetSkim/JetSkim_23_1_6q6.root',
0099 #                                       'file:/pnfs/cms/WAX/resilient/kalanand/JetSkim/JetSkim_24_1_Qq5.root',
0100 #                                       'file:/pnfs/cms/WAX/resilient/kalanand/JetSkim/JetSkim_25_1_miT.root',
0101 #                                       'file:/pnfs/cms/WAX/resilient/kalanand/JetSkim/JetSkim_26_1_OAB.root',
0102 #                                       'file:/pnfs/cms/WAX/resilient/kalanand/JetSkim/JetSkim_27_1_yTU.root',
0103 #                                       'file:/pnfs/cms/WAX/resilient/kalanand/JetSkim/JetSkim_28_1_Dy7.root',
0104 #                                       'file:/pnfs/cms/WAX/resilient/kalanand/JetSkim/JetSkim_29_1_l4l.root',
0105 #                                       'file:/pnfs/cms/WAX/resilient/kalanand/JetSkim/JetSkim_2_1_BNj.root', 
0106 #                                       'file:/pnfs/cms/WAX/resilient/kalanand/JetSkim/JetSkim_30_1_eY4.root',
0107 #                                       'file:/pnfs/cms/WAX/resilient/kalanand/JetSkim/JetSkim_31_1_qgM.root',
0108 #                                       'file:/pnfs/cms/WAX/resilient/kalanand/JetSkim/JetSkim_32_1_rmg.root',
0109 #                                       'file:/pnfs/cms/WAX/resilient/kalanand/JetSkim/JetSkim_33_1_XvI.root',
0110 #                                       'file:/pnfs/cms/WAX/resilient/kalanand/JetSkim/JetSkim_34_1_w34.root',
0111 #                                       'file:/pnfs/cms/WAX/resilient/kalanand/JetSkim/JetSkim_35_1_VHA.root',
0112 #                                       'file:/pnfs/cms/WAX/resilient/kalanand/JetSkim/JetSkim_36_1_y8O.root',
0113 #                                       'file:/pnfs/cms/WAX/resilient/kalanand/JetSkim/JetSkim_37_1_Ohb.root',
0114 #                                       'file:/pnfs/cms/WAX/resilient/kalanand/JetSkim/JetSkim_38_1_FyD.root',
0115 #                                       'file:/pnfs/cms/WAX/resilient/kalanand/JetSkim/JetSkim_39_1_9Pd.root',
0116 #                                       'file:/pnfs/cms/WAX/resilient/kalanand/JetSkim/JetSkim_3_1_CHK.root',
0117 #                                       'file:/pnfs/cms/WAX/resilient/kalanand/JetSkim/JetSkim_40_1_Ee2.root',
0118 #                                       'file:/pnfs/cms/WAX/resilient/kalanand/JetSkim/JetSkim_41_1_o0D.root',
0119 #                                       'file:/pnfs/cms/WAX/resilient/kalanand/JetSkim/JetSkim_42_1_3NF.root',
0120 #                                       'file:/pnfs/cms/WAX/resilient/kalanand/JetSkim/JetSkim_43_1_brY.root',
0121 #                                       'file:/pnfs/cms/WAX/resilient/kalanand/JetSkim/JetSkim_44_1_us7.root',
0122 #                                       'file:/pnfs/cms/WAX/resilient/kalanand/JetSkim/JetSkim_45_1_ILW.root',
0123 #                                       'file:/pnfs/cms/WAX/resilient/kalanand/JetSkim/JetSkim_46_1_8aF.root',
0124 #                                       'file:/pnfs/cms/WAX/resilient/kalanand/JetSkim/JetSkim_47_1_qM4.root',
0125 #                                       'file:/pnfs/cms/WAX/resilient/kalanand/JetSkim/JetSkim_48_1_hRB.root',
0126 #                                       'file:/pnfs/cms/WAX/resilient/kalanand/JetSkim/JetSkim_49_1_IHe.root',
0127 #                                       'file:/pnfs/cms/WAX/resilient/kalanand/JetSkim/JetSkim_4_1_NDL.root', 
0128 #                                       'file:/pnfs/cms/WAX/resilient/kalanand/JetSkim/JetSkim_50_1_jXW.root',
0129 #                                       'file:/pnfs/cms/WAX/resilient/kalanand/JetSkim/JetSkim_51_1_blV.root',
0130 #                                       'file:/pnfs/cms/WAX/resilient/kalanand/JetSkim/JetSkim_52_1_guT.root',
0131 #                                       'file:/pnfs/cms/WAX/resilient/kalanand/JetSkim/JetSkim_53_1_U0e.root',
0132 #                                       'file:/pnfs/cms/WAX/resilient/kalanand/JetSkim/JetSkim_54_1_UuA.root',
0133 #                                       'file:/pnfs/cms/WAX/resilient/kalanand/JetSkim/JetSkim_55_1_ivP.root',
0134 #                                       'file:/pnfs/cms/WAX/resilient/kalanand/JetSkim/JetSkim_56_1_cbL.root',
0135 #                                       'file:/pnfs/cms/WAX/resilient/kalanand/JetSkim/JetSkim_57_1_oDp.root',
0136 #                                       'file:/pnfs/cms/WAX/resilient/kalanand/JetSkim/JetSkim_58_1_ie6.root',
0137 #                                       'file:/pnfs/cms/WAX/resilient/kalanand/JetSkim/JetSkim_59_1_WuS.root',
0138 #                                       'file:/pnfs/cms/WAX/resilient/kalanand/JetSkim/JetSkim_5_1_l5k.root', 
0139 #                                       'file:/pnfs/cms/WAX/resilient/kalanand/JetSkim/JetSkim_60_1_HKs.root',
0140 #                                       'file:/pnfs/cms/WAX/resilient/kalanand/JetSkim/JetSkim_61_1_I4n.root',
0141 #                                       'file:/pnfs/cms/WAX/resilient/kalanand/JetSkim/JetSkim_62_1_QRH.root',
0142 #                                       'file:/pnfs/cms/WAX/resilient/kalanand/JetSkim/JetSkim_63_1_wKO.root',
0143 #                                       'file:/pnfs/cms/WAX/resilient/kalanand/JetSkim/JetSkim_6_1_5wh.root',
0144 #                                       'file:/pnfs/cms/WAX/resilient/kalanand/JetSkim/JetSkim_7_1_pdK.root', 
0145 #                                       'file:/pnfs/cms/WAX/resilient/kalanand/JetSkim/JetSkim_8_1_Tuu.root',
0146 #                                       'file:/pnfs/cms/WAX/resilient/kalanand/JetSkim/JetSkim_9_1_Dcz.root'
0147 #                                       )                          
0148 
0149 #############   Set the number of events #############
0150 process.maxEvents = cms.untracked.PSet(
0151     input = cms.untracked.int32(10000)
0152 )
0153 #############   Define the source file ###############
0154 process.source = cms.Source("PoolSource",
0155 #                             fileNames = cms.untracked.vstring('/store/mc/Fall10/QCD_Pt_80to120_TuneZ2_7TeV_pythia6/GEN-SIM-RECO/START38_V12-v1/0000/FEF4D100-4CCB-DF11-94CB-00E08178C12F.root')
0156                             fileNames = thefileNames
0157                             )          
0158 
0159 ##-------------------- Communicate with the DB -----------------------
0160 process.load('Configuration.StandardSequences.Services_cff')
0161 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0162 process.GlobalTag.globaltag = 'START38_V13::All'
0163 
0164 #############   Include the jet corrections ##########
0165 process.load("JetMETCorrections.Configuration.DefaultJEC_cff")
0166 # set the record's IOV. Must be defined once. Choose ANY correction service. #
0167 
0168 #############   Correct Calo Jets on the fly #########
0169 process.dijetAna = cms.EDAnalyzer("CMSDAS11DijetAnalyzer",
0170                                   jetSrc = cms.InputTag("ak7CaloJets"),
0171                                   vertexSrc = cms.InputTag("offlinePrimaryVertices"),
0172                                   jetCorrections = cms.string("ak7CaloL2L3Residual"),
0173                                   innerDeltaEta = cms.double(0.7),
0174                                   outerDeltaEta = cms.double(1.3),
0175                                   JESbias = cms.double(1.0)
0176 )
0177 
0178 #############   Path       ###########################
0179 process.p = cms.Path(process.dijetAna)
0180 
0181 
0182 #############   Format MessageLogger #################
0183 process.MessageLogger.cerr.FwkReport.reportEvery = 10
0184 
0185 #############  This is how CMS handles output ROOT files #################
0186 process.TFileService = cms.Service(
0187     "TFileService",
0188     fileName = cms.string("histos.root")
0189  )
0190 
0191