import FWCore.ParameterSet.Config as cms

from CalibTracker.SiStripESProducers.fake.SiStripConfObjectFakeESSource_cfi import siStripConfObjectFakeESSource

siStripConfObjectAPVPhaseOffsetsFakeESSource = cms.ESSource("SiStripConfObjectFakeESSource",
        appendToDataLabel = cms.string('apvphaseoffsets'),
        Parameters = cms.VPSet(
                cms.PSet(
                    ParameterName = cms.string("defaultPartitionNames"),
                    ParameterType = cms.string("vstring"),
                    ParameterValue = cms.vstring("TI","TO","TP","TM"),
                ),
                cms.PSet(
                    ParameterName = cms.string("defaultPhases"),
                    ParameterType = cms.string("vint32"),
                    ParameterValue = cms.vint32(66,66,66,66),
                ),
                cms.PSet(
                    ParameterName = cms.string("useEC0"),
                    ParameterType = cms.string("bool"),
                    ParameterValue = cms.bool(False),
                ),
                cms.PSet(
                    ParameterName = cms.string("badRun"),
                    ParameterType = cms.string("bool"),
                    ParameterValue = cms.bool(False),
                ),
                cms.PSet(
                    ParameterName = cms.string("magicOffset"),
                    ParameterType = cms.string("int"),
                    ParameterValue = cms.int32(9),
                ),
            )
    )
