import FWCore.ParameterSet.Config as cms

# SiPixelMonitorTrackResiduals
from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
SiPixelMonitorTrackResiduals = DQMEDAnalyzer("SiPixelMonitorTrackResiduals",
    OutputMEsInRootFile = cms.bool(False),
    # should histogramms on module level be booked and filled?
    Mod_On = cms.bool(False),
    VertexCut = cms.untracked.bool(True),
    OutputFileName = cms.string('test_monitortracks.root'),
    genericTriggerEventPSet = cms.PSet(),                                              
    # bining and range for absolute and normalized residual histogramms
    TH1ResModules = cms.PSet(
        xmin = cms.double(-0.05),   # native unit in CMS is [cm], so these are 500um
        Nbinx = cms.int32(100),
        xmax = cms.double(0.05)
    ),
    TH1NormResModules = cms.PSet(
        xmin = cms.double(-5.0),
        Nbinx = cms.int32(100),
        xmax = cms.double(5.0)
    ),
    # input for Tracks and Trajectories, should be TrackRefitter
    # or similar
    Tracks = cms.InputTag("refittedForPixelDQM"),
    trajectoryInput = cms.string("refittedForPixelDQM"),
    # should all MEs be reset after each run?
    ResetAfterRun = cms.bool(True)
)


