import FWCore.ParameterSet.Config as cms
from DQM.SiTrackerPhase2.Phase2TrackerMonitorDigi_cfi import *

pixDigiMon = digiMon.clone(
    PixelPlotFillingFlag = True,
    StandAloneClusteriserFlag = False,
    TopFolderName = "TrackerPhase2ITDigi",
    NumberOfDigisPerDetH = digiMon.NumberOfDigisPerDetH.clone(
        Nbins = 500,
        xmin = -0.5,
        xmax = 999.5,
        switch = True
    ),
    NumberOfClustersPerDetH = digiMon.NumberOfClustersPerDetH.clone(
        Nbins = 200,
        xmin = 0.0,
        xmax = 2000.,
        switch = True
    ),
    ChargeXYMapH = digiMon.ChargeXYMapH.clone(
        Nxbins = 450,
        xmin = 0.5,
        xmax = 450.5,
        Nybins = 1350,
        ymin = 0.5,
        ymax = 1350.5,
        switch = False
    ),
    PositionOfDigisPH = digiMon.PositionOfDigisPH.clone(
        Nxbins = 675,
        xmin = 0.5,
        xmax = 1350.5,
        Nybins = 225,
        ymin = 0.5,
        ymax = 450.5,
        switch = True
    ),
    XYPositionMapH = digiMon.XYPositionMapH.clone(
        Nxbins = 340,
        xmin = -170.,
        xmax = 170.,
        Nybins = 340,
        ymin = -170.,
        ymax = 170.,
        switch = True
    ),
    RZPositionMapH = digiMon.RZPositionMapH.clone(
        Nxbins = 600,
        xmin = -3000.0,
        xmax = 3000.,
        Nybins = 280,
        ymin = 0.,
        ymax = 280.,
        switch = True
    ),
    ClusterPositionPH = digiMon.ClusterPositionPH.clone(
        Nxbins = 960,
        xmin = 0.5,
        xmax = 960.5,
        Nybins = 32,
        ymin = 0.5,
        ymax = 32.5,
        switch = True
    )
)

otDigiMon = digiMon.clone(
    PixelPlotFillingFlag = False,
    StandAloneClusteriserFlag = False,
    TopFolderName = "TrackerPhase2OTDigi",
    XYPositionMapH = digiMon.XYPositionMapH.clone(
        Nxbins = 250,
        xmin = -1250.,
        xmax = 1250.,
        Nybins = 250,
        ymin = -1250.,
        ymax = 1250.,
        switch = True
    ),
    RZPositionMapH = digiMon.RZPositionMapH.clone(
        Nxbins = 600,
        xmin = -3000.,
        xmax = 3000.,
        Nybins = 250,
        ymin = 0.,
        ymax = 1250.,
        switch = True
    ),
    PositionOfDigisSH = digiMon.PositionOfDigisSH.clone(
        Nxbins = 508,
        xmin = 0.5,
        xmax = 1016.5,
        Nybins = 2,
        ymin = 0.5,
        ymax = 2.5,
        switch = True
    )
)
