Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:03:26

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("PEDESTALS")
0004 process.load("Configuration.StandardSequences.MagneticField_cff")
0005 
0006 #process.load("Geometry.TrackerSimData.trackerSimGeometryXML_cfi")
0007 process.load("Configuration.StandardSequences.GeometryDB_cff")
0008 process.load("Geometry.TrackerGeometryBuilder.trackerGeometry_cfi")
0009 process.load("Geometry.TrackerGeometryBuilder.idealForDigiTrackerGeometry_cff")
0010 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0011 process.GlobalTag.globaltag = "MC_31X_V9::All"
0012 
0013 #process.load("Geometry.TrackerNumberingBuilder.trackerNumberingGeometry_cfi")
0014 
0015 process.load("CondTools.SiPixel.SiPixelGainCalibrationService_cfi")
0016 
0017 process.MessageLogger = cms.Service("MessageLogger",
0018     threshold = cms.untracked.string('INFO')
0019 )
0020 
0021 process.source = cms.Source("EmptyIOVSource",
0022     firstValue = cms.uint64(1),
0023     lastValue = cms.uint64(1),
0024     timetype = cms.string('runnumber'),
0025     interval = cms.uint64(1)
0026 )
0027 
0028 process.SiPixelCondObjOfflineBuilder = cms.EDAnalyzer("SiPixelCondObjOfflineBuilder",
0029     process.SiPixelGainCalibrationServiceParameters,
0030     numberOfModules = cms.int32(2000),
0031     deadFraction = cms.double(0.00),
0032     noisyFraction = cms.double(0.00),
0033     appendMode = cms.untracked.bool(False),
0034     rmsGain = cms.double(0.14),
0035     meanGain = cms.double(2.8),
0036     meanPed = cms.double(28.2),
0037     rmsPed = cms.double(2.75),
0038 # separate input for the FPIX. If not entered the default values are used.
0039     rmsGainFPix = cms.untracked.double(0.34),
0040     meanGainFPix = cms.untracked.double(2.8),
0041     meanPedFPix = cms.untracked.double(28.2),
0042     rmsPedFPix = cms.untracked.double(5.75),
0043                                                 
0044     fileName = cms.string('../macros/phCalibrationFit_C0.dat'),
0045     record = cms.string('SiPixelGainCalibrationOfflineRcd'),
0046     secondRocRowGainOffset = cms.double(0.0),
0047     fromFile = cms.bool(False),
0048     secondRocRowPedOffset = cms.double(0.0),
0049     generateColumns = cms.untracked.bool(True)
0050 )
0051 
0052 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0053     BlobStreamerName = cms.untracked.string('TBufferBlobStreamingService'),
0054     DBParameters = cms.PSet(
0055         messageLevel = cms.untracked.int32(3),
0056         authenticationPath = cms.untracked.string('/afs/cern.ch/cms/DB/conddb')
0057     ),
0058     toPut = cms.VPSet(cms.PSet(
0059         record = cms.string('SiPixelGainCalibrationOfflineRcd'),
0060         tag = cms.string('V2_deadpixels_002percent')
0061     )),
0062     connect = cms.string('sqlite_file:./prova.db')
0063 )
0064 
0065 #process.print = cms.OutputModule("AsciiOutputModule")
0066 
0067 process.p = cms.Path(process.SiPixelCondObjOfflineBuilder)
0068 #process.ep = cms.EndPath(process.print)
0069 
0070