1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
|
import FWCore.ParameterSet.Config as cms
process = cms.Process("MyRawToTracks")
process.load("FWCore.MessageLogger.MessageLogger_cfi")
process.load('Configuration.StandardSequences.GeometryRecoDB_cff')
#process.load("Configuration.StandardSequences.MagneticField_38T_cff")
process.load('Configuration.StandardSequences.MagneticField_cff')
process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
process.load("Configuration.StandardSequences.Services_cff")
process.load('Configuration.EventContent.EventContent_cff')
process.load('Configuration.StandardSequences.EndOfProcess_cff')
# for strips
#process.load("CalibTracker.SiStripESProducers.SiStripGainSimESProducer_cfi")
process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(10))
process.source = cms.Source("PoolSource",
# fileNames = cms.untracked.vstring('file:rawdata.root')
fileNames = cms.untracked.vstring(
# "rfio:/castor/cern.ch/cms/store/data/Run2012D/MinimumBias/RAW/v1/000/205/217/2EF61B7D-F216-E211-98C3-001D09F28D54.root",
"rfio:/castor/cern.ch/cms/store/data/Run2012D/MinimumBias/RAW/v1/000/208/686/A88F66A0-393F-E211-9287-002481E0D524.root",
)
# skipEvents = cms.untracked.uint32(5000)
)
# Choose the global tag here:
#process.GlobalTag.globaltag = "GR_P_V40::All"
#process.GlobalTag.globaltag = "GR_R_62_V1::All"
# for data in V7
#process.GlobalTag.globaltag = "GR_R_71_V1::All"
process.GlobalTag.globaltag = "PRE_R_71_V3::All"
# process.load("EventFilter.SiPixelRawToDigi.SiPixelRawToDigi_cfi")
process.load('Configuration.StandardSequences.RawToDigi_cff')
# needed for pixel RecHits (TkPixelCPERecord)
process.load("Configuration.StandardSequences.Reconstruction_cff")
# clusterizer
process.load("RecoLocalTracker.Configuration.RecoLocalTracker_cff")
# for Raw2digi for data
process.siPixelDigis.InputLabel = 'rawDataCollector'
process.siStripDigis.ProductLabel = 'rawDataCollector'
# for digi to clu
#process.siPixelClusters.src = 'siPixelDigis'
process.MessageLogger = cms.Service("MessageLogger",
cerr = cms.untracked.PSet(
enable = cms.untracked.bool(False)
),
cout = cms.untracked.PSet(
enable = cms.untracked.bool(True),
threshold = cms.untracked.string('WARNING')
),
debugModules = cms.untracked.vstring('SiPixelClusterizer')
)
# pixel local reco (RecHits) needs the GenError object,
# not yet in GT, add here:
# DB stuff
useLocalDBError = True
if useLocalDBError :
process.DBReaderFrontier = cms.ESSource("PoolDBESSource",
DBParameters = cms.PSet(
messageLevel = cms.untracked.int32(0),
authenticationPath = cms.untracked.string('')
),
toGet = cms.VPSet(
cms.PSet(
record = cms.string('SiPixelGenErrorDBObjectRcd'),
# tag = cms.string("SiPixelGenErrorDBObject38Tv1")
# tag = cms.string('SiPixelGenErrorDBObject_38T_2012_IOV7_v1')
tag = cms.string('SiPixelGenErrorDBObject_38T_v1_offline')
),
),
# connect = cms.string('sqlite_file:siPixelGenErrors38T_2012_IOV7_v1.db')
# connect = cms.string('frontier://FrontierProd/CMS_COND_31X_PIXEL')
# connect = cms.string('frontier://FrontierPrep/CMS_COND_PIXEL')
connect = cms.string('frontier://FrontierProd/CMS_COND_PIXEL_000')
) # end process
process.myprefer = cms.ESPrefer("PoolDBESSource","DBReaderFrontier")
process.out = cms.OutputModule("PoolOutputModule",
fileName = cms.untracked.string('file:tracks.root'),
# fileName = cms.untracked.string('file:/afs/cern.ch/work/d/dkotlins/public/data/tracks/tracks_1_0.root'),
#outputCommands = cms.untracked.vstring("drop *","keep *_*_*_MyRawToClus") # 13.1MB per 10 events
splitLevel = cms.untracked.int32(0),
eventAutoFlushCompressedSize = cms.untracked.int32(5242880),
outputCommands = process.RECOEventContent.outputCommands, # 4.9MB per 10 events
dataset = cms.untracked.PSet(
filterName = cms.untracked.string(''),
dataTier = cms.untracked.string('RECO')
)
)
# copy the sequence below from
# RecoTracker/IterativeTracking/python/iterativeTk_cff.py - 71_pre7
process.myTracking = cms.Sequence(process.InitialStep*
process.DetachedTripletStep*
process.LowPtTripletStep*
process.PixelPairStep*
process.MixedTripletStep*
process.PixelLessStep*
process.TobTecStep*
process.earlyGeneralTracks*
# muonSeededStep*
process.preDuplicateMergingGeneralTracks*
process.generalTracksSequence*
process.ConvStep*
process.conversionStepTracks
)
#process.p = cms.Path(process.siPixelDigis)
#process.p = cms.Path(process.siPixelDigis*process.siPixelClusters)
#process.p = cms.Path(process.siPixelDigis*process.pixeltrackerlocalreco)
#process.p1 = cms.Path(process.siPixelDigis*process.siStripDigis)
# crash on strip clusters, calibration records missing? works with the 620 tag
#process.p1 = cms.Path(process.siPixelDigis*process.siStripDigis*process.trackerlocalreco)
#process.p1 = cms.Path(process.siPixelDigis*process.siStripDigis*process.trackerlocalreco*process.offlineBeamSpot)
#process.p1 = cms.Path(process.siPixelDigis*process.siStripDigis*process.trackerlocalreco*process.offlineBeamSpot*process.recopixelvertexing)
#process.p1 = cms.Path(process.siPixelDigis*process.siStripDigis*process.trackerlocalreco*process.offlineBeamSpot*process.recopixelvertexing*process.MeasurementTrackerEvent)
# trackingGlobalReco, ckftracks, iterTracking -
#process.p1 = cms.Path(process.siPixelDigis*process.siStripDigis*process.trackerlocalreco*process.offlineBeamSpot*process.recopixelvertexing*process.MeasurementTrackerEvent*process.myTracking)
process.p1 = cms.Path(process.siPixelDigis*process.siStripDigis*process.trackerlocalreco*process.offlineBeamSpot*process.siPixelClusterShapeCache*process.recopixelvertexing*process.MeasurementTrackerEvent*process.myTracking*process.vertexreco)
process.ep = cms.EndPath(process.out)
|