Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 77839
b: "refs/heads/CMSSW_7_1_X"
c: 6a8c912
h: "refs/heads/CMSSW_7_1_X"
i:
  77837: b460409
  77835: c30cf44
  77831: 48edaf2
  77823: b3b949c
v: v3
  • Loading branch information
Francesca Cavallari committed Nov 13, 2009
1 parent 5cd9ce5 commit 8929b51
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
refs/heads/gh-pages: 09c786f70121f131b3715aaf3464996502bbeb7e
"refs/heads/CMSSW_7_1_X": d61d086b5012b01904798f3bcfb0b2e933194261
"refs/heads/CMSSW_7_1_X": 6a8c91236e7848cca29db452dabb5af01725019b
15 changes: 14 additions & 1 deletion trunk/CondTools/Ecal/src/EcalDBCopy.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -132,7 +134,9 @@ bool EcalDBCopy::shouldCopy(const edm::EventSetup& evtSetup, std::string contain
cacheID = evtSetup.get<EcalClusterEnergyCorrectionParametersRcd>().cacheIdentifier();
} else if (container == "EcalClusterLocalContCorrParameters") {
cacheID = evtSetup.get<EcalClusterLocalContCorrParametersRcd>().cacheIdentifier();
}
} else if (container == "EcalTPGCrystalStatus") {
cacheID = evtSetup.get<EcalTPGCrystalStatusRcd>().cacheIdentifier();
}

else {
throw cms::Exception("Unknown container");
Expand Down Expand Up @@ -191,6 +195,15 @@ void EcalDBCopy::copyToDB(const edm::EventSetup& evtSetup, std::string container
dbOutput->createNewIOV<const EcalChannelStatus>( new EcalChannelStatus(*obj),dbOutput->beginOfTime(), dbOutput->endOfTime(),recordName);


} else if (container == "EcalTPGCrystalStatus") {
edm::ESHandle<EcalTPGCrystalStatus> handle;
evtSetup.get<EcalTPGCrystalStatusRcd>().get(handle);
const EcalTPGCrystalStatus* obj = handle.product();
cout << "TPG channel status pointer is: "<< obj<< endl;

dbOutput->createNewIOV<const EcalTPGCrystalStatus>( new EcalTPGCrystalStatus(*obj),dbOutput->beginOfTime(), dbOutput->endOfTime(),recordName);


}
else if (container == "EcalIntercalibConstants") {
edm::ESHandle<EcalIntercalibConstants> handle;
Expand Down

0 comments on commit 8929b51

Please sign in to comment.