From 8929b51665bc54a403b9891be15f1c966cefc1e7 Mon Sep 17 00:00:00 2001 From: Francesca Cavallari Date: Fri, 13 Nov 2009 11:23:17 +0000 Subject: [PATCH] --- yaml --- r: 77839 b: "refs/heads/CMSSW_7_1_X" c: 6a8c91236e7848cca29db452dabb5af01725019b h: "refs/heads/CMSSW_7_1_X" i: 77837: b460409ca380bdd49a31b904305a9be084c05a75 77835: c30cf44c2807ebae7be26f03ac4c5d29cf4c3658 77831: 48edaf26b99b36d22b1bcb367ceab24145d8bcc3 77823: b3b949c42cb5d133d41850e41390cead8e56f795 v: v3 --- [refs] | 2 +- trunk/CondTools/Ecal/src/EcalDBCopy.cc | 15 ++++++++++++++- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 433bf0ad2d77d..a6786f2a32cf9 100644 --- a/[refs] +++ b/[refs] @@ -1,3 +1,3 @@ --- refs/heads/gh-pages: 09c786f70121f131b3715aaf3464996502bbeb7e -"refs/heads/CMSSW_7_1_X": d61d086b5012b01904798f3bcfb0b2e933194261 +"refs/heads/CMSSW_7_1_X": 6a8c91236e7848cca29db452dabb5af01725019b diff --git a/trunk/CondTools/Ecal/src/EcalDBCopy.cc b/trunk/CondTools/Ecal/src/EcalDBCopy.cc index 5befc7684be04..0c1136064500e 100644 --- a/trunk/CondTools/Ecal/src/EcalDBCopy.cc +++ b/trunk/CondTools/Ecal/src/EcalDBCopy.cc @@ -35,6 +35,8 @@ #include "CondFormats/DataRecord/interface/EcalLaserAPDPNRatiosRcd.h" #include "CondFormats/EcalObjects/interface/EcalLaserAPDPNRatiosRef.h" #include "CondFormats/DataRecord/interface/EcalLaserAPDPNRatiosRefRcd.h" +#include "CondFormats/EcalObjects/interface/EcalTPGCrystalStatus.h" +#include "CondFormats/DataRecord/interface/EcalTPGCrystalStatusRcd.h" #include "CondFormats/EcalObjects/interface/EcalClusterCrackCorrParameters.h" #include "CondFormats/DataRecord/interface/EcalClusterCrackCorrParametersRcd.h" @@ -132,7 +134,9 @@ bool EcalDBCopy::shouldCopy(const edm::EventSetup& evtSetup, std::string contain cacheID = evtSetup.get().cacheIdentifier(); } else if (container == "EcalClusterLocalContCorrParameters") { cacheID = evtSetup.get().cacheIdentifier(); - } + } else if (container == "EcalTPGCrystalStatus") { + cacheID = evtSetup.get().cacheIdentifier(); + } else { throw cms::Exception("Unknown container"); @@ -191,6 +195,15 @@ void EcalDBCopy::copyToDB(const edm::EventSetup& evtSetup, std::string container dbOutput->createNewIOV( new EcalChannelStatus(*obj),dbOutput->beginOfTime(), dbOutput->endOfTime(),recordName); + } else if (container == "EcalTPGCrystalStatus") { + edm::ESHandle handle; + evtSetup.get().get(handle); + const EcalTPGCrystalStatus* obj = handle.product(); + cout << "TPG channel status pointer is: "<< obj<< endl; + + dbOutput->createNewIOV( new EcalTPGCrystalStatus(*obj),dbOutput->beginOfTime(), dbOutput->endOfTime(),recordName); + + } else if (container == "EcalIntercalibConstants") { edm::ESHandle handle;