Public Types | |
typedef std::auto_ptr < EcalClusterLocalContCorrParameters > | ReturnType |
Public Member Functions | |
EcalBasicClusterLocalContCorrectionsESProducer (const edm::ParameterSet &) | |
ReturnType | produce (const EcalClusterLocalContCorrParametersRcd &) |
~EcalBasicClusterLocalContCorrectionsESProducer () |
Description: Trivial ESProducer to provide EventSetup with (hard coded) shower containment corrections
Definition at line 21 of file EcalBasicClusterLocalContCorrectionsESProducer.h.
typedef std::auto_ptr<EcalClusterLocalContCorrParameters> EcalBasicClusterLocalContCorrectionsESProducer::ReturnType |
Definition at line 27 of file EcalBasicClusterLocalContCorrectionsESProducer.h.
EcalBasicClusterLocalContCorrectionsESProducer::EcalBasicClusterLocalContCorrectionsESProducer | ( | const edm::ParameterSet & | iConfig | ) |
Definition at line 13 of file EcalBasicClusterLocalContCorrectionsESProducer.cc.
References edm::ESProducer::setWhatProduced().
{ setWhatProduced(this); }
EcalBasicClusterLocalContCorrectionsESProducer::~EcalBasicClusterLocalContCorrectionsESProducer | ( | ) |
Definition at line 19 of file EcalBasicClusterLocalContCorrectionsESProducer.cc.
{ }
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 ; }