Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:26:18

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("MyRawToClus")
0004 
0005 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0006 process.load('Configuration.StandardSequences.GeometryRecoDB_cff')
0007 #process.load("Configuration.StandardSequences.MagneticField_38T_cff")
0008 process.load('Configuration.StandardSequences.MagneticField_cff')
0009 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0010 process.load("Configuration.StandardSequences.Services_cff")
0011 process.load('Configuration.EventContent.EventContent_cff')
0012 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0013 
0014 # for strips 
0015 #process.load("CalibTracker.SiStripESProducers.SiStripGainSimESProducer_cfi")
0016 
0017 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(100))
0018 
0019 process.source = cms.Source("PoolSource",
0020 fileNames =  cms.untracked.vstring(
0021 #  "rfio:/castor/cern.ch/cms/store/data/Run2012D/MinimumBias/RAW/v1/000/205/217/2EF61B7D-F216-E211-98C3-001D09F28D54.root",
0022   "rfio:/castor/cern.ch/cms/store/data/Run2012D/MinimumBias/RAW/v1/000/208/686/A88F66A0-393F-E211-9287-002481E0D524.root",
0023  )
0024 )
0025 
0026 
0027 # Choose the global tag here:
0028 #process.GlobalTag.globaltag = "GR_P_V40::All"
0029 #process.GlobalTag.globaltag = "GR_R_62_V1::All"
0030 # for data in V7
0031 process.GlobalTag.globaltag = "GR_R_71_V1::All"
0032 
0033 # process.load("EventFilter.SiPixelRawToDigi.SiPixelRawToDigi_cfi")
0034 process.load('Configuration.StandardSequences.RawToDigi_cff')
0035 
0036 # needed for pixel RecHits (TkPixelCPERecord)
0037 process.load("Configuration.StandardSequences.Reconstruction_cff")
0038 
0039 # clusterizer 
0040 process.load("RecoLocalTracker.Configuration.RecoLocalTracker_cff")
0041 
0042 # for Raw2digi for data
0043 process.siPixelDigis.InputLabel = 'rawDataCollector'
0044 process.siStripDigis.ProductLabel = 'rawDataCollector'
0045 
0046 # for digi to clu
0047 #process.siPixelClusters.src = 'siPixelDigis'
0048 
0049 process.MessageLogger = cms.Service("MessageLogger",
0050     cerr = cms.untracked.PSet(
0051         enable = cms.untracked.bool(False)
0052     ),
0053     cout = cms.untracked.PSet(
0054         enable = cms.untracked.bool(True),
0055         threshold = cms.untracked.string('WARNING')
0056     ),
0057     debugModules = cms.untracked.vstring('SiPixelClusterizer')
0058 )
0059 
0060 
0061 process.out = cms.OutputModule("PoolOutputModule",
0062     fileName =  cms.untracked.string('file:clus.root'),
0063 #    fileName =  cms.untracked.string('file:/afs/cern.ch/work/d/dkotlins/public/data/clus/clus_1k.root'),
0064 
0065     #outputCommands = cms.untracked.vstring("drop *","keep *_*_*_MyRawToClus") # 13.1MB per 10 events
0066     splitLevel = cms.untracked.int32(0),
0067     eventAutoFlushCompressedSize = cms.untracked.int32(5242880),
0068     outputCommands = process.RECOEventContent.outputCommands,  # 4.9MB per 10 events 
0069     dataset = cms.untracked.PSet(
0070         filterName = cms.untracked.string(''),
0071         dataTier = cms.untracked.string('RECO')
0072     )
0073 )
0074 
0075 # pixel local reco (RecHits) needs the GenError object,
0076 # not yet in GT, add here:
0077 # DB stuff 
0078 useLocalDBError = True
0079 if useLocalDBError :
0080     process.DBReaderFrontier = cms.ESSource("PoolDBESSource",
0081      DBParameters = cms.PSet(
0082          messageLevel = cms.untracked.int32(0),
0083          authenticationPath = cms.untracked.string('')
0084      ),
0085      toGet = cms.VPSet(
0086        cms.PSet(
0087          record = cms.string('SiPixelGenErrorDBObjectRcd'),
0088 #    tag = cms.string("SiPixelGenErrorDBObject38Tv1")
0089 #        tag = cms.string('SiPixelGenErrorDBObject_38T_2012_IOV7_v1')
0090          tag = cms.string('SiPixelGenErrorDBObject_38T_v1_offline')
0091      ),
0092        ),
0093 #     connect = cms.string('sqlite_file:siPixelGenErrors38T_2012_IOV7_v1.db')
0094 #     connect = cms.string('frontier://FrontierProd/CMS_COND_31X_PIXEL')
0095 #     connect = cms.string('frontier://FrontierPrep/CMS_COND_PIXEL')
0096      connect = cms.string('frontier://FrontierProd/CMS_COND_PIXEL_000')
0097     ) # end process
0098 process.myprefer = cms.ESPrefer("PoolDBESSource","DBReaderFrontier")
0099 
0100 #process.p = cms.Path(process.siPixelDigis)
0101 #process.p = cms.Path(process.siPixelDigis*process.siPixelClusters)
0102 #process.p = cms.Path(process.siPixelDigis*process.pixeltrackerlocalreco)
0103 
0104 #process.p1 = cms.Path(process.siPixelDigis*process.siStripDigis)
0105 # crash on strip clusters, calibration records missing? works with the 620 tag
0106 
0107 process.p1 = cms.Path(process.siPixelDigis*process.siStripDigis*process.trackerlocalreco)
0108 
0109 process.ep = cms.EndPath(process.out)