Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:44:50

0001 
0002 import FWCore.ParameterSet.Config as cms
0003 
0004 process = cms.Process("read")
0005 process.load("CondCore.CondDB.CondDB_cfi")
0006 
0007 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0008 process.MessageLogger.cerr.FwkReport.reportEvery = cms.untracked.int32(1000000)
0009 
0010 
0011 process.source = cms.Source("EmptySource",
0012                             numberEventsInRun = cms.untracked.uint32(1), # do not change!
0013                             firstRun = cms.untracked.uint32(1)
0014                             )
0015 process.maxEvents = cms.untracked.PSet(
0016     # with firstRun = 1 and numberEventsInRun = 1 above, this number meanse that we...
0017     input = cms.untracked.int32(200000)  # ...look for runs from 1 to this number
0018     )
0019 
0020 process.GlobalPositionSource = cms.ESSource(
0021     "PoolDBESSource",
0022     process.CondDBSetup,
0023     # Reading from oracle (instead of Frontier) needs the following shell variable setting (in zsh):
0024     # export CORAL_AUTH_PATH=/afs/cern.ch/cms/DB/conddb
0025     # string connect = "oracle://cms_orcoff_int2r/CMS_COND_ALIGNMENT"
0026     # untracked uint32 authenticationMethod = 1
0027     toGet = cms.VPSet(cms.PSet(record = cms.string('GlobalPositionRcd'),
0028 ##                              tag = cms.string('GlobalAlignment_2009_v1_express')
0029 #                               tag = cms.string('GlobalPosition'))
0030                                tag = cms.string('GlobalAlignment_v2_offline'))
0031                       ),
0032     connect = cms.string('frontier://FrontierProd/CMS_COND_31X_ALIGNMENT')
0033 #    connect = cms.string('sqlite_file:output.db')
0034     )
0035 process.GlobalPositionRcdScan = cms.EDAnalyzer(
0036     "GlobalPositionRcdScan",
0037     # defining how the rotation matrix is printed: 'euler', 'align', 'matrix' or 'all'
0038     rotation = cms.string('all')
0039     )
0040 
0041 process.p = cms.Path(process.GlobalPositionRcdScan)
0042 
0043