From 43114310eae5a1c069536debd74618749e76832f Mon Sep 17 00:00:00 2001 From: efron Date: Fri, 23 Oct 2009 14:47:00 +0000 Subject: [PATCH] --- yaml --- r: 76215 b: "refs/heads/CMSSW_7_1_X" c: 3f081da7156283facdec920ec03b09940248add7 h: "refs/heads/CMSSW_7_1_X" i: 76213: 3a86fcc111c19f5353c085be21367847b15c0710 76211: d2a55b1a81daa91466143b38a22cdfe4b4e3af11 76207: dfd27db1d72b0990f5e03c934c0633681b9a8bb6 v: v3 --- [refs] | 2 +- .../src/L1CaloEcalScaleConfigOnlineProd.cc | 13 ++++++++++--- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/[refs] b/[refs] index 5a9e8ff5d729e..3a121567ff4d1 100644 --- a/[refs] +++ b/[refs] @@ -1,3 +1,3 @@ --- refs/heads/gh-pages: 09c786f70121f131b3715aaf3464996502bbeb7e -"refs/heads/CMSSW_7_1_X": 027dd27c443da16ff3ba849e1cdbb37a543e9bfc +"refs/heads/CMSSW_7_1_X": 3f081da7156283facdec920ec03b09940248add7 diff --git a/trunk/L1TriggerConfig/L1ScalesProducers/src/L1CaloEcalScaleConfigOnlineProd.cc b/trunk/L1TriggerConfig/L1ScalesProducers/src/L1CaloEcalScaleConfigOnlineProd.cc index 7d7772aadfd74..5268ce421171a 100644 --- a/trunk/L1TriggerConfig/L1ScalesProducers/src/L1CaloEcalScaleConfigOnlineProd.cc +++ b/trunk/L1TriggerConfig/L1ScalesProducers/src/L1CaloEcalScaleConfigOnlineProd.cc @@ -13,7 +13,7 @@ // // Original Author: Werner Man-Li Sun // Created: Tue Sep 16 22:43:22 CEST 2008 -// $Id: L1CaloEcalScaleOnlineProd.cc,v 1.1 2009/06/08 15:41:17 efron Exp $ +// $Id: L1CaloEcalScaleConfigOnlineProd.cc,v 1.1 2009/10/20 11:43:26 efron Exp $ // // @@ -95,7 +95,14 @@ L1CaloEcalScaleConfigOnlineProd::newObject( const std::string& objectKey ) { using namespace edm::es; - + if(objectKey == "NULL") // return default blank ecal scale + return boost::shared_ptr< L1CaloEcalScale >( ecalScale ); + if(objectKey == "IDENTITY"){ // return identity ecal scale + ecalScale = 0; + ecalScale = new L1CaloEcalScale(1); + return boost::shared_ptr< L1CaloEcalScale >( ecalScale); + } + double ee_lsb = 0.; double eb_lsb = 0.; @@ -164,7 +171,7 @@ L1CaloEcalScaleConfigOnlineProd::newObject( const std::string& objectKey ) } } - // std::cout << " eb lsb " << eb_lsb << " ee_lsb " << ee_lsb << std::endl; + // std::cout << " eb lsb " << eb_lsb << " ee_lsb " << ee_lsb << std::endl; std::vector< std::string > grpLUT; grpLUT.push_back("GROUP_ID");