CMS 3D CMS Logo

Public Types | Public Member Functions

EcalGlobalShowerContainmentCorrectionsVsEtaESProducer Class Reference

Inheritance diagram for EcalGlobalShowerContainmentCorrectionsVsEtaESProducer:
edm::ESProducer edm::ESProxyFactoryProducer edm::eventsetup::DataProxyProvider

List of all members.

Public Types

typedef std::auto_ptr
< EcalGlobalShowerContainmentCorrectionsVsEta
ReturnType

Public Member Functions

 EcalGlobalShowerContainmentCorrectionsVsEtaESProducer (const edm::ParameterSet &)
ReturnType produce (const EcalGlobalShowerContainmentCorrectionsVsEtaRcd &)
 ~EcalGlobalShowerContainmentCorrectionsVsEtaESProducer ()

Detailed Description

Description: Trivial ESProducer to provide EventSetup with (hard coded) global shower containment corrections as a function of eta

Author:
Paolo Meridiani
Id:
EcalGlobalShowerContainmentCorrectionsVsEtaESProducer.cc,v 1.2 2007/07/16 17:24:24 meridian Exp

Definition at line 32 of file EcalGlobalShowerContainmentCorrectionsVsEtaESProducer.cc.


Member Typedef Documentation


Constructor & Destructor Documentation

EcalGlobalShowerContainmentCorrectionsVsEtaESProducer::EcalGlobalShowerContainmentCorrectionsVsEtaESProducer ( const edm::ParameterSet iConfig)
EcalGlobalShowerContainmentCorrectionsVsEtaESProducer::~EcalGlobalShowerContainmentCorrectionsVsEtaESProducer ( )

Member Function Documentation

EcalGlobalShowerContainmentCorrectionsVsEtaESProducer::ReturnType EcalGlobalShowerContainmentCorrectionsVsEtaESProducer::produce ( const EcalGlobalShowerContainmentCorrectionsVsEtaRcd iRecord)

Definition at line 61 of file EcalGlobalShowerContainmentCorrectionsVsEtaESProducer.cc.

References filterCSVwithJSON::copy, findQualityFiles::size, and makeHLTPrescaleTable::values.

{

   using namespace edm::es;
   using namespace std;

   auto_ptr<EcalGlobalShowerContainmentCorrectionsVsEta> pEcalGlobalShowerContainmentCorrectionsVsEta(new EcalGlobalShowerContainmentCorrectionsVsEta) ;
   
   double values[] = {   43.77,       // 3x3 
                         1.,      
                         -3.97e-006,
                         43.77,       // 5x5 
                         1.,      
                         -3.97e-006,
   };
   
   const size_t size = sizeof values / sizeof values[0];
   EcalGlobalShowerContainmentCorrectionsVsEta::Coefficients coeff;
   std::copy(values,values+size,coeff.data);
   pEcalGlobalShowerContainmentCorrectionsVsEta->fillCorrectionCoefficients(coeff);
   
   return pEcalGlobalShowerContainmentCorrectionsVsEta ;
}