Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:09:11

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("APVCyclePhaseProducerTestDBfile")
0004 
0005 process.load("FWCore.MessageService.MessageLogger_cfi")
0006 
0007 process.MessageLogger.files.infos = cms.untracked.PSet(
0008     threshold = cms.untracked.string("INFO"),
0009     default = cms.untracked.PSet(
0010         limit = cms.untracked.int32(10000000)
0011     ),
0012     FwkReport = cms.untracked.PSet(
0013         reportEvery = cms.untracked.int32(10000)
0014     )
0015 )
0016 process.MessageLogger.cerr.threshold = cms.untracked.string("WARNING")
0017 
0018 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
0019 
0020 process.source = cms.Source("PoolSource",
0021                     fileNames = cms.untracked.vstring(
0022         "/store/data/Run2012A/Jet/RAW/v1/000/191/226/0AFA4854-0986-E111-881D-5404A640A639.root",
0023         "/store/data/Run2012A/SingleElectron/RAW/v1/000/193/621/B2087C58-9F98-E111-90BD-002481E0D646.root",
0024         "/store/data/Run2012A/SingleElectron/RAW/v1/000/193/648/9AEA9A92-F498-E111-98EB-001D09F23A20.root",
0025         "/store/data/Run2012C/MinimumBias/RAW/v1/000/199/812/007E76FB-9ED8-E111-8986-003048D2BE12.root",
0026         "/store/data/Run2012C/MinimumBias2/RAW/v1/000/198/603/346E0D4C-6FCA-E111-AE04-002481E0D958.root",
0027         "/store/data/Run2012C/MinimumBias/RAW/v1/000/203/002/50D2F56A-5700-E211-9636-5404A63886AE.root",
0028         "/store/data/Run2012D/MinimumBias/RAW/v1/000/207/454/0428CA7D-B830-E211-8481-485B3977172C.root",
0029         "/store/data/Commissioning2013/Cosmics/RAW/v1/00000/74845390-8D47-E311-9701-003048CFB390.root"
0030 #        "/store/data/Commissioning2013/Cosmics/RAW/v1/00000/007C8D94-9A46-E311-9596-003048F0E594.root",
0031 #        "/store/data/Commissioning2013/Cosmics/RAW/v1/00000/06631F08-9A45-E311-9BFD-003048F17496.root"
0032 ),
0033 #                    skipBadFiles = cms.untracked.bool(True),
0034                     inputCommands = cms.untracked.vstring("keep *", "drop *_MEtoEDMConverter_*_*")
0035                     )
0036 
0037 
0038 #process.source = cms.Source("EmptySource",
0039 #                            firstRun = cms.untracked.uint32(216322),
0040 #                            numberEventsInRun = cms.untracked.uint32(10)
0041 #                            )
0042 
0043 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0044 process.GlobalTag.globaltag = "GR_R_70_V1::All"
0045 #-------------------------------------------------------------------------
0046 process.poolDBESSource = cms.ESSource("PoolDBESSource",
0047    BlobStreamerName = cms.untracked.string('TBufferBlobStreamingService'),
0048    DBParameters = cms.PSet(
0049         messageLevel = cms.untracked.int32(1),
0050         authenticationPath = cms.untracked.string('/afs/cern.ch/cms/DB/conddb')
0051     ),
0052     timetype = cms.untracked.string('runnumber'),
0053     connect = cms.string('sqlite_file:apvphaseoffsets.db'),
0054     appendToDataLabel = cms.string("apvphaseoffsets"),
0055     toGet = cms.VPSet(cms.PSet(
0056         record = cms.string('SiStripConfObjectRcd'),
0057         tag = cms.string('SiStripAPVPhaseOffsets_real_v1')
0058     ))
0059 )
0060 #-------------------------------------------------------------------------
0061 
0062 process.load("Configuration.StandardSequences.RawToDigi_Data_cff")
0063 process.load("Configuration.StandardSequences.MagneticField_cff")
0064 process.load("Configuration.StandardSequences.GeometryDB_cff")
0065 process.load("Configuration.StandardSequences.Reconstruction_cff")
0066 
0067 #process.load("DPGAnalysis.SiStripTools.configurableapvcyclephaseproducer_GR09_withdefault_cff")
0068 process.load("DPGAnalysis.SiStripTools.apvcyclephaseproducerfroml1tsDB_cfi")
0069 
0070 #process.APVPhases.ignoreDB = cms.untracked.bool(True)
0071 
0072 process.load("DPGAnalysis.SiStripTools.apvcyclephasemonitor_cfi")
0073 
0074 process.TFileService = cms.Service('TFileService',
0075                                    fileName = cms.string('apvcyclephaseproducer_test_dbfile.root')
0076                                    )
0077 
0078 process.p0 = cms.Path(process.scalersRawToDigi + process.APVPhases +
0079                       process.apvcyclephasemonitor )
0080