File indexing completed on 2024-04-06 12:03:26
0001 from __future__ import print_function
0002 import FWCore.ParameterSet.Config as cms
0003
0004 process = cms.Process("Test")
0005 process.maxEvents = cms.untracked.PSet(
0006 input = cms.untracked.int32(1)
0007 )
0008 process.source = cms.Source("EmptySource",
0009
0010
0011
0012 firstRun = cms.untracked.uint32(1)
0013 )
0014
0015
0016 process.TFileService = cms.Service("TFileService",
0017 fileName = cms.string("siPixelLorentzAngle_histo.root")
0018 )
0019
0020
0021 process.MessageLogger = cms.Service("MessageLogger",
0022 cerr = cms.untracked.PSet(
0023 enable = cms.untracked.bool(False)
0024 ),
0025 cout = cms.untracked.PSet(
0026 enable = cms.untracked.bool(True),
0027 threshold = cms.untracked.string('WARNING')
0028 )
0029 )
0030
0031 process.Timing = cms.Service("Timing")
0032
0033 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0034 from Configuration.AlCa.autoCond import autoCond
0035 process.GlobalTag.globaltag = autoCond['run2_design']
0036
0037
0038
0039 print(process.GlobalTag.globaltag)
0040 process.load("Configuration.StandardSequences.GeometryDB_cff")
0041
0042
0043
0044 process.QualityReader = cms.ESSource("PoolDBESSource",
0045
0046 DBParameters = cms.PSet(
0047 messageLevel = cms.untracked.int32(0),
0048 authenticationPath = cms.untracked.string('')
0049 ),
0050 toGet = cms.VPSet(
0051 cms.PSet(
0052 record = cms.string("SiPixelLorentzAngleRcd"),
0053
0054
0055 tag = cms.string("SiPixelLorentzAngle_2015_v2")
0056 ),
0057
0058
0059
0060
0061 ),
0062 connect = cms.string('sqlite_file:siPixelLorentzAngle.db')
0063
0064
0065 )
0066
0067 process.es_prefer_QualityReader = cms.ESPrefer("PoolDBESSource","QualityReader")
0068
0069 process.LorentzAngleReader = cms.EDAnalyzer("SiPixelLorentzAngleReader",
0070 printDebug = cms.untracked.uint32(10),
0071 useSimRcd = cms.bool(False),
0072 recoLabel = cms.string(""),
0073 simLabel = cms.string("")
0074 )
0075
0076 process.LorentzAngleSimReader = cms.EDAnalyzer("SiPixelLorentzAngleReader",
0077 printDebug = cms.untracked.uint32(10),
0078 useSimRcd = cms.bool(True),
0079 recoLabel = cms.string(""),
0080 simLabel = cms.string("")
0081 )
0082
0083
0084
0085 process.p = cms.Path(process.LorentzAngleReader)
0086
0087