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