Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alignment LA correction for pixels #2067

Merged
merged 20 commits into from
Mar 13, 2014
Merged
Show file tree
Hide file tree
Changes from 10 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
108 changes: 108 additions & 0 deletions EventFilter/SiPixelRawToDigi/test/runRawToClus_cfg.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
import FWCore.ParameterSet.Config as cms

process = cms.Process("MyRawToClus")

process.load("FWCore.MessageLogger.MessageLogger_cfi")
#process.load("Configuration.Geometry.GeometryIdeal_cff")
process.load('Configuration.StandardSequences.GeometryRecoDB_cff')
#process.load("Configuration.StandardSequences.MagneticField_38T_cff")
process.load('Configuration.StandardSequences.MagneticField_AutoFromDBCurrent_cff')
process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
process.load("Configuration.StandardSequences.Services_cff")

# for strips
#process.load("CalibTracker.SiStripESProducers.SiStripGainSimESProducer_cfi")

process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(1000))

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",
)
)

#process.load("Geometry.TrackerSimData.trackerSimGeometryXML_cfi")
#process.load("Geometry.TrackerGeometryBuilder.trackerGeometry_cfi")
#process.load("Geometry.TrackerNumberingBuilder.trackerNumberingGeometry_cfi")
#process.load("Configuration.StandardSequences.MagneticField_cff")

# Cabling
# include "CalibTracker/Configuration/data/Tracker_FakeConditions.cff"
#process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
#process.GlobalTag.connect = "frontier://FrontierProd/CMS_COND_21X_GLOBALTAG"
#process.GlobalTag.globaltag = "CRAFT_V3P::All"
#process.es_prefer_GlobalTag = cms.ESPrefer('PoolDBESSource','GlobalTag')

#process.load("CalibTracker.Configuration.SiPixel_FakeConditions_cff")
#process.load("CalibTracker.Configuration.SiPixelCabling.SiPixelCabling_SQLite_cff")
#process.siPixelCabling.connect = 'sqlite_file:cabling.db'
#process.siPixelCabling.toGet = cms.VPSet(cms.PSet(
# record = cms.string('SiPixelFedCablingMapRcd'),
# tag = cms.string('SiPixelFedCablingMap_v14')
#))


# Choose the global tag here:
#process.GlobalTag.globaltag = "GR_P_V40::All"
process.GlobalTag.globaltag = "GR_R_62_V1::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",
debugModules = cms.untracked.vstring('SiPixelClusterizer'),
destinations = cms.untracked.vstring('cout'),
# destinations = cms.untracked.vstring("log","cout"),
cout = cms.untracked.PSet(
# threshold = cms.untracked.string('INFO')
# threshold = cms.untracked.string('ERROR')
threshold = cms.untracked.string('WARNING')
)
# log = cms.untracked.PSet(
# threshold = cms.untracked.string('DEBUG')
# )
)

process.load('Configuration.EventContent.EventContent_cff')
process.load('Configuration.StandardSequences.EndOfProcess_cff')

process.out = cms.OutputModule("PoolOutputModule",
# fileName = cms.untracked.string('file:digis.root'),
fileName = cms.untracked.string('file:/afs/cern.ch/work/d/dkotlins/public/data/clus/clus_1k.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')
)

)

#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.ep = cms.EndPath(process.out)
23 changes: 14 additions & 9 deletions EventFilter/SiPixelRawToDigi/test/runRawToDigi_cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,25 @@

process = cms.Process("MyRawToDigi")

process.load("FWCore.MessageLogger.MessageLogger_cfi")
#process.load("Configuration.Geometry.GeometryIdeal_cff")
process.load('Configuration.StandardSequences.GeometryRecoDB_cff')
#process.load("Configuration.StandardSequences.MagneticField_38T_cff")
process.load('Configuration.StandardSequences.MagneticField_AutoFromDBCurrent_cff')
process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
process.load("Configuration.StandardSequences.Services_cff")
process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")

process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(1000))

process.source = cms.Source("PoolSource",
# fileNames = cms.untracked.vstring('file:rawdata.root')
# fileNames = cms.untracked.vstring('file:/scratch/dkotlins/COSMIC/RAW/002C2E77-8CD5-DE11-9533-000423D944FC.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/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",
)
)

process.load("Geometry.TrackerSimData.trackerSimGeometryXML_cfi")
process.load("Geometry.TrackerGeometryBuilder.trackerGeometry_cfi")
process.load("Geometry.TrackerNumberingBuilder.trackerNumberingGeometry_cfi")
process.load("Configuration.StandardSequences.MagneticField_cff")

