Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 import FWCore.ParameterSet.VarParsing as VarParsing
0003 
0004 process = cms.Process("Test")
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 
0014 options.parseArguments()
0015 
0016 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(1) )
0017 
0018 process.source = cms.Source("EmptySource",
0019                             firstRun = cms.untracked.uint32(186253),
0020                             numberEventsInRun = cms.untracked.uint32(1)
0021                             )
0022 
0023 process.load("Configuration.StandardSequences.MagneticField_cff")
0024 process.load("Configuration.StandardSequences.GeometryRecoDB_cff")
0025 process.load("Configuration.StandardSequences.Reconstruction_cff")
0026 
0027 process.MessageLogger = cms.Service("MessageLogger",
0028                                     destinations = cms.untracked.vstring("detidselectorTest"),
0029                                     detidselectorTest = cms.untracked.PSet(
0030                                                     threshold = cms.untracked.string("DEBUG")
0031                                                     ),
0032                                     debugModules = cms.untracked.vstring("*")
0033                                     )
0034 
0035 
0036 #process.detidselectortest = cms.EDAnalyzer("DetIdSelectorTest",
0037 #                                           selections=cms.VPSet(
0038 #    cms.PSet(selection=cms.untracked.vstring("0x1e0c0000-0x1c040000")),    # TEC minus
0039 #    cms.PSet(selection=cms.untracked.vstring("0x1e0c0000-0x1c080000")),     # TEC plus
0040 #    cms.PSet(selection=cms.untracked.vstring("0x1e000000-0x1a000000")),     # TOB
0041 #    cms.PSet(selection=cms.untracked.vstring("0x1e000000-0x16000000")),     # TIB
0042 #    cms.PSet(selection=cms.untracked.vstring("0x1e006000-0x18002000")),     # TID minus
0043 #    cms.PSet(selection=cms.untracked.vstring("0x1e006000-0x18004000")),     # TID plus
0044 #    cms.PSet(selection=cms.untracked.vstring("0x1e0f0000-0x12010000")),      # BPix L1
0045 #    cms.PSet(selection=cms.untracked.vstring("0x1e0f0000-0x12020000")),      # BPix L2
0046 #    cms.PSet(selection=cms.untracked.vstring("0x1e0f0000-0x12030000")),      # BPix L3
0047 #    cms.PSet(selection=cms.untracked.vstring("0x1f800000-0x14800000")),      # FPix minus
0048 #    cms.PSet(selection=cms.untracked.vstring("0x1f800000-0x15000000"))      # FPix plus
0049 #    cms.PSet(selection=cms.untracked.vstring("504102912-470286336"))
0050 #    )
0051 #)
0052 
0053 from DPGAnalysis.SiStripTools.occupancyplotsselections_simplified_cff import *
0054 
0055 process.detidselectortest = cms.EDAnalyzer("DetIdSelectorTest",
0056                                            selections=cms.VPSet(
0057     cms.PSet(detSelection = cms.uint32(101),detLabel = cms.string("TIDring1"),selection=cms.untracked.vstring("0x1e000600-0x18000200")),
0058     cms.PSet(detSelection = cms.uint32(102),detLabel = cms.string("TIDring2"),selection=cms.untracked.vstring("0x1e000600-0x18000400")),
0059     cms.PSet(detSelection = cms.uint32(201),detLabel = cms.string("TECring1"),selection=cms.untracked.vstring("0x1e0000e0-0x1c000020")),
0060     cms.PSet(detSelection = cms.uint32(202),detLabel = cms.string("TECring2"),selection=cms.untracked.vstring("0x1e0000e0-0x1c000040"))
0061     )
0062 )
0063 #process.detidselectortest.selections.extend(OccupancyPlotsStripWantedSubDets)
0064 #process.detidselectortest.selections.extend(OccupancyPlotsPixelWantedSubDets)
0065 
0066 process.load("DQM.SiStripCommon.TkHistoMap_cff")
0067 
0068 #process.Timing = cms.Service("Timing")
0069 
0070 
0071 # Conditions (Global Tag is used here):
0072 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0073 from Configuration.AlCa.GlobalTag import GlobalTag
0074 process.GlobalTag = GlobalTag(process.GlobalTag, options.globalTag, '')
0075 
0076 process.options = cms.untracked.PSet( wantSummary = cms.untracked.bool(True))
0077 
0078 process.p = cms.Path(process.detidselectortest)
0079 
0080 
0081