Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:53:38

0001 # Run with something like the following:
0002 # cmsRun HcalRecHitDump_cfg.py |& grep ^++HBHE++ | sed 's/to -120 ns/to 0 ns/g' > dump.log
0003 
0004 import os
0005 import FWCore.ParameterSet.Config as cms
0006 
0007 # Get the input file from the environment
0008 inputfile = os.environ['INPUTFILE']
0009 
0010 process = cms.Process('Test')
0011 
0012 process.maxEvents = cms.untracked.PSet(
0013     input = cms.untracked.int32(10)
0014 )
0015 
0016 process.source = cms.Source("PoolSource",
0017     fileNames = cms.untracked.vstring('file:' + inputfile)
0018 )
0019 
0020 # Settings for rechits reconstructed by HBHEPhase1Reconstructor
0021 process.dumpPhase1 = cms.EDAnalyzer(
0022     'HcalRecHitDump',
0023     hbhePrefix = cms.untracked.string("++HBHE++ "),
0024     # hfPrefix = cms.untracked.string("++HF++ "),
0025     # hfprePrefix = cms.untracked.string("++HFPre++ "),
0026     tagHBHE = cms.InputTag("hbheprereco"),
0027     tagPreHF = cms.InputTag("hfprereco"),
0028     tagHF = cms.InputTag("hfreco"),
0029     bits = cms.untracked.vint32(0,11,12,13,15,27,29,30,-1,\
0030                                 38,37,36,35,34,33,32,-1,46,45,44,43,42,41,40,-1,54,53,52,51,50,49,48,-1,62,61,60,59,58,57,56,-1,\
0031                                 70,69,68,67,66,65,64,-1,78,77,76,75,74,73,72,-1,86,85,84,83,82,81,80,-1,94,93,92,91,90,89,88,-1,\
0032                                 121,120)
0033 )
0034 
0035 # Settings for rechits reconstructed by HcalHitReconstructor
0036 process.dumpLegacy = cms.EDAnalyzer(
0037     'HcalRecHitDump',
0038     hbhePrefix = cms.untracked.string("++HBHE++ "),
0039     # hfPrefix = cms.untracked.string("++HF++ "),
0040     # hfprePrefix = cms.untracked.string("++HFPre++ "),
0041     tagHBHE = cms.InputTag("hbheprereco"),
0042     tagPreHF = cms.InputTag("hfprereco"),
0043     tagHF = cms.InputTag("hfreco"),
0044     bits = cms.untracked.vint32(0,11,12,13,15,27,29,30,-1,\
0045                                 70,69,68,67,66,65,64,-1,77,76,75,74,73,72,71,-1,84,83,82,81,80,79,78,-1,91,90,89,88,87,86,85,-1,\
0046                                 38,37,36,35,34,33,32,-1,45,44,43,42,41,40,39,-1,52,51,50,49,48,47,46,-1,59,58,57,56,55,54,53,-1,\
0047                                 61,60)
0048 )
0049 
0050 process.p = cms.Path(process.dumpPhase1)