import FWCore.ParameterSet.Config as cms
# PS in RunE and RunF have the wrong IOV (bugged)
from CondCore.DBCommon.CondDBSetup_cfi import *

RerecoGlobalTag = cms.ESSource("PoolDBESSource",
                               CondDBSetup,
                               connect = cms.string('frontier://FrontierProd/CMS_CONDITIONS'),
                               globaltag = cms.string('92X_dataRun2_2017Repro_Candidate_2017_11_10_15_04_54'),
                               snapshotTime = cms.string("9999-12-31 23:59:59.000"),
                               toGet = cms.VPSet(
        # cms.PSet(record = cms.string("EcalPulseShapesRcd"),
        #          tag = cms.string("EcalPulseShapes_1IOV_v1"),
        #          connect = cms.string("frontier://FrontierPrep/CMS_CONDITIONS"),
        #          ),
        cms.PSet(record = cms.string("EcalPedestalsRcd"),
                 tag = cms.string("EcalPedestals_1IOV_v1"),
                 connect = cms.string("frontier://FrontierPrep/CMS_CONDITIONS"),
                 ),
        cms.PSet(record = cms.string("EcalIntercalibConstantsRcd"),
                 tag = cms.string("EcalIntercalibConstants_1IOV_v1"),
                 connect = cms.string("frontier://FrontierPrep/CMS_CONDITIONS"),
                 ),
        ),
                               )
