Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-05-12 22:39:30

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("MyRawToDigi")
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 
0012 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(100))
0013 
0014 process.source = cms.Source("PoolSource",
0015 # fileNames =  cms.untracked.vstring('file:rawdata.root')
0016 fileNames =  cms.untracked.vstring(
0017   "rfio:/castor/cern.ch/cms/store/data/Run2012D/MinimumBias/RAW/v1/000/205/217/2EF61B7D-F216-E211-98C3-001D09F28D54.root",
0018 #  "rfio:/castor/cern.ch/cms/store/data/Run2012D/MinimumBias/RAW/v1/000/208/686/A88F66A0-393F-E211-9287-002481E0D524.root",
0019 #    "file:/afs/cern.ch/work/d/dkotlins/public/MC/mu/pt100_71_pre7/raw/raw2.root"
0020  )
0021 )
0022 
0023 # Cabling
0024 #  include "CalibTracker/Configuration/data/Tracker_FakeConditions.cff"
0025 #process.load("CalibTracker.Configuration.SiPixel_FakeConditions_cff")
0026 #process.load("CalibTracker.Configuration.SiPixelCabling.SiPixelCabling_SQLite_cff")
0027 #process.GlobalTag.connect = "frontier://FrontierProd/CMS_COND_21X_GLOBALTAG"
0028 #process.GlobalTag.globaltag = "CRAFT_V3P::All"
0029 #process.es_prefer_GlobalTag = cms.ESPrefer('PoolDBESSource','GlobalTag')
0030 #process.siPixelCabling.connect = 'sqlite_file:cabling.db'
0031 #process.siPixelCabling.toGet = cms.VPSet(cms.PSet(
0032 #    record = cms.string('SiPixelFedCablingMapRcd'),
0033 #    tag = cms.string('SiPixelFedCablingMap_v14')
0034 #))
0035 
0036 
0037 # Choose the global tag here:
0038 #process.GlobalTag.globaltag = "GR_P_V40::All"
0039 # for data in V7
0040 # process.GlobalTag.globaltag = "GR_R_71_V1::All"
0041 # for MC 
0042 process.GlobalTag.globaltag = "MC_71_V1::All"
0043 
0044 process.load("EventFilter.SiPixelRawToDigi.SiPixelRawToDigi_cfi")
0045 # for simultaions 
0046 process.siPixelDigis.InputLabel = 'siPixelRawData'
0047 # for data
0048 #process.siPixelDigis.InputLabel = 'source'
0049 #process.siPixelDigis.InputLabel = 'rawDataCollector'
0050 process.siPixelDigis.IncludeErrors = True
0051 #process.siPixelDigis.UseCablingTree = True 
0052 
0053 process.MessageLogger = cms.Service("MessageLogger",
0054     cerr = cms.untracked.PSet(
0055         enable = cms.untracked.bool(False)
0056     ),
0057     debugModules = cms.untracked.vstring('siPixelDigis'),
0058     files = cms.untracked.PSet(
0059         r2d = cms.untracked.PSet(
0060             threshold = cms.untracked.string('WARNING')
0061         )
0062     )
0063 )
0064 
0065 process.out = cms.OutputModule("PoolOutputModule",
0066     fileName =  cms.untracked.string('file:digis.root'),
0067 #    fileName =  cms.untracked.string('file:/afs/cern.ch/work/d/dkotlins/public/data/digis/digis_1k.root'),
0068     outputCommands = cms.untracked.vstring("drop *","keep *_siPixelDigis_*_*")
0069 )
0070 
0071 process.p = cms.Path(process.siPixelDigis)
0072 process.ep = cms.EndPath(process.out)