import FWCore.ParameterSet.Config as cms

from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
SiPixelTrackResidualSource_Cosmics = DQMEDAnalyzer('SiPixelTrackResidualSource',
    TopFolderName = cms.string('Pixel'),
    src = cms.InputTag("siPixelTrackResiduals"),
    clustersrc = cms.InputTag("siPixelClusters"),
    tracksrc   = cms.InputTag("ctfWithMaterialTracksP5"),
    debug = cms.untracked.bool(False),                          
    saveFile = cms.untracked.bool(False),
    outputFile = cms.string('Pixel_DQM_TrackResidual.root'),
# (SK) keep rstracks commented out in case of resurrection
#    TrackCandidateProducer = cms.string('rsTrackCandidatesP5'),
    TrackCandidateProducer = cms.string('ckfTrackCandidatesP5'),
    TrackCandidateLabel = cms.string(''),
    TTRHBuilder = cms.string('WithTrackAngle'),
    Fitter = cms.string('KFFittingSmootherWithOutliersRejectionAndRK'),
    modOn = cms.untracked.bool(False),
    reducedSet = cms.untracked.bool(True),
    ladOn = cms.untracked.bool(True),
    layOn = cms.untracked.bool(True),
    phiOn = cms.untracked.bool(True),
    ringOn = cms.untracked.bool(True),
    bladeOn = cms.untracked.bool(True),
    diskOn = cms.untracked.bool(True),
    PtMinRes = cms.untracked.double(4.0),
    digisrc = cms.InputTag("siPixelDigis"),                                                    
# (SK) keep rstracks commented out in case of resurrection
#    trajectoryInput = cms.InputTag('rsWithMaterialTracksP5')              
    trajectoryInput = cms.InputTag('ctfWithMaterialTracksP5')              
)
