Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:11:01

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("MyRawToTracks")
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(10))
0018 
0019 process.source = cms.Source("PoolSource",
0020 # fileNames =  cms.untracked.vstring('file:rawdata.root')
0021 fileNames =  cms.untracked.vstring(
0022 #  "rfio:/castor/cern.ch/cms/store/data/Run2012D/MinimumBias/RAW/v1/000/205/217/2EF61B7D-F216-E211-98C3-001D09F28D54.root",
0023   "rfio:/castor/cern.ch/cms/store/data/Run2012D/MinimumBias/RAW/v1/000/208/686/A88F66A0-393F-E211-9287-002481E0D524.root",
0024  )
0025 #   skipEvents = cms.untracked.uint32(5000)
0026 )
0027 
0028 # Choose the global tag here:
0029 #process.GlobalTag.globaltag = "GR_P_V40::All"
0030 #process.GlobalTag.globaltag = "GR_R_62_V1::All"
0031 # for data in V7
0032 #process.GlobalTag.globaltag = "GR_R_71_V1::All"
0033 process.GlobalTag.globaltag = "PRE_R_71_V3::All"
0034 
0035 # process.load("EventFilter.SiPixelRawToDigi.SiPixelRawToDigi_cfi")
0036 process.load('Configuration.StandardSequences.RawToDigi_cff')
0037 
0038 # needed for pixel RecHits (TkPixelCPERecord)
0039 process.load("Configuration.StandardSequences.Reconstruction_cff")
0040 
0041 # clusterizer 
0042 process.load("RecoLocalTracker.Configuration.RecoLocalTracker_cff")
0043 
0044 # for Raw2digi for data
0045 process.siPixelDigis.InputLabel = 'rawDataCollector'
0046 process.siStripDigis.ProductLabel = 'rawDataCollector'
0047 
0048 # for digi to clu
0049 #process.siPixelClusters.src = 'siPixelDigis'
0050 
0051 process.MessageLogger = cms.Service("MessageLogger",
0052     cerr = cms.untracked.PSet(
0053         enable = cms.untracked.bool(False)
0054     ),
0055     cout = cms.untracked.PSet(
0056         enable = cms.untracked.bool(True),
0057         threshold = cms.untracked.string('WARNING')
0058     ),
0059     debugModules = cms.untracked.vstring('SiPixelClusterizer')
0060 )
0061 
0062 # pixel local reco (RecHits) needs the GenError object,
0063 # not yet in GT, add here:
0064 # DB stuff 
0065 useLocalDBError = True
0066 if useLocalDBError :
0067     process.DBReaderFrontier = cms.ESSource("PoolDBESSource",
0068      DBParameters = cms.PSet(
0069          messageLevel = cms.untracked.int32(0),
0070          authenticationPath = cms.untracked.string('')
0071      ),
0072      toGet = cms.VPSet(
0073        cms.PSet(
0074          record = cms.string('SiPixelGenErrorDBObjectRcd'),
0075 #    tag = cms.string("SiPixelGenErrorDBObject38Tv1")
0076 #        tag = cms.string('SiPixelGenErrorDBObject_38T_2012_IOV7_v1')
0077          tag = cms.string('SiPixelGenErrorDBObject_38T_v1_offline')
0078      ),
0079        ),
0080 #     connect = cms.string('sqlite_file:siPixelGenErrors38T_2012_IOV7_v1.db')
0081 #     connect = cms.string('frontier://FrontierProd/CMS_COND_31X_PIXEL')
0082 #     connect = cms.string('frontier://FrontierPrep/CMS_COND_PIXEL')
0083      connect = cms.string('frontier://FrontierProd/CMS_COND_PIXEL_000')
0084     ) # end process
0085 process.myprefer = cms.ESPrefer("PoolDBESSource","DBReaderFrontier")
0086 
0087 
0088 process.out = cms.OutputModule("PoolOutputModule",
0089     fileName =  cms.untracked.string('file:tracks.root'),
0090 #    fileName =  cms.untracked.string('file:/afs/cern.ch/work/d/dkotlins/public/data/tracks/tracks_1_0.root'),
0091 
0092     #outputCommands = cms.untracked.vstring("drop *","keep *_*_*_MyRawToClus") # 13.1MB per 10 events
0093     splitLevel = cms.untracked.int32(0),
0094     eventAutoFlushCompressedSize = cms.untracked.int32(5242880),
0095     outputCommands = process.RECOEventContent.outputCommands,  # 4.9MB per 10 events 
0096     dataset = cms.untracked.PSet(
0097         filterName = cms.untracked.string(''),
0098         dataTier = cms.untracked.string('RECO')
0099     )
0100 
0101 )
0102 
0103 # copy the sequence below from  
0104 # RecoTracker/IterativeTracking/python/iterativeTk_cff.py  - 71_pre7
0105 process.myTracking = cms.Sequence(process.InitialStep*
0106                             process.DetachedTripletStep*
0107                             process.LowPtTripletStep*
0108                             process.PixelPairStep*
0109                             process.MixedTripletStep*
0110                             process.PixelLessStep*
0111                             process.TobTecStep*
0112                             process.earlyGeneralTracks*
0113                             # muonSeededStep*
0114                             process.preDuplicateMergingGeneralTracks*
0115                             process.generalTracksSequence*
0116                             process.ConvStep*
0117                             process.conversionStepTracks
0118                             )
0119 
0120 #process.p = cms.Path(process.siPixelDigis)
0121 #process.p = cms.Path(process.siPixelDigis*process.siPixelClusters)
0122 #process.p = cms.Path(process.siPixelDigis*process.pixeltrackerlocalreco)
0123 
0124 #process.p1 = cms.Path(process.siPixelDigis*process.siStripDigis)
0125 # crash on strip clusters, calibration records missing? works with the 620 tag
0126 #process.p1 = cms.Path(process.siPixelDigis*process.siStripDigis*process.trackerlocalreco)
0127 
0128 #process.p1 = cms.Path(process.siPixelDigis*process.siStripDigis*process.trackerlocalreco*process.offlineBeamSpot)
0129 #process.p1 = cms.Path(process.siPixelDigis*process.siStripDigis*process.trackerlocalreco*process.offlineBeamSpot*process.recopixelvertexing)
0130 #process.p1 = cms.Path(process.siPixelDigis*process.siStripDigis*process.trackerlocalreco*process.offlineBeamSpot*process.recopixelvertexing*process.MeasurementTrackerEvent)
0131 # trackingGlobalReco, ckftracks, iterTracking - 
0132 #process.p1 = cms.Path(process.siPixelDigis*process.siStripDigis*process.trackerlocalreco*process.offlineBeamSpot*process.recopixelvertexing*process.MeasurementTrackerEvent*process.myTracking)
0133 
0134 process.p1 = cms.Path(process.siPixelDigis*process.siStripDigis*process.trackerlocalreco*process.offlineBeamSpot*process.siPixelClusterShapeCache*process.recopixelvertexing*process.MeasurementTrackerEvent*process.myTracking*process.vertexreco)
0135 
0136 
0137 process.ep = cms.EndPath(process.out)