Line Code
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
import FWCore.ParameterSet.Config as cms

# MonitorTrackResiduals
from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
MonitorTrackResiduals = DQMEDAnalyzer("MonitorTrackResiduals",
    OutputMEsInRootFile = cms.bool(False),
    # should histogramms on module level be booked and filled?
    Mod_On = cms.bool(True),
    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("TrackRefitter"),
    trajectoryInput = cms.string('TrackRefitter'),
    # should all MEs be reset after each run?
    ResetAfterRun = cms.bool(True)
)