Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:12:34

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("ICALIB")
0004 process.load("DQMServices.Core.DQM_cfg")
0005 
0006 process.MessageLogger = cms.Service("MessageLogger",
0007     debugModules = cms.untracked.vstring('*'),
0008     cout = cms.untracked.PSet(
0009         threshold = cms.untracked.string('INFO')
0010     ),
0011     destinations = cms.untracked.vstring('cout')
0012 )
0013 
0014 process.source = cms.Source("EmptyIOVSource",
0015     firstValue = cms.uint64(insertRun),
0016     lastValue = cms.uint64(insertRun),
0017     timetype = cms.string('runnumber'),
0018     interval = cms.uint64(1)
0019 )
0020 
0021 process.maxEvents = cms.untracked.PSet(
0022     input = cms.untracked.int32(1)
0023 )
0024 
0025 process.load("Configuration.StandardSequences.GeometryRecoDB_cff")
0026 
0027 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0028 process.GlobalTag.globaltag = "GR09_R_34X_V2::All"
0029 
0030 #to read information of o2o and cabling
0031 process.BadComponentsOnline = cms.ESSource("PoolDBESSource",
0032     appendToDataLabel = cms.string('online'),
0033     BlobStreamerName = cms.untracked.string('TBufferBlobStreamingService'),
0034     DBParameters = cms.PSet(
0035         authenticationPath = cms.untracked.string('/afs/cern.ch/cms/DB/conddb')
0036     ),
0037     timetype = cms.string('runnumber'),
0038     toGet = cms.VPSet(cms.PSet(
0039         record = cms.string('SiStripFedCablingRcd'),
0040         tag = cms.string('SiStripFedCabling_GR10_v1_hlt')
0041         ),
0042                       cms.PSet(
0043         record = cms.string('SiStripBadChannelRcd'),
0044         tag = cms.string('SiStripBadChannel_FromOnline_GR10_v1_hlt')
0045         )),
0046     connect = cms.string('oracle://cms_orcoff_prod/CMS_COND_31X_STRIP')
0047 )
0048 
0049 process.sistripconn = cms.ESProducer("SiStripConnectivity")
0050 
0051 #to read information of RunInfo
0052 process.poolDBESSourceRunInfo = cms.ESSource("PoolDBESSource",
0053    appendToDataLabel = cms.string('online2'),
0054    BlobStreamerName = cms.untracked.string('TBufferBlobStreamingService'),
0055    DBParameters = cms.PSet(
0056         messageLevel = cms.untracked.int32(2),
0057         authenticationPath = cms.untracked.string('/afs/cern.ch/cms/DB/conddb')
0058     ),
0059     timetype = cms.untracked.string('runnumber'),
0060     connect = cms.string('frontier://PromptProd/CMS_COND_31X_RUN_INFO'),
0061     toGet = cms.VPSet(cms.PSet(
0062         record = cms.string('RunInfoRcd'),
0063         tag = cms.string('runinfo_start_31X_hlt')
0064         )               
0065     )
0066 )
0067 
0068 #to produce ESetup based on o2o, cabling and RunInfo
0069 process.MySSQ = cms.ESProducer("SiStripQualityESProducer",
0070     PrintDebug = cms.untracked.bool(True),
0071     PrintDebugOutput = cms.bool(False),
0072     UseEmptyRunInfo = cms.bool(False),
0073     appendToDataLabel = cms.string('OnlineMasking'),
0074     ReduceGranularity = cms.bool(True),
0075     ThresholdForReducedGranularity = cms.double(0.3),
0076     ListOfRecordToMerge = cms.VPSet(
0077     cms.PSet(
0078        record = cms.string('SiStripBadChannelRcd'),
0079        tag = cms.string('online')
0080     ),
0081     cms.PSet(
0082        record = cms.string('SiStripDetCablingRcd'),
0083        tag = cms.string('')
0084     ),
0085     cms.PSet(
0086        record = cms.string('RunInfoRcd'),
0087        tag = cms.string('online2')
0088     )
0089     )
0090 )
0091 
0092 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0093     BlobStreamerName = cms.untracked.string('TBufferBlobStreamingService'),
0094     DBParameters = cms.PSet(
0095         authenticationPath = cms.untracked.string('/afs/cern.ch/cms/DB/conddb')
0096     ),
0097     timetype = cms.untracked.string('runnumber'),
0098     connect = cms.string('sqlite_file:dbfile.db'),
0099     toPut = cms.VPSet(cms.PSet(
0100         record = cms.string('SiStripBadStrip'),
0101         tag = cms.string('SiStripHotAPVs')
0102     ))
0103 )
0104 
0105 process.prod = cms.EDFilter("SiStripQualityHotStripIdentifierRoot",
0106     OccupancyRootFile = cms.untracked.string('BadAPVOccupancy_insertRun.root'),
0107     WriteOccupancyRootFile = cms.untracked.bool(True),
0108     UseInputDB = cms.untracked.bool(True),
0109     dataLabel=cms.untracked.string('OnlineMasking'),
0110     AlgoParameters = cms.PSet(
0111         AlgoName = cms.string('SiStripBadAPVAlgorithmFromClusterOccupancy'),
0112         OccupancyHisto = cms.untracked.string('ClusterDigiPosition__det__'),
0113         LowOccupancyThreshold  = cms.untracked.double(5),
0114         HighOccupancyThreshold = cms.untracked.double(5),
0115         AbsoluteLowThreshold   = cms.untracked.double(10),
0116         NumberIterations = cms.untracked.uint32(3),
0117         OccupancyThreshold = cms.untracked.double(0.002), #0.0001
0118         NumberOfEvents = cms.untracked.uint32(0),
0119         UseInputDB = cms.untracked.bool(True)
0120     ),
0121     SinceAppendMode = cms.bool(True),
0122     verbosity = cms.untracked.uint32(0),
0123     IOVMode = cms.string('Run'),
0124     Record = cms.string('SiStripBadStrip'),
0125     rootDirPath = cms.untracked.string('Run insertRun/AlCaReco'),
0126     rootFilename = cms.untracked.string('insertCastorPath/insertDataset/insertDQMFile'),
0127     doStoreOnDB = cms.bool(True)
0128 )
0129 
0130 process.out = cms.OutputModule("AsciiOutputModule")
0131 
0132 process.p = cms.Path(process.prod)
0133 process.ep = cms.EndPath(process.out)
0134