Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("ICALIB")
0004 import FWCore.ParameterSet.VarParsing as VarParsing
0005 
0006 options = VarParsing.VarParsing('analysis')
0007 options.register('algorithm',
0008                  2, # default value
0009                  VarParsing.VarParsing.multiplicity.singleton,
0010                  VarParsing.VarParsing.varType.int,
0011                  "Algorithm to populate output sqlite file")
0012 options.parseArguments()
0013 
0014 process.load("Configuration.StandardSequences.Services_cff")
0015 process.RandomNumberGeneratorService.prod = cms.PSet(
0016     initialSeed = cms.untracked.uint32(789341),
0017     engineName = cms.untracked.string('TRandom3')
0018 )
0019 
0020 ## specify detector D88, as the geometry is needed (will take tracker T24)
0021 process.load("Configuration.Geometry.GeometryExtended2026D88_cff")
0022 process.load('Configuration.Geometry.GeometryExtended2026D88Reco_cff')
0023 
0024 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0025 from Configuration.AlCa.GlobalTag import GlobalTag
0026 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase2_realistic_T21', '')
0027 
0028 ###################################################################
0029 # Messages
0030 ###################################################################
0031 process.load('FWCore.MessageService.MessageLogger_cfi')
0032 process.MessageLogger.cerr.enable = False
0033 process.MessageLogger.SiPhase2BadStripChannelBuilder=dict()
0034 process.MessageLogger.SiStripBadStrip=dict()
0035 process.MessageLogger.cout = cms.untracked.PSet(
0036     enable    = cms.untracked.bool(True),
0037     enableStatistics = cms.untracked.bool(True),
0038     threshold = cms.untracked.string("INFO"),
0039     default   = cms.untracked.PSet(limit = cms.untracked.int32(0)),
0040     FwkReport = cms.untracked.PSet(limit = cms.untracked.int32(-1),
0041                                    reportEvery = cms.untracked.int32(1000)
0042                                    ),
0043     SiPhase2BadStripChannelBuilder = cms.untracked.PSet( limit = cms.untracked.int32(-1)),
0044     SiStripBadStrip = cms.untracked.PSet( limit = cms.untracked.int32(-1)),
0045 )
0046 
0047 process.source = cms.Source("EmptyIOVSource",
0048     lastValue = cms.uint64(1),
0049     timetype = cms.string('runnumber'),
0050     firstValue = cms.uint64(1),
0051     interval = cms.uint64(1)
0052 )
0053 
0054 process.maxEvents = cms.untracked.PSet(
0055     input = cms.untracked.int32(1)
0056 )
0057 
0058 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0059     BlobStreamerName = cms.untracked.string('TBufferBlobStreamingService'),
0060     DBParameters = cms.PSet(
0061         authenticationPath = cms.untracked.string('')
0062     ),
0063     timetype = cms.untracked.string('runnumber'),
0064     connect = cms.string('sqlite_file:SiStripBadStripPhase2_T21_v0.db'),
0065     toPut = cms.VPSet(cms.PSet(
0066         record = cms.string('SiStripBadStripRcd'),
0067         tag = cms.string('SiStripBadStripPhase2_T21')
0068     ))
0069 )
0070 
0071 process.prod = cms.EDAnalyzer("SiPhase2BadStripChannelBuilder",                    
0072                               Record = cms.string('SiStripBadStripRcd'),
0073                               SinceAppendMode = cms.bool(True),
0074                               IOVMode = cms.string('Run'),
0075                               printDebug = cms.untracked.bool(False),
0076                               doStoreOnDB = cms.bool(True),
0077                               #popConAlgo = cms.uint32(1), #NAIVE
0078                               #popConAlgo = cms.uint32(2), #RANDOM
0079                               popConAlgo = cms.uint32(options.algorithm), 
0080                               badComponentsFraction = cms.double(0.01)  #1% of bad strips
0081                               #badComponentsFraction = cms.double(0.05)  #5% of bad strips
0082                               #badComponentsFraction = cms.double(0.1)   #10% of bad strips
0083                               )
0084 
0085 #process.print = cms.OutputModule("AsciiOutputModule")
0086 
0087 process.p = cms.Path(process.prod)
0088 #process.ep = cms.EndPath(process.print)