Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-12-01 03:53:30

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 #    lastRun = cms.untracked.uint32(1),
0010 #    timetype = cms.string('runnumber'),
0011 #    interval = cms.uint32(1),
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 #In case you of conditions missing, or if you want to test a specific GT
0037 #process.GlobalTag.globaltag = 'PRE_DES72_V6'
0038 
0039 print(process.GlobalTag.globaltag)
0040 process.load("Configuration.StandardSequences.GeometryDB_cff")
0041 
0042 #process.load("Configuration.StandardSequences.GeometryIdeal_cff")
0043 
0044 process.QualityReader = cms.ESSource("PoolDBESSource",
0045 #    BlobStreamerName = cms.untracked.string('TBufferBlobStreamingService'),
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             #tag = cms.string("trivial_LorentzAngle")
0054             #tag = cms.string("SiPixelLorentzAngle_v1")
0055             tag = cms.string("SiPixelLorentzAngle_2015_v2")
0056         ),
0057 #       cms.PSet(
0058 #           record = cms.string("SiPixelLorentzAngleSimRcd"),
0059 #           tag = cms.string("trivial_LorentzAngle_Sim")
0060 #       )
0061     ),
0062     connect = cms.string('sqlite_file:siPixelLorentzAngle.db')
0063     #connect = cms.string('sqlite_file:prova_LA_2012_IOV7.db')
0064     #connect = cms.string('sqlite_file:/afs/cern.ch/user/h/hidaspal/public/tracker/SiPixelLorentzAngle/pixelLorentzAngle_original_private_production_stuff/mytest/prova_LA_2012_IOV7.db')
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 #process.p = cms.Path(process.LorentzAngleReader*process.LorentzAngleSimReader)
0085 process.p = cms.Path(process.LorentzAngleReader)
0086 
0087