Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:25:10

0001 #
0002 # rechits are not persisent anymore, so one should run one of the CPEs
0003 # on clusters ot do the track fitting. 11/08 d.k.
0004 #
0005 import FWCore.ParameterSet.Config as cms
0006 
0007 process = cms.Process("recHitsTest")
0008 
0009 process.maxEvents = cms.untracked.PSet(
0010     input = cms.untracked.int32(100)
0011 )
0012 
0013 process.MessageLogger = cms.Service("MessageLogger",
0014     debugModules = cms.untracked.vstring('ReadPixelRecHit'),
0015     destinations = cms.untracked.vstring('cout'),
0016 #    destinations = cms.untracked.vstring("log","cout"),
0017     cout = cms.untracked.PSet(
0018         threshold = cms.untracked.string('ERROR')
0019     )
0020 #    log = cms.untracked.PSet(
0021 #        threshold = cms.untracked.string('DEBUG')
0022 #    )
0023 )
0024 
0025 process.source = cms.Source("PoolSource",
0026 #    fileNames =  cms.untracked.vstring('file:/scratch/dkotlins/digis.root')
0027    fileNames =  cms.untracked.vstring(
0028     'file:/afs/cern.ch/work/d/dkotlins/public/MC/mu/pt100_71_pre7/rechits/rechits2_postls171.root'
0029    )
0030 )
0031 
0032 
0033 # a service to use root histos
0034 process.TFileService = cms.Service("TFileService",
0035     fileName = cms.string('histo.root')
0036 )
0037 
0038 process.load("Configuration.StandardSequences.Geometry_cff")
0039 process.load("Configuration.StandardSequences.MagneticField_38T_cff")
0040 # process.load("Configuration.StandardSequences.Services_cff")
0041 
0042 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")# Choose the global tag here:
0043 # 2012
0044 #process.GlobalTag.globaltag = 'GR_P_V40::All'
0045 # MC 2014
0046 process.GlobalTag.globaltag = 'MC_70_V1::All'
0047 
0048 # read rechits
0049 process.analysis = cms.EDAnalyzer("ReadPixelRecHit",
0050     Verbosity = cms.untracked.bool(True),
0051     src = cms.InputTag("siPixelRecHits"),
0052 )
0053 
0054 process.p = cms.Path(process.analysis)
0055 
0056 # test the DB object, works
0057 #process.load("RecoLocalTracker.SiPixelRecHits.PixelCPEESProducers_cff")
0058 ##process.load("RecoLocalTracker.SiPixelRecHits.SiPixelRecHits_cfi")
0059 ##process.load("CalibTracker.SiPixelESProducers.SiPixelFakeTemplateDBObjectESSource_cfi"
0060 ##process.load("CalibTracker.SiPixelESProducers.SiPixelFakeCPEGenericErrorParmESSource_cfi"
0061 #process.test = cms.EDAnalyzer("CPEAccessTester",
0062 ##    PixelCPE = cms.string('PixelCPEGeneric'),
0063 #    PixelCPE = cms.string('PixelCPETemplateReco'),
0064 #)
0065 #process.p = cms.Path(process.test)
0066 
0067 
0068 
0069 
0070