import FWCore.ParameterSet.Config as cms
from Validation.SiTrackerPhase2V.Phase2TrackerValidateDigi_cfi import *


pixDigiValid = digiValid.clone()
pixDigiValid.PixelPlotFillingFlag = cms.bool(True)
pixDigiValid.TopFolderName = cms.string("TrackerPhase2ITDigi")
pixDigiValid.XYPositionMapH = cms.PSet(
    Nxbins = cms.int32(340),
    xmin   = cms.double(-170.),
    xmax   = cms.double(170.),
    Nybins = cms.int32(340),
    ymin   = cms.double(-170.),
    ymax   = cms.double(170.),
    switch = cms.bool(False))
pixDigiValid.RZPositionMapH = cms.PSet(
    Nxbins = cms.int32(1000),
    xmin   = cms.double(-3000.0),
    xmax   = cms.double(3000.),
    Nybins = cms.int32(280),
    ymin   = cms.double(0.),
    ymax   = cms.double(280.),
    switch = cms.bool(False))
pixDigiValid.TOFZMapH = cms.PSet(
    Nxbins = cms.int32(1200),
    xmin   = cms.double(-300.),
    xmax   = cms.double(300.),
    Nybins = cms.int32(100),
    ymin   = cms.double(0.),
    ymax   = cms.double(50.),
    switch = cms.bool(False))

otDigiValid = digiValid.clone()
otDigiValid.PixelPlotFillingFlag = cms.bool(False)
otDigiValid.TopFolderName = cms.string("TrackerPhase2OTDigi")
otDigiValid.XYPositionMapH = cms.PSet(
    Nxbins = cms.int32(625),
    xmin   = cms.double(-1250.),
    xmax   = cms.double(1250.),
    Nybins = cms.int32(625),
    ymin   = cms.double(-1250.),
    ymax   = cms.double(1250.),
    switch = cms.bool(False))
otDigiValid.RZPositionMapH = cms.PSet(
    Nxbins = cms.int32(600),
    xmin   = cms.double(-3000.),
    xmax   = cms.double(3000.),
    Nybins = cms.int32(250),
    ymin   = cms.double(0.),
    ymax   = cms.double(1250.),
    switch = cms.bool(False))
otDigiValid.TOFZMapH = cms.PSet(
    Nxbins = cms.int32(1200),
    xmin   = cms.double(-300.),
    xmax   = cms.double(300.),
    Nybins = cms.int32(100),
    ymin   = cms.double(0.),
    ymax   = cms.double(50.),
    switch = cms.bool(False))
