File indexing completed on 2024-04-06 12:03:30
0001 import FWCore.ParameterSet.Config as cms
0002
0003 process = cms.Process("FedCablingBuilder")
0004
0005 process.MessageLogger = cms.Service("MessageLogger",
0006 threshold = cms.untracked.string('INFO'),
0007 debugModules = cms.untracked.vstring(''),
0008
0009 destinations = cms.untracked.vstring('cablingBuilder.log')
0010 )
0011
0012 process.source = cms.Source("EmptySource",
0013 numberEventsInRun = cms.untracked.uint32(1),
0014 firstRun = cms.untracked.uint32(1)
0015 )
0016
0017 process.maxEvents = cms.untracked.PSet(
0018 input = cms.untracked.int32(1)
0019 )
0020
0021 process.load("CalibTracker.SiStripESProducers.fake.SiStripFedCablingFakeESSource_cfi")
0022
0023 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0024 BlobStreamerName = cms.untracked.string('TBufferBlobStreamingService'),
0025 DBParameters = cms.PSet(
0026 messageLevel = cms.untracked.int32(2),
0027 authenticationPath = cms.untracked.string('/afs/cern.ch/cms/DB/conddb')
0028 ),
0029 timetype = cms.untracked.string('runnumber'),
0030 connect = cms.string('sqlite_file:SiStripConditionsDBFile.db'),
0031 toPut = cms.VPSet(cms.PSet(
0032 record = cms.string('SiStripFedCablingRcd'),
0033 tag = cms.string('SiStripFedCabling_30X')
0034 ))
0035 )
0036
0037 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0038 from Configuration.AlCa.autoCond import autoCond
0039 process.GlobalTag.globaltag = autoCond['phase1_2022_design']
0040 print("taking geometry from %s" % process.GlobalTag.globaltag.value())
0041 process.load("Configuration.StandardSequences.GeometryDB_cff")
0042
0043 process.SiStripConnectivity = cms.ESProducer("SiStripConnectivity")
0044 process.SiStripRegionConnectivity = cms.ESProducer("SiStripRegionConnectivity",
0045 EtaDivisions = cms.untracked.uint32(20),
0046 PhiDivisions = cms.untracked.uint32(20),
0047 EtaMax = cms.untracked.double(2.5)
0048 )
0049
0050 process.prefer_SiStripConnectivity = cms.ESPrefer("SiStripConnectivity", "sistripconn")
0051 process.prefer_SiStripCabling = cms.ESPrefer("SiStripFedCablingFakeESSource", "siStripFedCabling")
0052
0053 process.fedcablingbuilder = cms.EDAnalyzer("SiStripFedCablingBuilder",
0054 PrintFecCabling = cms.untracked.bool(True),
0055 PrintDetCabling = cms.untracked.bool(True),
0056 PrintRegionCabling = cms.untracked.bool(True)
0057 )
0058
0059 process.p1 = cms.Path(process.fedcablingbuilder)
0060
0061