# Cabling
# include "CalibTracker/Configuration/data/Tracker_FakeConditions.cff"
#process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
Expand All @@ -33,7 +37,7 @@
#))


process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")# Choose the global tag here:
# Choose the global tag here:
process.GlobalTag.globaltag = "GR_P_V40::All"


Expand All @@ -54,7 +58,8 @@
)

process.out = cms.OutputModule("PoolOutputModule",
fileName = cms.untracked.string('file:/afs/cern.ch/work/d/dkotlins/public/digis.root'),
# fileName = cms.untracked.string('file:digis.root'),
fileName = cms.untracked.string('file:/afs/cern.ch/work/d/dkotlins/public/data/digis/digis_1k.root'),
outputCommands = cms.untracked.vstring("drop *","keep *_siPixelDigis_*_*")
)

Expand Down
133 changes: 133 additions & 0 deletions EventFilter/SiPixelRawToDigi/test/runRawToTracks_cfg.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
import FWCore.ParameterSet.Config as cms

process = cms.Process("MyRawToTracks")

process.load("FWCore.MessageLogger.MessageLogger_cfi")
#process.load("Configuration.Geometry.GeometryIdeal_cff")
process.load('Configuration.StandardSequences.GeometryRecoDB_cff')
#process.load("Configuration.StandardSequences.MagneticField_38T_cff")
process.load('Configuration.StandardSequences.MagneticField_AutoFromDBCurrent_cff')
process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
process.load("Configuration.StandardSequences.Services_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)
)

#process.load("Geometry.TrackerSimData.trackerSimGeometryXML_cfi")
#process.load("Geometry.TrackerGeometryBuilder.trackerGeometry_cfi")
#process.load("Geometry.TrackerNumberingBuilder.trackerNumberingGeometry_cfi")
#process.load("Configuration.StandardSequences.MagneticField_cff")

# Cabling
# include "CalibTracker/Configuration/data/Tracker_FakeConditions.cff"
#process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
#process.GlobalTag.connect = "frontier://FrontierProd/CMS_COND_21X_GLOBALTAG"
#process.GlobalTag.globaltag = "CRAFT_V3P::All"
#process.es_prefer_GlobalTag = cms.ESPrefer('PoolDBESSource','GlobalTag')

#process.load("CalibTracker.Configuration.SiPixel_FakeConditions_cff")
#process.load("CalibTracker.Configuration.SiPixelCabling.SiPixelCabling_SQLite_cff")
#process.siPixelCabling.connect = 'sqlite_file:cabling.db'
#process.siPixelCabling.toGet = cms.VPSet(cms.PSet(
# record = cms.string('SiPixelFedCablingMapRcd'),
# tag = cms.string('SiPixelFedCablingMap_v14')
#))


# Choose the global tag here:
#process.GlobalTag.globaltag = "GR_P_V40::All"
process.GlobalTag.globaltag = "GR_R_62_V1::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",
debugModules = cms.untracked.vstring('SiPixelClusterizer'),
destinations = cms.untracked.vstring('cout'),
# destinations = cms.untracked.vstring("log","cout"),
cout = cms.untracked.PSet(
# threshold = cms.untracked.string('INFO')
# threshold = cms.untracked.string('ERROR')
threshold = cms.untracked.string('WARNING')
)
# log = cms.untracked.PSet(
# threshold = cms.untracked.string('DEBUG')
# )
)

process.load('Configuration.EventContent.EventContent_cff')
process.load('Configuration.StandardSequences.EndOfProcess_cff')

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
process.myTracking = cms.Sequence(process.InitialStep*
process.LowPtTripletStep*
process.PixelPairStep*
process.DetachedTripletStep*
process.MixedTripletStep*
process.PixelLessStep*
process.TobTecStep*
process.earlyGeneralTracks*
#process.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.recopixelvertexing*process.MeasurementTrackerEvent*process.myTracking*process.vertexreco)

process.ep = cms.EndPath(process.out)
12 changes: 6 additions & 6 deletions RecoLocalTracker/SiPixelClusterizer/test/BuildFile.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
<flags EDM_PLUGIN="1"/>
<library file="TestClusters.cc" name="TestClusters">
</library>
#<flags EDM_PLUGIN="1"/>
#<library file="TestWithTracks.cc" name="TestWithTracks">
#</library>
#<flags EDM_PLUGIN="1"/>
#<library file="Triplet.cc" name="Triplet">
#</library>
<flags EDM_PLUGIN="1"/>
<library file="TestWithTracks.cc" name="TestWithTracks">
</library>
<flags EDM_PLUGIN="1"/>
<library file="Triplet.cc" name="Triplet">
</library>
Loading