Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:09:19

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 
0026 process.load("Configuration.StandardSequences.GeometryRecoDB_cff")
0027 
0028 #process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_noesprefer_cff")
0029 #process.GlobalTag.connect = "frontier://FrontierProd/CMS_COND_21X_GLOBALTAG"
0030 #process.GlobalTag.globaltag = "CRAFT_V3P::All"
0031 #process.es_prefer_GlobalTag = cms.ESPrefer('PoolDBESSource','GlobalTag')
0032 
0033 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0034 process.GlobalTag.globaltag = "CRAFT0831X_V1::All"
0035 
0036 #to read offline info from the first step of the analysis
0037 process.a = cms.ESSource("PoolDBESSource",
0038     appendToDataLabel = cms.string('testa'),
0039     BlobStreamerName = cms.untracked.string('TBufferBlobStreamingService'),
0040     DBParameters = cms.PSet(
0041         authenticationPath = cms.untracked.string('/afs/cern.ch/cms/DB/conddb')
0042     ),
0043     timetype = cms.string('runnumber'),
0044     toGet = cms.VPSet(cms.PSet(
0045         record = cms.string('SiStripBadFiberRcd'),
0046         tag = cms.string('SiStripHotAPVs')
0047     )),
0048     connect = cms.string('sqlite_file:dbfile.db')
0049 )
0050 
0051 #to read information of o2o and cabling
0052 #process.b = cms.ESSource("PoolDBESSource",
0053 #    BlobStreamerName = cms.untracked.string('TBufferBlobStreamingService'),
0054 #    DBParameters = cms.PSet(
0055 #        authenticationPath = cms.untracked.string('/afs/cern.ch/cms/DB/conddb')
0056 #    ),
0057 #    timetype = cms.string('runnumber'),
0058 #    toGet = cms.VPSet(cms.PSet(
0059 #        record = cms.string('SiStripFedCablingRcd'),
0060 #        tag = cms.string('SiStripFedCabling_GR_21X_v2_hlt')
0061 #    ), 
0062 #        cms.PSet(
0063 #            record = cms.string('SiStripBadChannelRcd'),
0064 #            tag = cms.string('SiStripBadChannel_GR_21X_v2_hlt')
0065 #        )),
0066 #    connect = cms.string('oracle://cms_orcoff_prod/CMS_COND_21X_STRIP')
0067 #)
0068 #process.sistripconn = cms.ESProducer("SiStripConnectivity")
0069 ####
0070 #to produce ESetup based on o2o and cabling and offline
0071 process.MySSQ = cms.ESProducer("SiStripQualityESProducer",
0072     PrintDebug = cms.untracked.bool(True),
0073     PrintDebugOutput = cms.bool(False),
0074     UseEmptyRunInfo = cms.bool(False),
0075     appendToDataLabel = cms.string('test'),
0076     ReduceGranularity = cms.bool(True),
0077     ThresholdForReducedGranularity = cms.double(0.3),
0078     ListOfRecordToMerge = cms.VPSet(
0079     cms.PSet(
0080        record = cms.string('SiStripBadFiberRcd'),
0081        tag = cms.string('testa')
0082     ))
0083 )
0084 #process.es_prefer_GlobalTag = cms.ESPrefer('PoolDBESSource','GlobalTag')
0085 
0086 #process.MySSQPrefer = cms.ESPrefer("PoolDBESSource","a")
0087 
0088 #        cms.PSet(
0089 #            record = cms.string('SiStripBadChannelRcd'),
0090 #            tag = cms.string('')
0091 #        ), 
0092 #        cms.PSet(
0093 #            record = cms.string('SiStripDetCablingRcd'),
0094 #            tag = cms.string('')
0095 #        ))
0096 #)
0097 ###
0098 #from CalibTracker.SiStripQuality.siStripQualityStatistics_cfi import siStripQualityStatistics
0099 #process.reader = siStripQualityStatistics.clone(
0100 #        #TkMapFileName = cms.untracked.string('TkMaps/TkMapBadComponents_offline.png'),
0101 #        )
0102 
0103 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0104     BlobStreamerName = cms.untracked.string('TBufferBlobStreamingService'),
0105     DBParameters = cms.PSet(
0106         authenticationPath = cms.untracked.string('/afs/cern.ch/cms/DB/conddb')
0107     ),
0108     timetype = cms.untracked.string('runnumber'),
0109     connect = cms.string('sqlite_file:dbfile.db'),
0110     toPut = cms.VPSet(
0111     cms.PSet(
0112       record = cms.string('SiStripBadStrip'),
0113       tag = cms.string('SiStripHotStrips')
0114     ))
0115 )
0116 
0117 process.prod = cms.EDFilter("SiStripQualityHotStripIdentifierRoot",
0118     OccupancyRootFile = cms.untracked.string('HotStripsOccupancy_insertRun.root'),
0119     WriteOccupancyRootFile = cms.untracked.bool(True), # Ouput File has a size of ~100MB. To suppress writing set parameter to 'False'
0120     UseInputDB = cms.untracked.bool(True), 
0121     dataLabel=cms.untracked.string('test'),
0122     OccupancyH_Xmax = cms.untracked.double(1.0),
0123     AlgoParameters = cms.PSet(
0124         AlgoName = cms.string('SiStripHotStripAlgorithmFromClusterOccupancy'),
0125         OccupancyHisto = cms.untracked.string('ClusterDigiPosition__det__'),
0126         NumberOfEvents = cms.untracked.uint32(0),
0127         ProbabilityThreshold = cms.untracked.double(1e-07),
0128         MinNumEntriesPerStrip = cms.untracked.uint32(20),
0129         MinNumEntries = cms.untracked.uint32(0),
0130         OccupancyThreshold = cms.untracked.double(0.0001),
0131         UseInputDB = cms.untracked.bool(True)
0132     ),
0133     SinceAppendMode = cms.bool(True),
0134     verbosity = cms.untracked.uint32(0),
0135     OccupancyH_Xmin = cms.untracked.double(-0.0005),
0136     IOVMode = cms.string('Run'),
0137     Record = cms.string('SiStripBadStrip'),
0138     rootDirPath = cms.untracked.string('Run insertRun/AlCaReco'),
0139     rootFilename = cms.untracked.string('insertCastorPath/insertDataset/insertDQMFile'),
0140     doStoreOnDB = cms.bool(True),
0141     OccupancyH_Nbin = cms.untracked.uint32(1001)
0142 )
0143 
0144 process.out = cms.OutputModule("AsciiOutputModule")
0145 
0146 process.p = cms.Path(process.prod)
0147 process.ep = cms.EndPath(process.out)
0148