Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 23:30:11

0001 from __future__ import print_function
0002 import os, sys
0003 import FWCore.ParameterSet.Config as cms
0004 
0005 process = cms.Process("HLTExoticaOfflineAnalysis")
0006 
0007 process.load("HLTriggerOffline.Exotica.ExoticaValidation_cff")
0008 process.load("DQMServices.Components.MEtoEDMConverter_cfi")
0009 
0010 # Decide input data
0011 myinput   = ""
0012 myfileNames = cms.untracked.vstring(
0013     #'/store/relval/CMSSW_7_2_0_pre1/RelValZEE_13/GEN-SIM-RECO/POSTLS172_V1-v1/00000/0A69FE2A-DAFD-E311-9FA2-00261894391C.root',
0014     #'/store/relval/CMSSW_7_2_0_pre1/RelValZEE_13/GEN-SIM-RECO/POSTLS172_V1-v1/00000/4ACF05B1-ABFD-E311-BC8C-0026189438BC.root'
0015     'file:/results_exo_nobptx.root'
0016     )
0017 
0018 for i in range(0,len(sys.argv)):
0019     if str(sys.argv[i])=="_input" and len(sys.argv)>i+1:
0020         myinput = str(sys.argv[i+1])
0021         
0022 print("Using myinput="+myinput)
0023 
0024 if   myinput=="ZEE" :
0025     myfileNames = cms.untracked.vstring(
0026         '/store/relval/CMSSW_7_2_0_pre1/RelValZEE_13/GEN-SIM-RECO/POSTLS172_V1-v1/00000/0A69FE2A-DAFD-E311-9FA2-00261894391C.root',
0027         '/store/relval/CMSSW_7_2_0_pre1/RelValZEE_13/GEN-SIM-RECO/POSTLS172_V1-v1/00000/4ACF05B1-ABFD-E311-BC8C-0026189438BC.root')
0028 
0029 elif myinput=="ZMM" :
0030     myfileNames = cms.untracked.vstring(
0031         '/store/relval/CMSSW_7_2_0_pre1/RelValZMM_13/GEN-SIM-RECO/POSTLS172_V1-v1/00000/12E10345-F9FD-E311-9694-0026189438AE.root',
0032         '/store/relval/CMSSW_7_2_0_pre1/RelValZMM_13/GEN-SIM-RECO/POSTLS172_V1-v1/00000/B25222BF-F9FD-E311-A217-003048FFCBA4.root')
0033 
0034 elif myinput=="ZpEE" :
0035     myfileNames = cms.untracked.vstring(
0036         '/store/relval/CMSSW_7_2_0_pre1/RelValZpEE_2250_13TeV_Tauola/GEN-SIM-RECO/POSTLS172_V1-v1/00000/343EDE59-F9FD-E311-898D-0025905A612A.root',
0037         '/store/relval/CMSSW_7_2_0_pre1/RelValZpEE_2250_13TeV_Tauola/GEN-SIM-RECO/POSTLS172_V1-v1/00000/E2A8B37B-FDFD-E311-8018-002618943849.root')
0038 
0039 elif myinput=="ZpMM" :
0040     myfileNames = cms.untracked.vstring(
0041         '/store/relval/CMSSW_7_2_0_pre1/RelValZpMM_13/GEN-SIM-RECO/POSTLS172_V1-v1/00000/80CB6E2E-0BFE-E311-B644-0025905A4964.root',
0042         '/store/relval/CMSSW_7_2_0_pre1/RelValZpMM_13/GEN-SIM-RECO/POSTLS172_V1-v1/00000/E0547611-00FE-E311-88AB-0025905A48F0.root')
0043 
0044 elif myinput=="PhotonJets" :
0045     myfileNames = cms.untracked.vstring(
0046         '/store/relval/CMSSW_7_2_0_pre1/RelValPhotonJets_Pt_10_13/GEN-SIM-RECO/POSTLS172_V1-v1/00000/6AD79C3F-F9FD-E311-AD0C-0025905A610A.root',
0047         '/store/relval/CMSSW_7_2_0_pre1/RelValPhotonJets_Pt_10_13/GEN-SIM-RECO/POSTLS172_V1-v1/00000/F8CBE44F-F6FD-E311-8F8C-0025905964BC.root')
0048 
0049 elif myinput=="QCD":
0050     myfileNames = cms.untracked.vstring(
0051         '/store/relval/CMSSW_7_2_0_pre1/RelValQCD_FlatPt_15_3000HS_13/GEN-SIM-RECO/POSTLS172_V1-v1/00000/1EB9CDDA-C8FE-E311-9082-0025905A6066.root',
0052        '/store/relval/CMSSW_7_2_0_pre1/RelValQCD_FlatPt_15_3000HS_13/GEN-SIM-RECO/POSTLS172_V1-v1/00000/40620B64-C8FE-E311-86CB-002354EF3BDE.root',
0053        '/store/relval/CMSSW_7_2_0_pre1/RelValQCD_FlatPt_15_3000HS_13/GEN-SIM-RECO/POSTLS172_V1-v1/00000/6065EBCA-C2FE-E311-9CD4-003048FFCB8C.root',
0054        '/store/relval/CMSSW_7_2_0_pre1/RelValQCD_FlatPt_15_3000HS_13/GEN-SIM-RECO/POSTLS172_V1-v1/00000/68B120F8-CAFE-E311-AAA0-0025905A60FE.root',
0055        '/store/relval/CMSSW_7_2_0_pre1/RelValQCD_FlatPt_15_3000HS_13/GEN-SIM-RECO/POSTLS172_V1-v1/00000/72A73941-C8FE-E311-8093-0025905A612C.root',
0056        '/store/relval/CMSSW_7_2_0_pre1/RelValQCD_FlatPt_15_3000HS_13/GEN-SIM-RECO/POSTLS172_V1-v1/00000/7E99AB18-CCFE-E311-9ECD-0025905A607E.root',
0057        '/store/relval/CMSSW_7_2_0_pre1/RelValQCD_FlatPt_15_3000HS_13/GEN-SIM-RECO/POSTLS172_V1-v1/00000/A0A799B8-C7FE-E311-A820-0025905A6122.root',
0058        '/store/relval/CMSSW_7_2_0_pre1/RelValQCD_FlatPt_15_3000HS_13/GEN-SIM-RECO/POSTLS172_V1-v1/00000/AA107A6D-C9FE-E311-B3E4-003048FFCBA4.root',
0059        '/store/relval/CMSSW_7_2_0_pre1/RelValQCD_FlatPt_15_3000HS_13/GEN-SIM-RECO/POSTLS172_V1-v1/00000/B4A2DA31-C7FE-E311-B197-0025905A60A8.root',
0060        '/store/relval/CMSSW_7_2_0_pre1/RelValQCD_FlatPt_15_3000HS_13/GEN-SIM-RECO/POSTLS172_V1-v1/00000/B67E922A-CAFE-E311-86F9-002618943918.root',
0061        '/store/relval/CMSSW_7_2_0_pre1/RelValQCD_FlatPt_15_3000HS_13/GEN-SIM-RECO/POSTLS172_V1-v1/00000/E695A31A-C3FE-E311-B86B-002618943865.root')
0062     
0063 elif myinput=="ZEE_f" :
0064     myfileNames = cms.untracked.vstring(
0065         '/store/relval/CMSSW_7_2_0_pre1/RelValZEE_13/GEN-SIM-RECO/POSTLS172_V1_frozenHLT-v1/00000/0C68F3E2-D300-E411-A2E1-003048FFCC0A.root',
0066         '/store/relval/CMSSW_7_2_0_pre1/RelValZEE_13/GEN-SIM-RECO/POSTLS172_V1_frozenHLT-v1/00000/6A11D18F-D800-E411-A121-0026189438C4.root')
0067 
0068 elif myinput=="ZMM_f" :
0069     myfileNames = cms.untracked.vstring(
0070         '/store/relval/CMSSW_7_2_0_pre1/RelValZMM_13/GEN-SIM-RECO/POSTLS172_V1_frozenHLT-v1/00000/2200CE0D-C600-E411-BF5B-0025905A60B4.root',
0071         '/store/relval/CMSSW_7_2_0_pre1/RelValZMM_13/GEN-SIM-RECO/POSTLS172_V1_frozenHLT-v1/00000/8860B293-DB00-E411-A736-0025905A60D6.root')
0072 
0073 elif myinput=="ZpEE_f" :
0074     myfileNames = cms.untracked.vstring()
0075 
0076 elif myinput=="ZpMM_f" :
0077     myfileNames = cms.untracked.vstring(
0078         '/store/relval/CMSSW_7_2_0_pre1/RelValZpMM_13/GEN-SIM-RECO/POSTLS172_V1_frozenHLT-v1/00000/88067900-C600-E411-B0D4-003048FFD76E.root',
0079         '/store/relval/CMSSW_7_2_0_pre1/RelValZpMM_13/GEN-SIM-RECO/POSTLS172_V1_frozenHLT-v1/00000/BA282D59-C900-E411-B969-0025905A6064.root')
0080 
0081 elif myinput=="PhotonJets_f" :
0082     myfileNames = cms.untracked.vstring(
0083         '/store/relval/CMSSW_7_2_0_pre1/RelValPhotonJets_Pt_10_13/GEN-SIM-RECO/POSTLS172_V1_frozenHLT-v1/00000/90422F57-D900-E411-944B-002590593872.root',
0084         '/store/relval/CMSSW_7_2_0_pre1/RelValPhotonJets_Pt_10_13/GEN-SIM-RECO/POSTLS172_V1_frozenHLT-v1/00000/E0DD9115-BE00-E411-8C70-00261894382D.root')
0085 
0086 elif myinput=="QCD_f":
0087     myfileNames = cms.untracked.vstring(
0088         '/store/relval/CMSSW_7_2_0_pre1/RelValQCD_FlatPt_15_3000HS_13/GEN-SIM-RECO/POSTLS172_V1_frozenHLT-v1/00000/0AE4F4AE-BE00-E411-8E38-00259059649C.root',
0089        '/store/relval/CMSSW_7_2_0_pre1/RelValQCD_FlatPt_15_3000HS_13/GEN-SIM-RECO/POSTLS172_V1_frozenHLT-v1/00000/0CCB8433-C600-E411-AFA1-0025905B85B2.root',
0090        '/store/relval/CMSSW_7_2_0_pre1/RelValQCD_FlatPt_15_3000HS_13/GEN-SIM-RECO/POSTLS172_V1_frozenHLT-v1/00000/24043AB8-BD00-E411-B4A6-003048FFD730.root',
0091        '/store/relval/CMSSW_7_2_0_pre1/RelValQCD_FlatPt_15_3000HS_13/GEN-SIM-RECO/POSTLS172_V1_frozenHLT-v1/00000/28514BA6-BD00-E411-9B9A-002618943860.root',
0092        '/store/relval/CMSSW_7_2_0_pre1/RelValQCD_FlatPt_15_3000HS_13/GEN-SIM-RECO/POSTLS172_V1_frozenHLT-v1/00000/4C0435CC-BD00-E411-8766-002354EF3BD2.root',
0093        '/store/relval/CMSSW_7_2_0_pre1/RelValQCD_FlatPt_15_3000HS_13/GEN-SIM-RECO/POSTLS172_V1_frozenHLT-v1/00000/52BBEE04-DC00-E411-9BDC-003048FFD7D4.root',
0094        '/store/relval/CMSSW_7_2_0_pre1/RelValQCD_FlatPt_15_3000HS_13/GEN-SIM-RECO/POSTLS172_V1_frozenHLT-v1/00000/5E349B87-BE00-E411-B2CA-0025905A609E.root',
0095        '/store/relval/CMSSW_7_2_0_pre1/RelValQCD_FlatPt_15_3000HS_13/GEN-SIM-RECO/POSTLS172_V1_frozenHLT-v1/00000/74B1258C-BF00-E411-91AC-0025905AA9F0.root',
0096        '/store/relval/CMSSW_7_2_0_pre1/RelValQCD_FlatPt_15_3000HS_13/GEN-SIM-RECO/POSTLS172_V1_frozenHLT-v1/00000/8668C7C0-DE00-E411-863D-003048FFD752.root',
0097        '/store/relval/CMSSW_7_2_0_pre1/RelValQCD_FlatPt_15_3000HS_13/GEN-SIM-RECO/POSTLS172_V1_frozenHLT-v1/00000/9A6C429F-BD00-E411-86FE-002618943857.root',
0098        '/store/relval/CMSSW_7_2_0_pre1/RelValQCD_FlatPt_15_3000HS_13/GEN-SIM-RECO/POSTLS172_V1_frozenHLT-v1/00000/ACA31613-BE00-E411-B352-002590596484.root',
0099        '/store/relval/CMSSW_7_2_0_pre1/RelValQCD_FlatPt_15_3000HS_13/GEN-SIM-RECO/POSTLS172_V1_frozenHLT-v1/00000/C65023E5-BD00-E411-963E-0025905A60E4.root',
0100        '/store/relval/CMSSW_7_2_0_pre1/RelValQCD_FlatPt_15_3000HS_13/GEN-SIM-RECO/POSTLS172_V1_frozenHLT-v1/00000/E8DB8D9A-BE00-E411-BA12-003048FFD7C2.root')
0101 
0102 # PU40 25ns
0103 elif   myinput=="ZEE_PU25ns" :
0104     myfileNames = cms.untracked.vstring(
0105         '/store/relval/CMSSW_7_2_0_pre1/RelValZEE_13/GEN-SIM-RECO/PU25ns_POSTLS172_V1-v1/00000/00E2C10F-E6FD-E311-ACE3-0025905A60DA.root',
0106         '/store/relval/CMSSW_7_2_0_pre1/RelValZEE_13/GEN-SIM-RECO/PU25ns_POSTLS172_V1-v1/00000/62F42186-91FD-E311-92E8-0025905A60EE.root',
0107         '/store/relval/CMSSW_7_2_0_pre1/RelValZEE_13/GEN-SIM-RECO/PU25ns_POSTLS172_V1-v1/00000/78D08417-8DFD-E311-B022-0026189438D9.root',
0108         '/store/relval/CMSSW_7_2_0_pre1/RelValZEE_13/GEN-SIM-RECO/PU25ns_POSTLS172_V1-v1/00000/CE1B9922-8BFD-E311-82F5-00259059642E.root',
0109         '/store/relval/CMSSW_7_2_0_pre1/RelValZEE_13/GEN-SIM-RECO/PU25ns_POSTLS172_V1-v1/00000/E468EFE3-E7FD-E311-A9FF-0025905A6088.root')
0110 
0111 elif myinput=="ZMM_PU25ns" :
0112     myfileNames = cms.untracked.vstring()
0113 
0114 elif myinput=="ZpEE_PU25ns" :
0115     myfileNames = cms.untracked.vstring()
0116 
0117 elif myinput=="ZpMM_PU25ns" :
0118     myfileNames = cms.untracked.vstring()
0119 
0120 elif myinput=="ZEE_f_PU25ns" :
0121     myfileNames = cms.untracked.vstring(
0122         '/store/relval/CMSSW_7_2_0_pre1/RelValZEE_13/GEN-SIM-RECO/PU25ns_POSTLS172_V1_frozenHLT-v1/00000/0C0AFEDA-B600-E411-B890-0025905A6094.root',
0123         '/store/relval/CMSSW_7_2_0_pre1/RelValZEE_13/GEN-SIM-RECO/PU25ns_POSTLS172_V1_frozenHLT-v1/00000/684B8352-CC00-E411-B019-0026189438B3.root',
0124         '/store/relval/CMSSW_7_2_0_pre1/RelValZEE_13/GEN-SIM-RECO/PU25ns_POSTLS172_V1_frozenHLT-v1/00000/A872BF63-B800-E411-AC92-003048FFCBA8.root',
0125         '/store/relval/CMSSW_7_2_0_pre1/RelValZEE_13/GEN-SIM-RECO/PU25ns_POSTLS172_V1_frozenHLT-v1/00000/EC7D73CF-D500-E411-926D-002618943886.root',
0126         '/store/relval/CMSSW_7_2_0_pre1/RelValZEE_13/GEN-SIM-RECO/PU25ns_POSTLS172_V1_frozenHLT-v1/00000/F2B7DB47-B500-E411-88B3-0025905A613C.root')
0127     
0128 elif myinput=="ZMM_f_PU25ns" :
0129     myfileNames = cms.untracked.vstring()
0130 
0131 elif myinput=="ZpEE_f_PU25ns" :
0132     myfileNames = cms.untracked.vstring()
0133 
0134 elif myinput=="ZpMM_f_PU25ns" :
0135     myfileNames = cms.untracked.vstring()
0136 
0137 ## PU40 50ns
0138 elif myinput=="ZEE_PU50ns" :
0139     myfileNames = cms.untracked.vstring(
0140         '/store/relval/CMSSW_7_2_0_pre1/RelValZEE_13/GEN-SIM-RECO/PU50ns_POSTLS172_V2-v1/00000/0213DA84-8AFD-E311-A2FB-0026189438FF.root',
0141         '/store/relval/CMSSW_7_2_0_pre1/RelValZEE_13/GEN-SIM-RECO/PU50ns_POSTLS172_V2-v1/00000/10BE77F0-86FD-E311-A7F6-0026189438DF.root',
0142         '/store/relval/CMSSW_7_2_0_pre1/RelValZEE_13/GEN-SIM-RECO/PU50ns_POSTLS172_V2-v1/00000/3410BEEC-E6FD-E311-9D13-0025905A60F4.root',
0143         '/store/relval/CMSSW_7_2_0_pre1/RelValZEE_13/GEN-SIM-RECO/PU50ns_POSTLS172_V2-v1/00000/5471FED0-8CFD-E311-8064-003048FFCB74.root',
0144         '/store/relval/CMSSW_7_2_0_pre1/RelValZEE_13/GEN-SIM-RECO/PU50ns_POSTLS172_V2-v1/00000/C2BECB0F-89FD-E311-83DE-0025905B8610.root')
0145 
0146 elif myinput=="ZMM_PU50ns" :
0147     myfileNames = cms.untracked.vstring()
0148 
0149 elif myinput=="ZpEE_PU50ns" :
0150     myfileNames = cms.untracked.vstring()
0151 
0152 elif myinput=="ZpMM_PU50ns" :
0153     myfileNames = cms.untracked.vstring()
0154 
0155 elif myinput=="ZEE_f_PU50ns" :
0156     myfileNames = cms.untracked.vstring(
0157         '/store/relval/CMSSW_7_2_0_pre1/RelValZEE_13/GEN-SIM-RECO/PU50ns_POSTLS172_V2_frozenHLT-v1/00000/02D5E5C6-BD00-E411-B421-00259059391E.root',
0158         '/store/relval/CMSSW_7_2_0_pre1/RelValZEE_13/GEN-SIM-RECO/PU50ns_POSTLS172_V2_frozenHLT-v1/00000/2817C10B-D600-E411-B17C-002618943939.root',
0159         '/store/relval/CMSSW_7_2_0_pre1/RelValZEE_13/GEN-SIM-RECO/PU50ns_POSTLS172_V2_frozenHLT-v1/00000/547D27A4-C700-E411-8686-0025905A60EE.root',
0160         '/store/relval/CMSSW_7_2_0_pre1/RelValZEE_13/GEN-SIM-RECO/PU50ns_POSTLS172_V2_frozenHLT-v1/00000/58E959E1-BA00-E411-89F8-0025905938A4.root',
0161         '/store/relval/CMSSW_7_2_0_pre1/RelValZEE_13/GEN-SIM-RECO/PU50ns_POSTLS172_V2_frozenHLT-v1/00000/D0F38943-D800-E411-8517-002590593920.root',
0162         '/store/relval/CMSSW_7_2_0_pre1/RelValZEE_13/GEN-SIM-RECO/PU50ns_POSTLS172_V2_frozenHLT-v1/00000/FABFF406-C300-E411-AE96-002618943800.root')
0163 
0164 elif myinput=="ZMM_f_PU50ns" :
0165     myfileNames = cms.untracked.vstring()
0166 
0167 elif myinput=="ZpEE_f_PU50ns" :
0168     myfileNames = cms.untracked.vstring()
0169 
0170 elif myinput=="ZpMM_f_PU50ns" :
0171     myfileNames = cms.untracked.vstring()
0172 
0173 print("### Files : ")
0174 print(myfileNames)
0175 
0176 
0177 ##############################################################################
0178 ##### Templates to change parameters in hltMuonValidator #####################
0179 # process.hltMuonValidator.hltPathsToCheck = ["HLT_IsoMu3"]
0180 # process.hltMuonValidator.genMuonCut = "abs(mother.pdgId) == 24"
0181 # process.hltMuonValidator.recMuonCut = "isGlobalMuon && eta < 1.2"
0182 ##############################################################################
0183 
0184 hltProcessName = "HLT"
0185 process.hltExoticaValidator.hltProcessName = hltProcessName
0186 
0187 process.load("Configuration.StandardSequences.Reconstruction_cff")
0188 process.load("Configuration.StandardSequences.MagneticField_cff")
0189 process.load("Configuration.StandardSequences.GeometryRecoDB_cff")
0190 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0191 from Configuration.AlCa.autoCond import autoCond
0192 process.GlobalTag.globaltag = cms.string(autoCond['startup'])
0193 
0194 process.maxEvents = cms.untracked.PSet(
0195     input = cms.untracked.int32(-1)
0196 )
0197 
0198 process.source = cms.Source("PoolSource", fileNames=myfileNames)
0199 
0200 process.DQMStore = cms.Service("DQMStore")
0201 
0202 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0203 process.MessageLogger.cerr.FwkReport.reportEvery = 1000
0204 
0205 #process.MessageLogger.debugModules += ['HLTExoticaValidator','HLTExoticaSubAnalysis','HLTExoticaPlotter']
0206 process.MessageLogger.debugModules += ['*']
0207 process.MessageLogger.files.ExoticaValidationMessages = cms.untracked.PSet(
0208     threshold       = cms.untracked.string('DEBUG'),
0209     default         = cms.untracked.PSet(limit = cms.untracked.int32(0)),
0210     ExoticaValidation = cms.untracked.PSet(limit = cms.untracked.int32(1000))
0211     )
0212 
0213 
0214 
0215 _messageSettings = cms.untracked.PSet(
0216     reportEvery = cms.untracked.int32(1),
0217     limit = cms.untracked.int32(10000000)
0218     )
0219 
0220 process.MessageLogger.cerr.GetManyWithoutRegistration = _messageSettings
0221 process.MessageLogger.cerr.GetByLabelWithoutRegistration = _messageSettings
0222 
0223 process.out = cms.OutputModule("PoolOutputModule",
0224     outputCommands = cms.untracked.vstring(
0225         'drop *', 
0226         'keep *_MEtoEDMConverter_*_HLTExoticaOfflineAnalysis'),
0227     fileName = cms.untracked.string('hltExoticaValidator'+myinput+'.root')
0228 )
0229 
0230 
0231 process.analyzerpath = cms.Path(
0232     process.ExoticaValidationProdSeq +
0233     process.ExoticaValidationSequence +
0234     process.MEtoEDMConverter
0235 )
0236 
0237 
0238 process.outpath = cms.EndPath(process.out)