Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:28:31

0001 # The following comments couldn't be translated into the new config version:
0002 
0003 #  module o1 = PoolOutputModule { 
0004 #    untracked string fileName = "srp_validation_in.root"
0005 #
0006 #    untracked vstring outputCommands = 
0007 #    {
0008 #     "keep *"
0009 #    }
0010 #  }
0011 
0012 import FWCore.ParameterSet.Config as cms
0013 
0014 process = cms.Process("TpSrp")
0015 
0016 #Geometry
0017 #
0018 #include "Geometry/CMSCommonData/data/cmsSimIdealGeometryXML.cfi"
0019 process.load("Geometry.EcalCommonData.EcalOnly_cfi")
0020 
0021 # Calo geometry service model
0022 process.load("Geometry.CaloEventSetup.CaloGeometry_cff")
0023 
0024 process.load("Geometry.CaloEventSetup.EcalTrigTowerConstituents_cfi")
0025 process.load("Geometry.EcalMapping.EcalMapping_cfi")
0026 process.load("Geometry.EcalMapping.EcalMappingRecord_cfi")
0027 
0028 #Conditions:
0029 #process.load("CalibCalorimetry.Configuration.Ecal_FakeConditions_cff")
0030 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0031 process.GlobalTag.globaltag = 'MC_38Y_V1::All'
0032 
0033 #----------------------------------------------------------------------
0034 #To overwrite Selective readout settings with settings from a local DB (sqllite file): 
0035 # process.GlobalTag.toGet = cms.VPSet(
0036 #      cms.PSet(record = cms.string("EcalSRSettingsRcd"),
0037 #                          tag = cms.string("EcalSRSettings_v00_beam10_mc"),
0038 #                          connect = cms.untracked.string("sqlite_file:EcalSRSettings_v00_beam10_mc.db")
0039 #               )
0040 #      )
0041 #----------------------------------------------------------------------
0042 
0043 process.load("SimCalorimetry.EcalSelectiveReadoutProducers.ecalDigis_cff")
0044 
0045 process.source = cms.Source("PoolSource",
0046     fileNames = cms.untracked.vstring('file://srp_validation_in.root') ##srp_validation_in.root'}
0047 )
0048 
0049 process.MessageLogger = cms.Service("MessageLogger",
0050     destinations = cms.untracked.vstring('cout')
0051 )
0052 
0053 process.RandomNumberGeneratorService = cms.Service("RandomNumberGeneratorService",
0054     sourceSeed = cms.untracked.uint32(135799753)
0055 )
0056 
0057 # Defines Ecal seletive readout validation module, ecalSelectiveReadoutValidation:
0058 process.load("Validation.EcalDigis.ecalSelectiveReadoutValidation_cfi")
0059 process.ecalSelectiveReadoutValidation.outputFile = 'srvalid_hists.root'
0060 process.ecalSelectiveReadoutValidation.ecalDccZs1stSample = 3
0061 process.ecalSelectiveReadoutValidation.dccWeights = [ -1.1865, 0.0195, 0.2900, 0.3477, 0.3008, 0.2266 ]
0062 process.ecalSelectiveReadoutValidation.histDir = ''
0063 process.ecalSelectiveReadoutValidation.histograms = [ 'all' ]
0064 
0065 # DQM services
0066 process.load("DQMServices.Core.DQM_cfg")
0067 process.DQM.collectorHost = ''
0068 
0069 
0070 process.p1 = cms.Path(process.simEcalDigis*process.ecalSelectiveReadoutValidation)
0071 process.simEcalDigis.dumpFlags = 10
0072