Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:46:08

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("TEST")
0004 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0005 #process.GlobalTag.globaltag = "GR_R_53_V16D::All" 
0006 #process.GlobalTag.globaltag = "START61_V11::All" 
0007 process.GlobalTag.globaltag = "GR_R_61_V7::All" 
0008 #process.GlobalTag.globaltag = "FT_R_53_V6C::All" 
0009 
0010 #process.load("Geometry.CMSCommonData.cmsIdealGeometryXML_cfi")
0011 process.load("Configuration.Geometry.GeometryDB_cff")
0012 process.load("Geometry.TrackerNumberingBuilder.trackerNumberingGeometry_cfi")
0013 process.load("Geometry.TrackerGeometryBuilder.trackerGeometry_cfi")
0014 
0015 
0016 process.load("CondCore.DBCommon.CondDBSetup_cfi")
0017 
0018 process.MessageLogger = cms.Service("MessageLogger",
0019     cerr = cms.untracked.PSet(
0020         enable = cms.untracked.bool(False)
0021     ),
0022     cout = cms.untracked.PSet(
0023         enable = cms.untracked.bool(True)
0024     ),
0025     files = cms.untracked.PSet(
0026         detailedInfo = cms.untracked.PSet(
0027 
0028         )
0029     )
0030 )
0031 
0032 from CondCore.DBCommon.CondDBSetup_cfi import *
0033 
0034 process.ZeroGeom = cms.ESSource("PoolDBESSource",CondDBSetup,
0035         connect = cms.string('sqlite_file:/afs/cern.ch/cms/CAF/CMSALCA/ALCA_TRACKERALIGN/MP/MPproduction/mp1260/jobData/jobm2/alignments_MP.db'), 
0036         timetype = cms.string("runnumber"),
0037         toGet = cms.VPSet(
0038             cms.PSet(record = cms.string('TrackerAlignmentRcd'), 
0039                 tag = cms.string('Alignments')
0040                 ),
0041             ), 
0042         )
0043                             
0044 process.ZeroAPE = cms.ESSource("PoolDBESSource",CondDBSetup,
0045         connect = cms.string('frontier://FrontierProd/CMS_COND_31X_FROM21X'),
0046         timetype = cms.string("runnumber"),
0047         toGet = cms.VPSet(
0048             cms.PSet(
0049                 record = cms.string('TrackerAlignmentErrorExtendedRcd'),
0050                 tag = cms.string('TrackerIdealGeometryErrors210_mc')
0051                 )
0052             )       
0053         )
0054 
0055 process.trackerBowedSensors = cms.ESSource("PoolDBESSource",CondDBSetup,
0056         connect = cms.string('sqlite_file:/afs/cern.ch/cms/CAF/CMSALCA/ALCA_TRACKERALIGN/MP/MPproduction/mp1260/jobData/jobm2/alignments_MP.db'),
0057         toGet = cms.VPSet(
0058             cms.PSet(record = cms.string('TrackerSurfaceDeformationRcd'),
0059                 tag = cms.string('Deformations')
0060                 )
0061             )
0062         )
0063 
0064 #process.prefer("GlobalTag")
0065 process.es_prefer_ZeroGeom = cms.ESPrefer("PoolDBESSource", "ZeroGeom")
0066 process.es_prefer_ZeroAPE = cms.ESPrefer("PoolDBESSource", "ZeroAPE")
0067 process.es_prefer_trackerBowedSensors = cms.ESPrefer("PoolDBESSource", "trackerBowedSensors")
0068 
0069 process.source = cms.Source("EmptySource")
0070 
0071 process.maxEvents = cms.untracked.PSet(
0072         input = cms.untracked.int32(1)
0073         )
0074 
0075 process.dump = cms.EDAnalyzer("TrackerGeometryIntoNtuples",
0076         #outputFile = cms.untracked.string('myInputGeometry_mp1260m2.root'),
0077         outputFile = cms.untracked.string('myInputGeometry_mp1260m2_14feb2013.root'),
0078         #outputFile = cms.untracked.string('myInputGeometry_2012AB.root'),
0079         outputTreename = cms.untracked.string('alignTree')
0080         )
0081 
0082 process.p = cms.Path(process.dump)
0083 
0084