Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 11:59:59

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("analyze")
0004 process.load("Configuration.StandardSequences.MagneticField_cff")
0005 
0006 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0007 process.GlobalTag.globaltag = 'GR09_31X_V3P::All'
0008 
0009 process.load("Configuration.StandardSequences.GeometryIdeal_cff")
0010 
0011 from CondCore.DBCommon.CondDBSetup_cfi import *
0012 
0013 import CalibTracker.Configuration.Common.PoolDBESSource_cfi
0014 
0015 #Uncomment to change input LA.db file
0016 
0017 #process.SiStripLorentzAngle = cms.ESSource("PoolDBESSource",
0018 #    BlobStreamerName = cms.untracked.string('TBufferBlobStreamingService'),
0019 #    DBParameters = cms.PSet(messageLevel = cms.untracked.int32(2),
0020 #                            authenticationPath = cms.untracked.string('/afs/cern.ch/cms/DB/conddb')
0021 #                            ),
0022 #    toGet = cms.VPSet(cms.PSet(record = cms.string('SiStripLorentzAngleRcd'),
0023 #                               tag = cms.string('SiStripLA_TEST_Layers')
0024 #    )),
0025 #    connect = cms.string('sqlite_file:DB_LA_TEST_Layers.db')
0026 #)
0027 #                                      
0028 #process.es_prefer_SiStripLorentzAngle = cms.ESPrefer("PoolDBESSource","SiStripLorentzAngle")
0029 
0030 process.load("DQMServices.Core.DQM_cfg")
0031 process.DQM.collectorHost = ''
0032 
0033 process.load("Geometry.CMSCommonData.cmsIdealGeometryXML_cfi")
0034 
0035 process.load("CalibTracker.SiStripLorentzAngle.SiStripCalibLorentzAngle_cfi")
0036 
0037 process.TrackerGeometricDetESModule = cms.ESProducer("TrackerGeometricDetESModule",fromDDD = cms.bool(True))
0038 
0039 process.Timing = cms.Service("Timing")
0040 
0041 process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(1))
0042 
0043 process.source = cms.Source("EmptySource",
0044     numberEventsInRun = cms.untracked.uint32(1),
0045     firstRun = cms.untracked.uint32(1)
0046 )
0047 
0048 process.load("FWCore.MessageService.MessageLogger_cfi")
0049 process.MessageLogger.debugModules = cms.untracked.vstring('sistripLACalib')
0050 process.MessageLogger.cerr.enable = False
0051 
0052 process.MessageLogger.files.LACalibDebug_Calib =  cms.untracked.PSet(
0053       threshold = cms.untracked.string('DEBUG'),
0054       noLineBreaks = cms.untracked.bool(False),
0055       DEBUG = cms.untracked.PSet(limit = cms.untracked.int32(0))
0056  )
0057 
0058 process.load("CondCore.DBCommon.CondDBCommon_cfi")
0059 
0060 process.CondDBCommon.connect = 'sqlite_file:DB_LA_TEST_Modules_Calib.db'
0061 
0062 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0063     connect = cms.string('sqlite_file:DB_LA_TEST_Modules_Calib.db'),
0064     timetype = cms.untracked.string('runnumber'),
0065     BlobStreamerName = cms.untracked.string('TBufferBlobStreamingService'),
0066     DBParameters = cms.PSet(authenticationPath = cms.untracked.string('/afs/cern.ch/cms/DB/conddb')),
0067     toPut = cms.VPSet(cms.PSet(
0068     record = cms.string('SiStripLorentzAngleRcd'),
0069         tag = cms.string('SiStripLA_TEST_Modules_Calib')
0070     ))
0071 )
0072 
0073 process.p = cms.Path(process.sistripLACalib)
0074 
0075 process.sistripLACalib.LayerDB = False
0076 process.sistripLACalib.CalibByMC = True
0077 process.sistripLACalib.ModuleFitXMin = -0.5
0078 process.sistripLACalib.ModuleFitXMax = 0.3
0079 process.sistripLACalib.ModuleFit2ITXMin = -0.4
0080 process.sistripLACalib.ModuleFit2ITXMax = 0.2
0081 process.sistripLACalib.p0_guess = -0.1
0082 process.sistripLACalib.p1_guess = 0.5
0083 process.sistripLACalib.p2_guess = 1
0084 process.sistripLACalib.FitCuts_Entries = 1000
0085 process.sistripLACalib.FitCuts_p0 = 10
0086 process.sistripLACalib.FitCuts_p1 = 0.3
0087 process.sistripLACalib.FitCuts_p2 = 1
0088 process.sistripLACalib.FitCuts_chi2 = 10
0089 process.sistripLACalib.FitCuts_ParErr_p0 = 0.001
0090 process.sistripLACalib.GaussFitRange = 0.1
0091 
0092 process.sistripLACalib.fileName = 'Summary_CRAFTREPRO_NEWAL.root'
0093 process.sistripLACalib.out_fileName = 'LA_TEST_Calib.root'
0094 process.sistripLACalib.LA_Report = 'LA_Report_TEST_Calib.txt'
0095 
0096 
0097