CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
EcalUncalibRecHitWorkerMaxSample Class Reference

#include <EcalUncalibRecHitWorkerMaxSample.h>

Inheritance diagram for EcalUncalibRecHitWorkerMaxSample:
EcalUncalibRecHitWorkerRunOneDigiBase EcalUncalibRecHitWorkerBaseClass

Public Member Functions

 EcalUncalibRecHitWorkerMaxSample (const edm::ParameterSet &ps, edm::ConsumesCollector &c)
 
 EcalUncalibRecHitWorkerMaxSample ()
 
edm::ParameterSetDescription getAlgoDescription () override
 
bool run (const edm::Event &evt, const EcalDigiCollection::const_iterator &digi, EcalUncalibratedRecHitCollection &result) override
 
void set (const edm::EventSetup &es) override
 
 ~EcalUncalibRecHitWorkerMaxSample () override
 
- Public Member Functions inherited from EcalUncalibRecHitWorkerRunOneDigiBase
 EcalUncalibRecHitWorkerRunOneDigiBase (const edm::ParameterSet &p, edm::ConsumesCollector &c)
 
 EcalUncalibRecHitWorkerRunOneDigiBase (const edm::ParameterSet &p)
 
 EcalUncalibRecHitWorkerRunOneDigiBase ()
 
void run (const edm::Event &evt, const EcalDigiCollection &digis, EcalUncalibratedRecHitCollection &result) override
 
 ~EcalUncalibRecHitWorkerRunOneDigiBase () override
 
- Public Member Functions inherited from EcalUncalibRecHitWorkerBaseClass
 EcalUncalibRecHitWorkerBaseClass (const edm::ParameterSet &, edm::ConsumesCollector &c)
 
 EcalUncalibRecHitWorkerBaseClass (const edm::ParameterSet &)
 
 EcalUncalibRecHitWorkerBaseClass ()
 
virtual void set (const edm::Event &evt)
 
virtual ~EcalUncalibRecHitWorkerBaseClass ()
 

Private Attributes

EcalUncalibRecHitMaxSampleAlgo< EBDataFrameebAlgo_
 
EcalUncalibRecHitMaxSampleAlgo< EEDataFrameeeAlgo_
 

Detailed Description

Definition at line 17 of file EcalUncalibRecHitWorkerMaxSample.h.

Constructor & Destructor Documentation

EcalUncalibRecHitWorkerMaxSample::EcalUncalibRecHitWorkerMaxSample ( const edm::ParameterSet ps,
edm::ConsumesCollector c 
)
EcalUncalibRecHitWorkerMaxSample::EcalUncalibRecHitWorkerMaxSample ( )
inline

Definition at line 21 of file EcalUncalibRecHitWorkerMaxSample.h.

21 {};
EcalUncalibRecHitWorkerMaxSample::~EcalUncalibRecHitWorkerMaxSample ( )
inlineoverride

Definition at line 22 of file EcalUncalibRecHitWorkerMaxSample.h.

References mps_fire::result, and findQualityFiles::run.

22 {};

Member Function Documentation

edm::ParameterSetDescription EcalUncalibRecHitWorkerMaxSample::getAlgoDescription ( )
overridevirtual

Implements EcalUncalibRecHitWorkerBaseClass.

Definition at line 57 of file EcalUncalibRecHitWorkerMaxSample.cc.

References DEFINE_EDM_PLUGIN.

57  {
58 
60  return psd;//.addNode(std::unique_ptr<edm::ParameterDescriptionNode>(new edm::EmptyGroupDescription()));
61 }
bool EcalUncalibRecHitWorkerMaxSample::run ( const edm::Event evt,
const EcalDigiCollection::const_iterator digi,
EcalUncalibratedRecHitCollection result 
)
overridevirtual

Implements EcalUncalibRecHitWorkerRunOneDigiBase.

Definition at line 41 of file EcalUncalibRecHitWorkerMaxSample.cc.

References ebAlgo_, EcalBarrel, eeAlgo_, EcalUncalibRecHitMaxSampleAlgo< C >::makeRecHit(), and edm::SortedCollection< T, SORT >::push_back().

44 {
45  DetId detid(itdg->id());
46 
47  if ( detid.subdetId() == EcalBarrel ) {
48  result.push_back( ebAlgo_.makeRecHit(*itdg, nullptr, nullptr, nullptr, nullptr ) );
49  } else {
50  result.push_back( eeAlgo_.makeRecHit(*itdg, nullptr, nullptr, nullptr, nullptr ) );
51  }
52 
53  return true;
54 }
void push_back(T const &t)
Definition: DetId.h:18
EcalUncalibRecHitMaxSampleAlgo< EBDataFrame > ebAlgo_
EcalUncalibratedRecHit makeRecHit(const C &dataFrame, const double *pedestals, const double *gainRatios, const EcalWeightSet::EcalWeightMatrix **weights, const EcalWeightSet::EcalChi2WeightMatrix **chi2Matrix) override
compute rechits
EcalUncalibRecHitMaxSampleAlgo< EEDataFrame > eeAlgo_
void EcalUncalibRecHitWorkerMaxSample::set ( const edm::EventSetup es)
overridevirtual

Implements EcalUncalibRecHitWorkerBaseClass.

Definition at line 36 of file EcalUncalibRecHitWorkerMaxSample.cc.

37 {
38 }

Member Data Documentation

EcalUncalibRecHitMaxSampleAlgo<EBDataFrame> EcalUncalibRecHitWorkerMaxSample::ebAlgo_
private

Definition at line 30 of file EcalUncalibRecHitWorkerMaxSample.h.

Referenced by run().

EcalUncalibRecHitMaxSampleAlgo<EEDataFrame> EcalUncalibRecHitWorkerMaxSample::eeAlgo_
private

Definition at line 31 of file EcalUncalibRecHitWorkerMaxSample.h.

Referenced by run().