Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-11-17 01:40:52

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("SiPixelInclusiveBuilder")
0004 process.load("Configuration.StandardSequences.MagneticField_cff")
0005 
0006 process.load("Geometry.TrackerSimData.trackerSimGeometryXML_cfi")
0007 
0008 process.load("Geometry.TrackerGeometryBuilder.trackerGeometry_cfi")
0009 
0010 process.load("Geometry.TrackerNumberingBuilder.trackerNumberingGeometry_cfi")
0011 
0012 process.load("CondTools.SiPixel.SiPixelGainCalibrationService_cfi")
0013 
0014 process.load("CondCore.CondDB.CondDB_cfi")
0015 
0016 process.source = cms.Source("EmptyIOVSource",
0017     firstValue = cms.uint64(1),
0018     lastValue = cms.uint64(1),
0019     timetype = cms.string('runnumber'),
0020     interval = cms.uint64(1)
0021 )
0022 
0023 process.maxEvents = cms.untracked.PSet(
0024     input = cms.untracked.int32(1)
0025 )
0026 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0027     BlobStreamerName = cms.untracked.string('TBufferBlobStreamingService'),
0028     DBParameters = cms.PSet(
0029         authenticationPath = cms.untracked.string('/afs/cern.ch/cms/DB/conddb'),
0030         connectionRetrialPeriod = cms.untracked.int32(10),
0031         idleConnectionCleanupPeriod = cms.untracked.int32(10),
0032         messageLevel = cms.untracked.int32(3),
0033         enablePoolAutomaticCleanUp = cms.untracked.bool(False),
0034         enableConnectionSharing = cms.untracked.bool(True),
0035         connectionRetrialTimeOut = cms.untracked.int32(60),
0036         connectionTimeOut = cms.untracked.int32(0),
0037         enableReadOnlySessionOnUpdateConnection = cms.untracked.bool(False)
0038     ),
0039     timetype = cms.untracked.string('runnumber'),
0040 #    connect = cms.string('oracle://cms_orcoff_int2r/CMS_COND_PIXEL'),
0041                                           connect = cms.string('sqlite_file:prova.db'),
0042     toPut = cms.VPSet(cms.PSet(
0043         record = cms.string('SiPixelFedCablingMapRcd'),
0044         tag = cms.string('SiPixelFedCablingMap_v14')
0045     ), 
0046         cms.PSet(
0047             record = cms.string('SiPixelLorentzAngleRcd'),
0048             tag = cms.string('SiPixelLorentzAngle_v01')
0049         ), 
0050         cms.PSet(
0051             record = cms.string('SiPixelGainCalibrationOfflineRcd'),
0052             tag = cms.string('SiPixelGainCalibration_TBuffer_const')
0053         ), 
0054         cms.PSet(
0055             record = cms.string('SiPixelGainCalibrationForHLTRcd'),
0056             tag = cms.string('SiPixelGainCalibration_TBuffer_hlt_const')
0057         ),
0058         cms.PSet(
0059             record = cms.string('SiPixelLorentzAngleSimRcd'),
0060             tag = cms.string('SiPixelLorentzAngle_v01')
0061         ), 
0062         cms.PSet(
0063             record = cms.string('SiPixelGainCalibrationOfflineSimRcd'),
0064             tag = cms.string('SiPixelGainCalibration_TBuffer_const')
0065         ), 
0066         cms.PSet(
0067             record = cms.string('SiPixelGainCalibrationForHLTSimRcd'),
0068             tag = cms.string('SiPixelGainCalibration_TBuffer_hlt_const')
0069         ))
0070 )
0071 
0072 process.PixelToLNKAssociateFromAsciiESProducer = cms.ESProducer("PixelToLNKAssociateFromAsciiESProducer",
0073     fileName = cms.string('pixelToLNK.ascii')
0074 )
0075 
0076 process.MapWriter = cms.EDAnalyzer("SiPixelFedCablingMapWriter",
0077     record = cms.string('SiPixelFedCablingMapRcd'),
0078     associator = cms.untracked.string('PixelToLNKAssociateFromAscii')
0079 )
0080 
0081 process.SiPixelLorentzAngle = cms.EDAnalyzer("SiPixelLorentzAngleDB",
0082     magneticField = cms.double(3.8)
0083 )
0084 process.SiPixelLorentzAngleSim = cms.EDAnalyzer("SiPixelLorentzAngleDB",
0085                                               magneticField = cms.double(3.8),
0086                                               record=cms.untracked.string("SiPixelLorentzAngleSimRcd")
0087 )
0088 
0089 process.SiPixelCondObjOfflineBuilder = cms.EDAnalyzer("SiPixelCondObjOfflineBuilder",
0090     process.SiPixelGainCalibrationServiceParameters,
0091     numberOfModules = cms.int32(2000),
0092     deadFraction = cms.double(0.0),
0093     appendMode = cms.untracked.bool(False),
0094     rmsGain = cms.double(0.14),
0095     meanGain = cms.double(2.8),
0096     meanPed = cms.double(28.2),
0097     fileName = cms.string('../macros/phCalibrationFit_C0.dat'),
0098     record = cms.string('SiPixelGainCalibrationOfflineRcd'),
0099     secondRocRowGainOffset = cms.double(0.0),
0100     rmsPed = cms.double(2.75),
0101     fromFile = cms.bool(False),
0102     secondRocRowPedOffset = cms.double(0.0),
0103     noisyFraction = cms.double(0.0)
0104 )
0105 
0106 process.SiPixelCondObjOfflineSimBuilder = cms.EDAnalyzer("SiPixelCondObjOfflineBuilder",
0107     process.SiPixelGainCalibrationServiceParameters,
0108     numberOfModules = cms.int32(2000),
0109     deadFraction = cms.double(0.0),
0110     appendMode = cms.untracked.bool(False),
0111     rmsGain = cms.double(0),
0112     meanGain = cms.double(2.8),
0113     meanPed = cms.double(28.2),
0114     fileName = cms.string('../macros/phCalibrationFit_C0.dat'),
0115     record = cms.string('SiPixelGainCalibrationOfflineSimRcd'),
0116     secondRocRowGainOffset = cms.double(0.0),
0117     rmsPed = cms.double(0),
0118     fromFile = cms.bool(False),
0119     secondRocRowPedOffset = cms.double(0.0),
0120     noisyFraction = cms.double(0.0)                                                       
0121 )
0122 
0123 process.SiPixelCondObjForHLTBuilder = cms.EDAnalyzer("SiPixelCondObjForHLTBuilder",
0124     process.SiPixelGainCalibrationServiceParameters,
0125     numberOfModules = cms.int32(2000),
0126     appendMode = cms.untracked.bool(False),
0127     rmsGain = cms.double(0.14),
0128     meanGain = cms.double(0.4),
0129     meanPed = cms.double(50.0),
0130     fileName = cms.string('../macros/phCalibrationFit_C0.dat'),
0131     record = cms.string('SiPixelGainCalibrationForHLTRcd'),
0132     secondRocRowGainOffset = cms.double(0.0),
0133     rmsPed = cms.double(2.75),
0134     fromFile = cms.bool(False),
0135     secondRocRowPedOffset = cms.double(0.0),
0136     deadFraction = cms.double(0.0),
0137     noisyFraction = cms.double(0.0)
0138 )
0139 process.SiPixelCondObjForHLTSimBuilder = cms.EDAnalyzer("SiPixelCondObjForHLTBuilder",
0140     process.SiPixelGainCalibrationServiceParameters,
0141     numberOfModules = cms.int32(2000),
0142     appendMode = cms.untracked.bool(False),
0143     rmsGain = cms.double(0.14),
0144     meanGain = cms.double(0.4),
0145     meanPed = cms.double(50.0),
0146     fileName = cms.string('../macros/phCalibrationFit_C0.dat'),
0147     record = cms.string('SiPixelGainCalibrationForHLTSimRcd'),
0148     secondRocRowGainOffset = cms.double(0.0),
0149     rmsPed = cms.double(2.75),
0150     fromFile = cms.bool(False),
0151     secondRocRowPedOffset = cms.double(0.0),
0152     deadFraction = cms.double(0.0),
0153     noisyFraction = cms.double(0.0)                                                      
0154 )
0155 
0156 #process.print = cms.OutputModule("AsciiOutputModule")
0157 
0158 process.p = cms.Path(process.SiPixelCondObjOfflineBuilder*process.SiPixelCondObjForHLTBuilder)
0159 #process.ep = cms.EndPath(process.print)
0160 
0161