Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 11:56:17

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("write")
0004 process.load("CondCore.CondDB.CondDB_cfi")
0005 
0006 process.maxEvents = cms.untracked.PSet(
0007     input = cms.untracked.int32(1)
0008 )
0009 process.source = cms.Source("EmptySource")
0010 
0011 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0012     process.CondDBSetup,
0013     # Writing to oracle needs the following shell variable setting (in zsh):
0014     # export CORAL_AUTH_PATH=/afs/cern.ch/cms/DB/conddb
0015     # string connect = "oracle://cms_orcoff_int2r/CMS_COND_ALIGNMENT"
0016     timetype = cms.untracked.string('runnumber'),
0017     connect = cms.string('sqlite_file:output.db'),
0018     # untracked uint32 authenticationMethod = 1
0019     toPut = cms.VPSet(cms.PSet(
0020         record = cms.string('GlobalPositionRcd'),
0021         tag = cms.string('IdealGeometry')
0022     ))
0023 )
0024 
0025 process.GlobalPositionRcdWrite = cms.EDAnalyzer("GlobalPositionRcdWrite",
0026 
0027     # setting 'useEulerAngles' to 'True' lets the module interpret the angles
0028     # 'alpha', 'beta' and 'gamma' as Euler angles. This is the original behavior
0029     # of the module. If 'useEulerAngles' is 'False' the angles 'alpha', 'beta'
0030     # and 'gamma' are interpreted as rotations around the X, Y and Z axes,
0031     # respectively.
0032     useEulerAngles = cms.bool(False),
0033 
0034     tracker = cms.PSet(
0035         y = cms.double(0.0),
0036         x = cms.double(0.0),
0037         z = cms.double(0.0),
0038         alpha = cms.double(0.0),
0039         beta = cms.double(0.0),
0040         gamma = cms.double(0.0)
0041     ),
0042     muon = cms.PSet(
0043         y = cms.double(0.0),
0044         x = cms.double(0.0),
0045         z = cms.double(0.0),
0046         alpha = cms.double(0.0),
0047         beta = cms.double(0.0),
0048         gamma = cms.double(0.0)
0049     ),
0050     ecal = cms.PSet(
0051         y = cms.double(0.0),
0052         x = cms.double(0.0),
0053         z = cms.double(0.0),
0054         alpha = cms.double(0.0),
0055         beta = cms.double(0.0),
0056         gamma = cms.double(0.0)
0057     ),
0058     hcal = cms.PSet(
0059         y = cms.double(0.0),
0060         x = cms.double(0.0),
0061         z = cms.double(0.0),
0062         alpha = cms.double(0.0),
0063         beta = cms.double(0.0),
0064         gamma = cms.double(0.0)
0065     ),
0066     calo = cms.PSet(
0067         y = cms.double(0.0),
0068         x = cms.double(0.0),
0069         z = cms.double(0.0),
0070         alpha = cms.double(0.0),
0071         beta = cms.double(0.0),
0072         gamma = cms.double(0.0)
0073     )
0074 )
0075 
0076 process.p = cms.Path(process.GlobalPositionRcdWrite)
0077 process.CondDBSetup.DBParameters.messageLevel = 2
0078 
0079