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     cerr = cms.untracked.PSet(
0008         enable = cms.untracked.bool(False)
0009     ),
0010     cout = cms.untracked.PSet(
0011         enable = cms.untracked.bool(True),
0012         threshold = cms.untracked.string('INFO')
0013     ),
0014     debugModules = cms.untracked.vstring('*')
0015 )
0016 
0017 process.source = cms.Source("EmptyIOVSource",
0018     firstValue = cms.uint64(146437),
0019     lastValue = cms.uint64(146437),
0020     timetype = cms.string('runnumber'),
0021     interval = cms.uint64(1)
0022 )
0023 
0024 process.maxEvents = cms.untracked.PSet(
0025     input = cms.untracked.int32(1)
0026 )
0027 
0028 process.load("Configuration.StandardSequences.GeometryRecoDB_cff")
0029 
0030 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0031 process.GlobalTag.globaltag = "GR_E_V13::All" #GR09_R_34X_V2
0032 
0033 #to read information of o2o and cabling
0034 process.BadComponentsOnline = cms.ESSource("PoolDBESSource",
0035     appendToDataLabel = cms.string('online'),
0036     BlobStreamerName = cms.untracked.string('TBufferBlobStreamingService'),
0037     DBParameters = cms.PSet(
0038         authenticationPath = cms.untracked.string('/afs/cern.ch/cms/DB/conddb')
0039     ),
0040     timetype = cms.string('runnumber'),
0041     toGet = cms.VPSet(cms.PSet(
0042         record = cms.string('SiStripFedCablingRcd'),
0043         tag = cms.string('SiStripFedCabling_GR10_v1_hlt')
0044         ),
0045                       cms.PSet(
0046         record = cms.string('SiStripBadChannelRcd'),
0047         tag = cms.string('SiStripBadChannel_FromOnline_GR10_v1_hlt')
0048         )),
0049     connect = cms.string('oracle://cms_orcoff_prod/CMS_COND_31X_STRIP')
0050 )
0051 
0052 process.sistripconn = cms.ESProducer("SiStripConnectivity")
0053 
0054 #to read information of RunInfo
0055 process.poolDBESSourceRunInfo = cms.ESSource("PoolDBESSource",
0056    appendToDataLabel = cms.string('online2'),
0057    BlobStreamerName = cms.untracked.string('TBufferBlobStreamingService'),
0058    DBParameters = cms.PSet(
0059         messageLevel = cms.untracked.int32(2),
0060         authenticationPath = cms.untracked.string('/afs/cern.ch/cms/DB/conddb')
0061     ),
0062     timetype = cms.untracked.string('runnumber'),
0063     connect = cms.string('frontier://PromptProd/CMS_COND_31X_RUN_INFO'),
0064     toGet = cms.VPSet(cms.PSet(
0065         record = cms.string('RunInfoRcd'),
0066         tag = cms.string('runinfo_start_31X_hlt')
0067         )               
0068     )
0069 )
0070 
0071 #to produce ESetup based on o2o, cabling and RunInfo
0072 process.MySSQ = cms.ESProducer("SiStripQualityESProducer",
0073     PrintDebug = cms.untracked.bool(True),
0074     PrintDebugOutput = cms.bool(False),
0075     UseEmptyRunInfo = cms.bool(False),
0076     appendToDataLabel = cms.string('OnlineMasking'),
0077     ReduceGranularity = cms.bool(True),
0078     ThresholdForReducedGranularity = cms.double(0.3),
0079     ListOfRecordToMerge = cms.VPSet(
0080     cms.PSet(
0081        record = cms.string('SiStripBadChannelRcd'),
0082        tag = cms.string('online')
0083     ),
0084     cms.PSet(
0085        record = cms.string('SiStripDetCablingRcd'),
0086        tag = cms.string('')
0087     ),
0088     cms.PSet(
0089        record = cms.string('RunInfoRcd'),
0090        tag = cms.string('online2')
0091    )
0092     )
0093 )
0094 
0095 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0096     BlobStreamerName = cms.untracked.string('TBufferBlobStreamingService'),
0097     DBParameters = cms.PSet(
0098         authenticationPath = cms.untracked.string('/afs/cern.ch/cms/DB/conddb')
0099     ),
0100     timetype = cms.untracked.string('runnumber'),
0101     connect = cms.string('sqlite_file:dbfile.db'),
0102     toPut = cms.VPSet(cms.PSet(
0103         record = cms.string('SiStripBadStrip'),
0104         tag = cms.string('SiStripHotComponents_merged')
0105     ))
0106 )
0107 
0108 process.prod = cms.EDAnalyzer("SiStripQualityHotStripIdentifierRoot",
0109     OccupancyRootFile = cms.untracked.string('BadAPVandStripOccupancy_146437.root'),
0110     WriteOccupancyRootFile = cms.untracked.bool(True), # Ouput File has a size of ~100MB. To suppress writing set parameter to 'False'
0111     DQMHistoOutputFile = cms.untracked.string('DQMHistos.root'),
0112     WriteDQMHistoOutputFile = cms.untracked.bool(True),
0113     UseInputDB = cms.untracked.bool(True),
0114     dataLabel=cms.untracked.string('OnlineMasking'),
0115     OccupancyH_Xmax = cms.untracked.double(1.0),
0116     CalibrationThreshold = cms.untracked.uint32(10000),
0117     AlgoParameters = cms.PSet(
0118         AlgoName = cms.string('SiStripBadAPVandHotStripAlgorithmFromClusterOccupancy'),
0119         OccupancyHisto = cms.untracked.string('ClusterDigiPosition__det__'),
0120         LowOccupancyThreshold  = cms.untracked.double(5),
0121         HighOccupancyThreshold = cms.untracked.double(5),
0122         AbsoluteLowThreshold   = cms.untracked.double(10),
0123         NumberIterations = cms.untracked.uint32(3),
0124         OccupancyThreshold = cms.untracked.double(0.002), #0.0001
0125         NumberOfEvents = cms.untracked.uint32(0),
0126         ProbabilityThreshold = cms.untracked.double(1e-07),
0127         MinNumEntriesPerStrip = cms.untracked.uint32(0),
0128         MinNumEntries = cms.untracked.uint32(0),
0129         UseInputDB = cms.untracked.bool(True)
0130     ),
0131     SinceAppendMode = cms.bool(True),
0132     verbosity = cms.untracked.uint32(0),
0133     OccupancyH_Xmin = cms.untracked.double(-0.0005),
0134     IOVMode = cms.string('Run'),
0135     Record = cms.string('SiStripBadStrip'),
0136     rootDirPath = cms.untracked.string('Run 146437/AlCaReco'),
0137     rootFilename = cms.untracked.string('DQM_V0001_DT_R000146437.root'),
0138     doStoreOnDB = cms.bool(True),
0139     OccupancyH_Nbin = cms.untracked.uint32(1001)
0140 )
0141 
0142 process.out = cms.OutputModule("AsciiOutputModule")
0143 
0144 process.p = cms.Path(process.prod)
0145 process.ep = cms.EndPath(process.out)
0146