Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-10-08 02:27:06

0001 import FWCore.ParameterSet.Config as cms
0002 import FWCore.ParameterSet.VarParsing as VarParsing
0003 import os
0004 
0005 process = cms.Process("summary")
0006 options = VarParsing.VarParsing()
0007 options.register('inputTag',
0008                  "BeamSpotObjects_PCL_byLumi_v0_prompt", # default value
0009                  VarParsing.VarParsing.multiplicity.singleton, # singleton or list
0010                  VarParsing.VarParsing.varType.string, # string, int, or float
0011                  "output tag name")
0012 options.register('startIOV',
0013                  1406713458589700, # default value
0014                  VarParsing.VarParsing.multiplicity.singleton, # singleton or list
0015                  VarParsing.VarParsing.varType.int, # string, int, or float
0016                  "location of the input data")
0017 options.register('endIOV',
0018                  1406876667347162, # default value
0019                  VarParsing.VarParsing.multiplicity.singleton, # singleton or list
0020                  VarParsing.VarParsing.varType.int, # string, int, or float
0021                  "location of the input data")
0022 options.parseArguments()
0023 
0024 process.MessageLogger = cms.Service( "MessageLogger",
0025                                      debugModules = cms.untracked.vstring( "*" ),
0026                                      cout = cms.untracked.PSet( threshold = cms.untracked.string( "DEBUG" ) ),
0027                                      destinations = cms.untracked.vstring( "cout" )
0028                                      )
0029 
0030 process.maxEvents = cms.untracked.PSet(
0031     input = cms.untracked.int32(1)
0032 )
0033 process.source = cms.Source("EmptySource",
0034     numberEventsInRun = cms.untracked.uint32(1),
0035     firstRun = cms.untracked.uint32(1)
0036 )
0037 
0038 process.load("CondCore.CondDB.CondDB_cfi")
0039 process.load("CondTools.BeamSpot.BeamSpotRcdPrinter_cfi")
0040 
0041 process.BeamSpotRcdPrinter.tagName  = options.inputTag
0042 process.BeamSpotRcdPrinter.startIOV = options.startIOV
0043 process.BeamSpotRcdPrinter.endIOV   = options.endIOV
0044 process.BeamSpotRcdPrinter.output   = "summary.txt"
0045 
0046 ### 2018 Prompt
0047 #process.BeamSpotRcdPrinter.tagName  = "BeamSpotObjects_PCL_byLumi_v0_prompt"
0048 #process.BeamSpotRcdPrinter.startIOV = 1350646955507767
0049 #process.BeamSpotRcdPrinter.endIOV   = 1406876667347162
0050 #process.BeamSpotRcdPrinter.output   = "summary2018_Prompt.txt"
0051 
0052 ### 2017 ReReco
0053 #process.BeamSpotRcdPrinter.tagName  = "BeamSpotObjects_LumiBased_v4_offline"
0054 #process.BeamSpotRcdPrinter.startIOV = 1275820035276801
0055 #process.BeamSpotRcdPrinter.endIOV   = 1316235677532161
0056 
0057 ### 2018 ABC ReReco
0058 #process.BeamSpotRcdPrinter.tagName  = "BeamSpotObjects_LumiBased_v4_offline"
0059 #process.BeamSpotRcdPrinter.startIOV = 1354018504835073
0060 #process.BeamSpotRcdPrinter.endIOV   = 1374668707594734
0061 
0062 ### 2018D Prompt
0063 #process.BeamSpotRcdPrinter.tagName  = "BeamSpotObjects_PCL_byLumi_v0_prompt"
0064 #process.BeamSpotRcdPrinter.startIOV = 1377280047710242
0065 #process.BeamSpotRcdPrinter.endIOV   = 1406876667347162
0066 
0067 process.p = cms.Path(process.BeamSpotRcdPrinter)