Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-06-07 22:22:32

0001 import FWCore.ParameterSet.Config as cms 
0002 
0003 # Standard includes
0004 process = cms.Process("SiPixelPhase1Analyzer")
0005 process.load("Configuration.StandardSequences.GeometryRecoDB_cff")
0006 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0007 from Configuration.AlCa.GlobalTag import GlobalTag
0008 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase1_2022_realistic', '')
0009 
0010 # MessageLogger
0011 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0012 process.MessageLogger.cerr.threshold = 'INFO'
0013 process.MessageLogger.SiPixelPhase1Analyzer=dict()  
0014 process.MessageLogger.cout = cms.untracked.PSet(
0015     enable = cms.untracked.bool(True),
0016     threshold = cms.untracked.string("INFO"),
0017     default   = cms.untracked.PSet(limit = cms.untracked.int32(0)),                       
0018     FwkReport = cms.untracked.PSet(limit = cms.untracked.int32(-1),
0019                                    reportEvery = cms.untracked.int32(1000)
0020                                    ),                                                      
0021     SiPixelPhase1Analyzer = cms.untracked.PSet( limit = cms.untracked.int32(-1)),
0022     enableStatistics = cms.untracked.bool(True)
0023     )
0024 
0025 # Source
0026 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
0027 process.source = cms.Source("PoolSource",
0028   fileNames = cms.untracked.vstring(
0029       '/store/relval/CMSSW_11_2_0_pre6/RelValQCD_FlatPt_15_3000HS_14/GEN-SIM-RECO/112X_mcRun3_2021_realistic_v7-v1/20000/47B75EDE-AAB4-C944-802B-15B1EB4BA29A.root'
0030   )
0031 ) 
0032 
0033 # Output root file name:
0034 process.TFileService = cms.Service("TFileService", fileName = cms.string('pixelMaps.root') )
0035 
0036 MODE_ANALYZE = 0
0037 MODE_REMAP = 1
0038 
0039 process.demo = cms.EDAnalyzer('SiPixelPhase1Analyzer',
0040                               opMode = cms.untracked.uint32(MODE_ANALYZE),
0041                               src = cms.InputTag("generalTracks"),
0042                               debugFileName = cms.untracked.string("debug.txt"),                              
0043                               remapRootFileName = cms.untracked.vstring("dqmFile.root"), #only one input is allowed now
0044                               isBarrelSource = cms.untracked.vuint32(0, 0, 1),
0045                               pathToHistograms = cms.untracked.vstring(
0046                                   "DQMData/Run 1/PixelPhase1/Run summary/Phase1_MechanicalView/PXForward/",
0047                                   "DQMData/Run 1/PixelPhase1/Run summary/Phase1_MechanicalView/PXForward/",
0048                                   "DQMData/Run 1/PixelPhase1/Run summary/Phase1_MechanicalView/PXBarrel/"),
0049                               baseHistogramName = cms.untracked.vstring(
0050                                   "num_clusters_per_PXDisk_per_SignedBladePanel_PXRing",
0051                                   "num_digis_per_PXDisk_per_SignedBladePanel_PXRing",
0052                                   "num_digis_per_SignedModule_per_SignedLadder_PXLayer")
0053                               )
0054 
0055 process.p = cms.Path(process.demo)