Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("SiPixelInclusiveReader")
0004 process.load("Geometry.CMSCommonData.cmsIdealGeometryXML_cfi")
0005 process.load("Geometry.TrackerGeometryBuilder.trackerGeometry_cfi")
0006 process.load("Geometry.TrackerNumberingBuilder.trackerNumberingGeometry_cfi")
0007 process.load("CondTools.SiPixel.SiPixelGainCalibrationService_cfi")
0008 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0009 process.GlobalTag.globaltag = 'MC_31X_V3::All'
0010 
0011 process.MessageLogger = cms.Service("MessageLogger",
0012     cerr = cms.untracked.PSet(
0013         enable = cms.untracked.bool(False)
0014     ),
0015     cout = cms.untracked.PSet(
0016         enable = cms.untracked.bool(True),
0017         threshold = cms.untracked.string('INFO')
0018     )
0019 )
0020 
0021 
0022 
0023 ###### OUTPUT HISTOGRAM FILE NAME #######
0024 process.TFileService = cms.Service("TFileService",
0025                                    fileName = cms.string("histo.root")
0026                                    )
0027 
0028 
0029 
0030 
0031 ##### DATABASE CONNECTION INFO ######
0032 process.load("CondCore.CondDB.CondDB_cfi")
0033 process.CondDB.connect = 'sqlite_file:test.db'
0034 process.CondDB.DBParameters.authenticationPath = '.'
0035 process.CondDB.DBParameters.messageLevel = 1
0036 
0037 process.maxEvents = cms.untracked.PSet(
0038     input = cms.untracked.int32(1)
0039 )
0040 process.source = cms.Source("EmptySource",
0041     numberEventsInRun = cms.untracked.uint32(10),
0042     firstRun = cms.untracked.uint32(1)
0043 )
0044 
0045 process.Timing = cms.Service("Timing")
0046 
0047 process.SimpleMemoryCheck = cms.Service("SimpleMemoryCheck",
0048     ignoreTotal = cms.untracked.int32(0)
0049 )
0050 
0051 
0052 
0053 ###### TAGS TO READ ######
0054 process.PoolDBESSourceForReader = cms.ESSource("PoolDBESSource",
0055     process.CondDB,
0056     BlobStreamerName = cms.untracked.string('TBufferBlobStreamingService'),
0057     toGet = cms.VPSet(cms.PSet(
0058             record = cms.string('SiPixelFedCablingMapRcd'),
0059             tag = cms.string('SiPixelFedCablingMap_v14')
0060         ), 
0061         cms.PSet(
0062             record = cms.string('SiPixelLorentzAngleRcd'),
0063             tag = cms.string('trivial_LorentzAngle')
0064         ),
0065         cms.PSet(
0066             record = cms.string('SiPixelLorentzAngleSimRcd'),
0067             tag = cms.string('SiPixelLorentzAngleSim_v02')
0068         ),
0069         cms.PSet(
0070             record = cms.string('SiPixelTemplateDBObjectRcd'),
0071             tag = cms.string('SiPixelTemplateDBObject')
0072         ),
0073         cms.PSet(
0074            record = cms.string('SiPixelQualityFromDbRcd'),
0075            tag = cms.string('SiPixelQuality_test')
0076         ),
0077         cms.PSet(
0078             record = cms.string('SiPixelGainCalibrationOfflineRcd'),
0079             tag = cms.string('SiPixelGainCalibration_TBuffer_const')
0080         ), 
0081         cms.PSet(
0082             record = cms.string('SiPixelGainCalibrationForHLTRcd'),
0083             tag = cms.string('SiPixelGainCalibration_TBuffer_hlt_const')
0084         ),
0085         cms.PSet(
0086             record = cms.string('SiPixelGainCalibrationOfflineSimRcd'),
0087             tag = cms.string('SiPixelGainCalibrationSim_TBuffer_const_new')
0088         ), 
0089         cms.PSet(
0090             record = cms.string('SiPixelGainCalibrationForHLTSimRcd'),
0091             tag = cms.string('SiPixelGainCalibrationSim_TBuffer_hlt_const')
0092        ))
0093 )
0094 
0095 
0096 
0097 
0098 
0099 
0100 ###### PREFER ABOVE TAGS #######
0101 process.esprefer_DBReaders = cms.ESPrefer("PoolDBESSource", "PoolDBESSourceForReader")
0102 
0103 
0104 
0105 
0106 
0107 ####### GAIN READERS ######
0108 process.SiPixelCondObjOfflineReader = cms.EDAnalyzer("SiPixelCondObjOfflineReader",
0109                                                    process.SiPixelGainCalibrationServiceParameters,
0110                                                    useSimRcd = cms.bool(False)
0111 )
0112 
0113 process.SiPixelCondObjOfflineSimReader = cms.EDAnalyzer("SiPixelCondObjOfflineReader",
0114                                                       process.SiPixelGainCalibrationServiceParameters,
0115                                                       useSimRcd = cms.bool(True)
0116 )
0117 
0118 process.SiPixelCondObjForHLTReader = cms.EDAnalyzer("SiPixelCondObjForHLTReader",
0119                                                   process.SiPixelGainCalibrationServiceParameters,
0120                                                   useSimRcd = cms.bool(False)
0121 )
0122 
0123 process.SiPixelCondObjForHLTSimReader = cms.EDAnalyzer("SiPixelCondObjForHLTReader",
0124                                                      process.SiPixelGainCalibrationServiceParameters,
0125                                                      useSimRcd = cms.bool(True)
0126 )
0127 
0128 
0129 
0130 ####### LORENTZ ANGLE READERS ######
0131 process.SiPixelLorentzAngleReader = cms.EDAnalyzer("SiPixelLorentzAngleReader",
0132     printDebug = cms.untracked.bool(False),
0133     useSimRcd = cms.bool(False)
0134 )
0135 
0136 process.SiPixelLorentzAngleSimReader = cms.EDAnalyzer("SiPixelLorentzAngleReader",
0137     printDebug = cms.untracked.bool(False),
0138     useSimRcd = cms.bool(True)
0139 )
0140 
0141 
0142 
0143 ####### CABLING MAP READER ######
0144 process.SiPixelFedCablingMapAnalyzer = cms.EDAnalyzer("SiPixelFedCablingMapAnalyzer")
0145 
0146 
0147 #######  QUALITY READER #######
0148 process.SiPixelBadModuleReader = cms.EDAnalyzer("SiPixelBadModuleReader")
0149 
0150 
0151 ####### TEMPLATE OBJECT READER ######
0152 #Change to True if you would like a more detailed error output
0153 wantDetailedOutput = False
0154 #Change to True if you would like to output the full template database object
0155 wantFullOutput = False
0156 
0157 process.SiPixelTemplateDBObjectReader = cms.EDAnalyzer("SiPixelTemplateDBObjectReader",
0158                               siPixelTemplateCalibrationLocation = cms.string(
0159                              "CalibTracker/SiPixelESProducers"),
0160                               wantDetailedTemplateDBErrorOutput = cms.bool(wantDetailedOutput),
0161                               wantFullTemplateDBOutput = cms.bool(wantFullOutput))
0162 
0163 
0164 
0165 
0166 
0167 ####### DO ALL READERS (OR SELECT ONE YOU WANT) ########
0168 process.p = cms.Path(
0169 process.SiPixelCondObjOfflineReader*
0170 process.SiPixelCondObjOfflineSimReader*
0171 process.SiPixelLorentzAngleReader*
0172 process.SiPixelLorentzAngleSimReader*
0173 process.SiPixelFedCablingMapAnalyzer*
0174 process.SiPixelCondObjForHLTReader*
0175 process.SiPixelCondObjForHLTSimReader*
0176 process.SiPixelTemplateDBObjectReader*
0177 process.SiPixelBadModuleReader
0178 )
0179 
0180