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 
0005 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0006 #process.GlobalTag.globaltag = "FT_R_53_V6C::All" 
0007 process.GlobalTag.globaltag = "GR_R_61_V6::All" # FT_R_42_V13A used in rereco of 2010 cosmics
0008 
0009 process.load("Geometry.TrackerNumberingBuilder.trackerNumberingGeometry_cfi")
0010 process.load("Configuration.Geometry.GeometryIdeal_cff")
0011 #process.load("Geometry.CMSCommonData.cmsIdealGeometryXML_cfi")
0012 process.load("Geometry.TrackerGeometryBuilder.trackerGeometry_cfi")
0013 
0014 
0015 process.load("Alignment.OfflineValidation.TrackerGeometryCompare_cfi")
0016 
0017 process.load("CondCore.DBCommon.CondDBSetup_cfi")
0018 
0019 process.MessageLogger = cms.Service("MessageLogger",
0020     cerr = cms.untracked.PSet(
0021         enable = cms.untracked.bool(False)
0022     ),
0023     cout = cms.untracked.PSet(
0024         enable = cms.untracked.bool(True)
0025     ),
0026     files = cms.untracked.PSet(
0027         detailedInfo = cms.untracked.PSet(
0028 
0029         )
0030     )
0031 )
0032 
0033 process.source = cms.Source("EmptySource")
0034 
0035 process.load("DQM.SiStripCommon.TkHistoMap_cff")
0036 
0037 process.maxEvents = cms.untracked.PSet(
0038     input = cms.untracked.int32(1)
0039 )
0040 process.p = cms.Path(process.TrackerGeometryCompare)
0041 
0042 process.TrackerGeometryCompare.inputROOTFile1 = 'myInputGeometry_mp1260m2.root' 
0043 process.TrackerGeometryCompare.inputROOTFile2 = 'IDEAL' 
0044 
0045 process.TrackerGeometryCompare.outputFile = 'outputComparison_mp1260m2_2012AB.root'
0046 
0047 process.load("CommonTools.UtilAlgos.TFileService_cfi")  
0048 #process.TFileService = cms.Service("TFileService",
0049 #       fileName = cms.string('TkSurfDeform_mp1260m2_2012AB.root') 
0050 #       )
0051 process.TFileService.fileName = cms.string('TkSurfDeform_mp1260m2_2012AB.root') 
0052 
0053 process.TrackerGeometryCompare.levels = ['DetUnit']  
0054 #process.TrackerGeometryCompare.levels = ['Tracker','DetUnit'] 
0055 #process.TrackerGeometryCompare.levels = ['Tracker','TOBBarrel','TIBBarrel','TECEndcap','TECDisk']
0056 #process.TrackerGeometryCompare.levels = ["TPBBarrel","TPEEndcap","TIBBarrel","TIDEndcap","TOBBarrel","TECEndcap"] 
0057 
0058 """
0059 process.TrackerGeometryCompare.writeToDB = True
0060 
0061 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0062    process.CondDBSetup,
0063    timetype = cms.untracked.string('runnumber'),
0064    connect = cms.string('sqlite_file:yourNewTrackerCenteredObject.db'),
0065    toPut = cms.VPSet(cms.PSet(
0066        record = cms.string('TrackerAlignmentRcd'),
0067        tag = cms.string('Alignments')
0068    ),
0069        cms.PSet(
0070            record = cms.string('TrackerAlignmentErrorExtendedRcd'),
0071            tag = cms.string('AlignmentErrorsExtended')
0072        ))
0073 )
0074 """