Public Types | |
typedef std::auto_ptr < EcalGlobalShowerContainmentCorrectionsVsEta > | ReturnType |
Public Member Functions | |
EcalGlobalShowerContainmentCorrectionsVsEtaESProducer (const edm::ParameterSet &) | |
ReturnType | produce (const EcalGlobalShowerContainmentCorrectionsVsEtaRcd &) |
~EcalGlobalShowerContainmentCorrectionsVsEtaESProducer () |
Definition at line 32 of file EcalGlobalShowerContainmentCorrectionsVsEtaESProducer.cc.
typedef std::auto_ptr<EcalGlobalShowerContainmentCorrectionsVsEta> EcalGlobalShowerContainmentCorrectionsVsEtaESProducer::ReturnType |
Definition at line 38 of file EcalGlobalShowerContainmentCorrectionsVsEtaESProducer.cc.
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 | ( | ) |
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 }