Public Types | |
typedef std::auto_ptr < EcalGlobalShowerContainmentCorrectionsVsEta > | ReturnType |
Public Member Functions | |
EcalGlobalShowerContainmentCorrectionsVsEtaESProducer (const edm::ParameterSet &) | |
ReturnType | produce (const EcalGlobalShowerContainmentCorrectionsVsEtaRcd &) |
~EcalGlobalShowerContainmentCorrectionsVsEtaESProducer () |
Description: Trivial ESProducer to provide EventSetup with (hard coded) global shower containment corrections as a function of eta
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().
{ setWhatProduced(this); }
EcalGlobalShowerContainmentCorrectionsVsEtaESProducer::~EcalGlobalShowerContainmentCorrectionsVsEtaESProducer | ( | ) |
Definition at line 53 of file EcalGlobalShowerContainmentCorrectionsVsEtaESProducer.cc.
{ }
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 ; }