CMS 3D CMS Logo

EcalGlobalShowerContainmentCorrectionsVsEtaESProducer Class Reference

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

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

typedef std::auto_ptr<EcalGlobalShowerContainmentCorrectionsVsEta> EcalGlobalShowerContainmentCorrectionsVsEtaESProducer::ReturnType

Definition at line 38 of file EcalGlobalShowerContainmentCorrectionsVsEtaESProducer.cc.


Constructor & Destructor Documentation

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

Definition at line 47 of file EcalGlobalShowerContainmentCorrectionsVsEtaESProducer.cc.

References edm::ESProducer::setWhatProduced().

00048 {   
00049    setWhatProduced(this);
00050 }

EcalGlobalShowerContainmentCorrectionsVsEtaESProducer::~EcalGlobalShowerContainmentCorrectionsVsEtaESProducer (  ) 

Definition at line 53 of file EcalGlobalShowerContainmentCorrectionsVsEtaESProducer.cc.

00053 { }


Member Function Documentation

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

Definition at line 61 of file EcalGlobalShowerContainmentCorrectionsVsEtaESProducer.cc.

References edmNew::copy(), EcalGlobalShowerContainmentCorrectionsVsEta::Coefficients::data, size, std, and values.

00062 {
00063 
00064    using namespace edm::es;
00065    using namespace std;
00066 
00067    auto_ptr<EcalGlobalShowerContainmentCorrectionsVsEta> pEcalGlobalShowerContainmentCorrectionsVsEta(new EcalGlobalShowerContainmentCorrectionsVsEta) ;
00068    
00069    double values[] = {   43.77,       // 3x3 
00070                          1.,      
00071                          -3.97e-006,
00072                          43.77,       // 5x5 
00073                          1.,      
00074                          -3.97e-006,
00075    };
00076    
00077    const size_t size = sizeof values / sizeof values[0];
00078    EcalGlobalShowerContainmentCorrectionsVsEta::Coefficients coeff;
00079    std::copy(values,values+size,coeff.data);
00080    pEcalGlobalShowerContainmentCorrectionsVsEta->fillCorrectionCoefficients(coeff);
00081    
00082    return pEcalGlobalShowerContainmentCorrectionsVsEta ;
00083 }


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:19:39 2009 for CMSSW by  doxygen 1.5.4