Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-11-25 03:29:20

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("FedCablingReader")
0004 
0005 process.MessageLogger = cms.Service("MessageLogger",
0006     threshold = cms.untracked.string('INFO'),
0007     debugModules = cms.untracked.vstring(''),
0008     #destinations = cms.untracked.vstring('cout'),
0009     destinations = cms.untracked.vstring('cablingReader.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.poolDBESSource = cms.ESSource("PoolDBESSource",
0022    BlobStreamerName = cms.untracked.string('TBufferBlobStreamingService'),
0023    DBParameters = cms.PSet(
0024         messageLevel = cms.untracked.int32(2),
0025         authenticationPath = cms.untracked.string('/afs/cern.ch/cms/DB/conddb')
0026     ),
0027     timetype = cms.untracked.string('runnumber'),
0028     connect = cms.string('sqlite_file:SiStripConditionsDBFile.db'),
0029     toGet = cms.VPSet(cms.PSet(
0030         record = cms.string('SiStripFedCablingRcd'),
0031         tag = cms.string('SiStripFedCabling_30X')
0032     ))
0033 )
0034 
0035 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0036 from Configuration.AlCa.autoCond import autoCond
0037 process.GlobalTag.globaltag = autoCond['run2_design']
0038 print("taking geometry from %s" % process.GlobalTag.globaltag.value())
0039 process.load("Configuration.StandardSequences.GeometryDB_cff")
0040 
0041 process.SiStripConnectivity = cms.ESProducer("SiStripConnectivity")
0042 process.SiStripRegionConnectivity = cms.ESProducer("SiStripRegionConnectivity",
0043                                                    EtaDivisions = cms.untracked.uint32(20),
0044                                                    PhiDivisions = cms.untracked.uint32(20),
0045                                                    EtaMax = cms.untracked.double(2.5)
0046 )
0047 
0048 process.prefer_SiStripConnectivity = cms.ESPrefer("SiStripConnectivity", "sistripconn")
0049 process.prefer_SiStripCabling = cms.ESPrefer("PoolDBESSource", "poolDBESSource")
0050 
0051 process.fedcablingreader = cms.EDAnalyzer("SiStripFedCablingReader",
0052                                           PrintFecCabling = cms.untracked.bool(True),
0053                                           PrintDetCabling = cms.untracked.bool(True),
0054                                           PrintRegionCabling = cms.untracked.bool(True)
0055 )
0056 
0057 process.p1 = cms.Path(process.fedcablingreader)
0058 
0059