CMS 3D CMS Logo

Public Types | Public Member Functions

EcalBasicClusterLocalContCorrectionsESProducer Class Reference

#include <User/EcalBasicClusterLocalContCorrectionsESProducer/interface/EcalBasicClusterLocalContCorrectionsESProducer.h>

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

List of all members.

Public Types

typedef std::auto_ptr
< EcalClusterLocalContCorrParameters
ReturnType

Public Member Functions

 EcalBasicClusterLocalContCorrectionsESProducer (const edm::ParameterSet &)
ReturnType produce (const EcalClusterLocalContCorrParametersRcd &)
 ~EcalBasicClusterLocalContCorrectionsESProducer ()

Detailed Description

Description: Trivial ESProducer to provide EventSetup with (hard coded) shower containment corrections

Author:
Stefano Argiro Created: Mon Mar 5 08:39:12 CET 2007
Id:
EcalBasicClusterLocalContCorrectionsESProducer.h,v 1.1 2012/04/19 13:13:10 argiro Exp

Definition at line 21 of file EcalBasicClusterLocalContCorrectionsESProducer.h.


Member Typedef Documentation


Constructor & Destructor Documentation

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

Definition at line 19 of file EcalBasicClusterLocalContCorrectionsESProducer.cc.

{ }

Member Function Documentation

EcalBasicClusterLocalContCorrectionsESProducer::ReturnType EcalBasicClusterLocalContCorrectionsESProducer::produce ( const EcalClusterLocalContCorrParametersRcd iRecord)

Definition at line 27 of file EcalBasicClusterLocalContCorrectionsESProducer.cc.

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

{

   using namespace edm::es;
   using namespace std;

   auto_ptr<EcalClusterLocalContCorrParameters> pEcalClusterLocalContCorrParameters(new EcalClusterLocalContCorrParameters) ;

   double values[] = {  1.00603 , 0.00300789 , 0.0667232 , // local eta, mod1
                        1.00655 , 0.00386189 , 0.073931  , // local eta, mod2
                        1.00634 , 0.00631341 , 0.0764134 , // local eta, mod3
                        1.00957 , 0.0113306 , 0.123808   , // local eta, mod4
                        1.00402 , 0.00108324 , 0.0428149 , // local phi, mod1
                        1.00393 , 0.000937121 , 0.041658 , // local phi, mod2
                        1.00299 , 0.00126836 , 0.0321188 , // local phi, mod3
                        1.00279 , -0.000700709 , 0.0293207 // local phi, mod4
   };

   size_t size = 24;
   pEcalClusterLocalContCorrParameters->params().resize(size);
   std::copy(values,values+size,pEcalClusterLocalContCorrParameters->params().begin());
   
   return pEcalClusterLocalContCorrParameters ;
}