Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 23:31:10

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("EBTPGTest")
0004 
0005 process.load('Configuration.StandardSequences.Services_cff')
0006 process.load("FWCore.MessageService.MessageLogger_cfi")
0007 process.load('Configuration.EventContent.EventContent_cff')
0008 process.MessageLogger.EBPhaseIITPStudies = dict()
0009 process.MessageLogger.cerr.FwkReport = cms.untracked.PSet(
0010    reportEvery = cms.untracked.int32(1)
0011 )
0012 
0013 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(2000) )
0014 
0015 process.source = cms.Source("PoolSource",
0016 
0017 
0018  fileNames = cms.untracked.vstring(
0019         '/store/relval/CMSSW_9_0_0_pre4/RelValSingleElectronPt35_UP15/GEN-SIM-RECO/90X_mcRun2_asymptotic_v1-v1/10000/C09AD137-73EA-E611-A5F2-0CC47A4D769A.root',
0020         '/store/relval/CMSSW_9_0_0_pre4/RelValSingleElectronPt35_UP15/GEN-SIM-RECO/90X_mcRun2_asymptotic_v1-v1/10000/FE7D0259-73EA-E611-B051-0CC47A4D76B2.root'
0021 ),
0022 
0023 secondaryFileNames= cms.untracked.vstring(
0024         '/store/relval/CMSSW_9_0_0_pre4/RelValSingleElectronPt35_UP15/GEN-SIM-DIGI-RAW-HLTDEBUG/90X_mcRun2_asymptotic_v1-v1/10000/A2D41E53-6CEA-E611-9910-0025905A60B0.root',
0025         '/store/relval/CMSSW_9_0_0_pre4/RelValSingleElectronPt35_UP15/GEN-SIM-DIGI-RAW-HLTDEBUG/90X_mcRun2_asymptotic_v1-v1/10000/E6142211-6DEA-E611-BDD6-0CC47A4D7658.root',
0026         '/store/relval/CMSSW_9_0_0_pre4/RelValSingleElectronPt35_UP15/GEN-SIM-DIGI-RAW-HLTDEBUG/90X_mcRun2_asymptotic_v1-v1/10000/E828680A-6DEA-E611-9CB6-0CC47A78A418.root')
0027 
0028 
0029 # this is the good one 
0030 # two files does not work here 
0031 #fileNames = cms.untracked.vstring(
0032 #'file:root://cmsxrootd.fnal.gov///store/relval/CMSSW_8_1_0_pre9/RelValSingleElectronPt35Extended/GEN-SIM-RECO/81X_mcRun2_asymptotic_v2_2023LReco-v1/10000/421F5CDF-4F53-E611-B5C2-0CC47A4D7686.root',
0033 #'file:root://cmsxrootd.fnal.gov///store/relval/CMSSW_8_1_0_pre9/RelValSingleElectronPt35Extended/GEN-SIM-RECO/81X_mcRun2_asymptotic_v2_2023LReco-v1/10000/72FC7A8C-4E53-E611-95D6-0CC47A78A360.root',
0034 #'file:root://cmsxrootd.fnal.gov///store/relval/CMSSW_8_1_0_pre9/RelValSingleElectronPt35Extended/GEN-SIM-RECO/81X_mcRun2_asymptotic_v2_2023LReco-v1/10000/BACF3CE0-4F53-E611-84E4-0025905A607E.root'
0035 #),
0036 
0037 
0038 #  secondaryFileNames = cms.untracked.vstring(
0039 #'file:root://cmsxrootd.fnal.gov///store/relval/CMSSW_8_1_0_pre9/RelValSingleElectronPt35Extended/GEN-SIM-DIGI-RAW/81X_mcRun2_asymptotic_v2_2023LReco-v1/10000/0E8B87C3-4953-E611-A003-0CC47A4D762A.root'
0040 #'file:root://cmsxrootd.fnal.gov///store/relval/CMSSW_8_1_0_pre9/RelValSingleElectronPt35Extended/GEN-SIM-DIGI-RAW/81X_mcRun2_asymptotic_v2_2023LReco-v1/10000/DED7A979-4A53-E611-B937-0CC47A4D762A.root'#
0041 #)
0042 
0043 
0044 # PU 140 
0045 #fileNames = cms.untracked.vstring(
0046 #'file:root://cmsxrootd.fnal.gov///store/relval/CMSSW_8_1_0_pre11/RelValSingleElectronPt35Extended/GEN-SIM-DIGI-RAW/PU25ns_81X_mcRun2_asymptotic_v5_2023D1PU140-v1/00000/0ADFD7B5-4277-E6#11-8E89-0025905A6132.root',
0047 #'file:root://cmsxrootd.fnal.gov///store/relval/CMSSW_8_1_0_pre11/RelValSingleElectronPt35Extended/GEN-SIM-DIGI-RAW/PU25ns_81X_mcRun2_asymptotic_v5_2023D1PU140-v1/00000/0C8DF598-1977-E6#11-95D4-0025905A612E.root',
0048 #'file:root://cmsxrootd.fnal.gov///store/relval/CMSSW_8_1_0_pre11/RelValSingleElectronPt35Extended/GEN-SIM-DIGI-RAW/PU25ns_81X_mcRun2_asymptotic_v5_2023D1PU140-v1/00000/148A8242-1577-E6#11-B3B6-0025905B855E.root',
0049 #'file:root://cmsxrootd.fnal.gov///store/relval/CMSSW_8_1_0_pre11/RelValSingleElectronPt35Extended/GEN-SIM-DIGI-RAW/PU25ns_81X_mcRun2_asymptotic_v5_2023D1PU140-v1/00000/149D7C35-1577-E6#11-992B-0CC47A745282.root',
0050 #'file:root://cmsxrootd.fnal.gov///store/relval/CMSSW_8_1_0_pre11/RelValSingleElectronPt35Extended/GEN-SIM-DIGI-RAW/PU25ns_81X_mcRun2_asymptotic_v5_2023D1PU140-v1/00000/1874030D-DC76-E6#11-8FA7-0CC47A4C8E14.root',
0051 #'file:root://cmsxrootd.fnal.gov///store/relval/CMSSW_8_1_0_pre11/RelValSingleElectronPt35Extended/GEN-SIM-DIGI-RAW/PU25ns_81X_mcRun2_asymptotic_v5_2023D1PU140-v1/00000/1C51682A-DD76-E6#11-A258-0025905B857A.root',
0052 #'file:root://cmsxrootd.fnal.gov///store/relval/CMSSW_8_1_0_pre11/RelValSingleElectronPt35Extended/GEN-SIM-DIGI-RAW/PU25ns_81X_mcRun2_asymptotic_v5_2023D1PU140-v1/00000/1E7C6756-1677-E6#11-9633-0025905B8560.root',
0053 #'file:root://cmsxrootd.fnal.gov///store/relval/CMSSW_8_1_0_pre11/RelValSingleElectronPt35Extended/GEN-SIM-DIGI-RAW/PU25ns_81X_mcRun2_asymptotic_v5_2023D1PU140-v1/00000/2007B6E9-CA76-E6#11-9B4C-0CC47A745294.root',
0054 #'file:root://cmsxrootd.fnal.gov///store/relval/CMSSW_8_1_0_pre11/RelValSingleElectronPt35Extended/GEN-SIM-DIGI-RAW/PU25ns_81X_mcRun2_asymptotic_v5_2023D1PU140-v1/00000/22926245-C276-E6#11-9F2A-0025905A48B2.root',
0055 #'file:root://cmsxrootd.fnal.gov///store/relval/CMSSW_8_1_0_pre11/RelValSingleElectronPt35Extended/GEN-SIM-DIGI-RAW/PU25ns_81X_mcRun2_asymptotic_v5_2023D1PU140-v1/00000/24EE0F03-D676-E6#11-B94D-0CC47A4C8E46.root',
0056 #'file:root://cmsxrootd.fnal.gov///store/relval/CMSSW_8_1_0_pre11/RelValSingleElectronPt35Extended/GEN-SIM-DIGI-RAW/PU25ns_81X_mcRun2_asymptotic_v5_2023D1PU140-v1/00000/286DC4E9-CB76-E6#11-B41B-0CC47A7452D8.root',
0057 #'file:root://cmsxrootd.fnal.gov///store/relval/CMSSW_8_1_0_pre11/RelValSingleElectronPt35Extended/GEN-SIM-DIGI-RAW/PU25ns_81X_mcRun2_asymptotic_v5_2023D1PU140-v1/00000/28CF1A1C-1877-E6#11-B14F-0025905A60D2.root',
0058 #'file:root://cmsxrootd.fnal.gov///store/relval/CMSSW_8_1_0_pre11/RelValSingleElectronPt35Extended/GEN-SIM-DIGI-RAW/PU25ns_81X_mcRun2_asymptotic_v5_2023D1PU140-v1/00000/2C32E900-E076-E6#11-BA96-0CC47A4C8EA8.root',
0059 #'file:root://cmsxrootd.fnal.gov///store/relval/CMSSW_8_1_0_pre11/RelValSingleElectronPt35Extended/GEN-SIM-DIGI-RAW/PU25ns_81X_mcRun2_asymptotic_v5_2023D1PU140-v1/00000/32FA5232-0D77-E6#11-A420-0025905B861C.root',
0060 #'file:root://cmsxrootd.fnal.gov///store/relval/CMSSW_8_1_0_pre11/RelValSingleElectronPt35Extended/GEN-SIM-DIGI-RAW/PU25ns_81X_mcRun2_asymptotic_v5_2023D1PU140-v1/00000/34E99ED5-1877-E6#11-B092-0CC47A7C3572.root',
0061 #'file:root://cmsxrootd.fnal.gov///store/relval/CMSSW_8_1_0_pre11/RelValSingleElectronPt35Extended/GEN-SIM-DIGI-RAW/PU25ns_81X_mcRun2_asymptotic_v5_2023D1PU140-v1/00000/40AC3F5E-F376-E6#11-BAA2-0CC47A4D76D0.root',
0062 #'file:root://cmsxrootd.fnal.gov///store/relval/CMSSW_8_1_0_pre11/RelValSingleElectronPt35Extended/GEN-SIM-DIGI-RAW/PU25ns_81X_mcRun2_asymptotic_v5_2023D1PU140-v1/00000/46C79DBE-1D77-E6#11-BA00-0025905B8596.root',
0063 #'file:root://cmsxrootd.fnal.gov///store/relval/CMSSW_8_1_0_pre11/RelValSingleElectronPt35Extended/GEN-SIM-DIGI-RAW/PU25ns_81X_mcRun2_asymptotic_v5_2023D1PU140-v1/00000/487702E0-0377-E6#11-B276-0025905B8560.root',
0064 #'file:root://cmsxrootd.fnal.gov///store/relval/CMSSW_8_1_0_pre11/RelValSingleElectronPt35Extended/GEN-SIM-DIGI-RAW/PU25ns_81X_mcRun2_asymptotic_v5_2023D1PU140-v1/00000/48B2905D-EA76-E6#11-977F-0025905B85DC.root',
0065 #'file:root://cmsxrootd.fnal.gov///store/relval/CMSSW_8_1_0_pre11/RelValSingleElectronPt35Extended/GEN-SIM-DIGI-RAW/PU25ns_81X_mcRun2_asymptotic_v5_2023D1PU140-v1/00000/48BA4FF7-D976-E6#11-A309-0CC47A4C8F26.root'
0066 #)
0067 
0068 # Vladimir's file 
0069 #fileNames = cms.untracked.vstring('/store/group/dpg_trigger/comm_trigger/L1Trigger/rekovic/HGCAL/8_2_0/step2_ZEE_100ev_PU200_CMSSW_8_2_0_MinEnergy_0.5_GeV_editedSimCalorimetryEventContent_simEcalUnsuppressedDigis.root')
0070 
0071 
0072 )
0073 
0074 
0075 
0076 # All this stuff just runs the various EG algorithms that we are studying
0077                          
0078 # ---- Global Tag :
0079 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0080 from Configuration.AlCa.GlobalTag import GlobalTag
0081 #process.GlobalTag = GlobalTag(process.GlobalTag, 'PH2_1K_FB_V3::All', '')
0082 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_mc', '')
0083 
0084 # Choose a 2030 geometry!
0085 #process.load('Configuration.Geometry.GeometryExtended2023simReco_cff') # Has CaloTopology, but no ECal endcap, don't use!
0086 ## Not existing in cmssw_8_1_0_pre16 process.load('Configuration.Geometry.GeometryExtended2023GRecoReco_cff') # using this geometry because I'm not sure if the tilted geometry is vetted yet
0087 #process.load('Configuration.Geometry.GeometryExtended2023tiltedReco_cff') # this one good?
0088 
0089 process.load('Configuration.Geometry.GeometryExtended2023D4Reco_cff')
0090 
0091 #process.load('Configuration.Geometry.GeometryExtended2016Reco_cff')
0092 process.load('Configuration.StandardSequences.MagneticField_cff')
0093 #XXX process.load('Configuration.StandardSequences.L1TrackTrigger_cff')
0094 #XXX process.load('Geometry.TrackerGeometryBuilder.StackedTrackerGeometry_cfi')
0095 #XXX process.load('IOMC.EventVertexGenerators.VtxSmearedHLLHC_cfi')
0096 #XXX process.load('IOMC.EventVertexGenerators.VtxSmearedHLLHC_cfi')
0097 
0098 #XXX process.load('Configuration/StandardSequences/L1HwVal_cff')
0099 #XXX process.load('Configuration.StandardSequences.RawToDigi_cff')
0100 #XXX #XXX process.load("SLHCUpgradeSimulations.L1CaloTrigger.SLHCCaloTrigger_cff")
0101 #XXX 
0102 #XXX 
0103 #XXX process.slhccalo = cms.Path( process.RawToDigi)
0104 #XXX 
0105 #XXX 
0106 #XXX # run L1Reco to produce the L1EG objects corresponding
0107 #XXX # to the current trigger
0108 #XXX process.load('Configuration.StandardSequences.L1Reco_cff')
0109 #XXX process.L1Reco = cms.Path( process.l1extraParticles )
0110 #XXX 
0111 #XXX 
0112 #XXX 
0113 #XXX # --------------------------------------------------------------------------------------------
0114 #XXX #
0115 #XXX # ----    Produce the L1EGCrystal clusters (code of Sasha Savin)
0116 #XXX 
0117 #XXX # first you need the ECAL RecHIts :
0118 #XXX process.load('Configuration.StandardSequences.Reconstruction_cff')
0119 #XXX #process.bunchSpacingProducer = cms.EDProducer("BunchSpacingProducer")
0120 #XXX #process.bsProd = cms.Path( process.bunchSpacingProducer )
0121 #XXX #process.reconstruction_step = cms.Path( process.bunchSpacingProducer + process.hbheprereco + process.calolocalreco )
0122 #XXX process.reconstruction_step = cms.Path( process.bunchSpacingProducer + process.hbheUpgradeReco + process.calolocalreco )
0123 
0124 
0125 
0126 process.simEcalEBTriggerPrimitiveDigis = cms.EDProducer("EcalEBTrigPrimProducer",
0127     BarrelOnly = cms.bool(True),
0128 #    barrelEcalDigis = cms.InputTag("simEcalUnsuppressedDigis","","HLT"),
0129 #    barrelEcalDigis = cms.InputTag("simEcalUnsuppressedDigis","ebDigis"),
0130     barrelEcalDigis = cms.InputTag("simEcalDigis","ebDigis"),
0131 #    barrelEcalDigis = cms.InputTag("selectDigi","selectedEcalEBDigiCollection"),
0132     binOfMaximum = cms.int32(6), ## optional from release 200 on, from 1-10
0133     TcpOutput = cms.bool(False),
0134     Debug = cms.bool(False),
0135     Famos = cms.bool(False),
0136     nOfSamples = cms.int32(1)
0137 )
0138 
0139 
0140 
0141 
0142 
0143 process.pNancy = cms.Path( process.simEcalEBTriggerPrimitiveDigis )
0144 
0145 
0146 
0147 process.Out = cms.OutputModule( "PoolOutputModule",
0148     fileName = cms.untracked.string( "EBTP_PhaseII_TESTDF_uncompEt_spikeflag.root" ),
0149     fastCloning = cms.untracked.bool( False ),
0150     outputCommands = cms.untracked.vstring("keep *_EcalEBTrigPrimProducer_*_*",
0151                                            "keep *_TriggerResults_*_*",
0152                                            "keep *_ecalRecHit_EcalRecHitsEB_*",
0153                                            "keep *_simEcalDigis_ebDigis_*",
0154                                            "keep *_selectDigi_selectedEcalEBDigiCollection_*",
0155                                            "keep *_g4SimHits_EcalHitsEB_*",
0156                                            "keep *_simEcalEBTriggerPrimitiveDigis_*_*")
0157 )
0158 
0159 process.end = cms.EndPath( process.Out )
0160 
0161 
0162 
0163 #print process.dumpPython()
0164 #dump_file = open("dump_file.py", "w")
0165 #
0166 
0167