CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
EcalUncalibRecHitWorkerMaxSample Class Reference
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 25 of file EcalUncalibRecHitWorkerMaxSample.cc.

Constructor & Destructor Documentation

◆ EcalUncalibRecHitWorkerMaxSample() [1/2]

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

◆ EcalUncalibRecHitWorkerMaxSample() [2/2]

EcalUncalibRecHitWorkerMaxSample::EcalUncalibRecHitWorkerMaxSample ( )
inline

Definition at line 28 of file EcalUncalibRecHitWorkerMaxSample.cc.

28 {};

◆ ~EcalUncalibRecHitWorkerMaxSample()

EcalUncalibRecHitWorkerMaxSample::~EcalUncalibRecHitWorkerMaxSample ( )
inlineoverride

Definition at line 29 of file EcalUncalibRecHitWorkerMaxSample.cc.

29 {};

Member Function Documentation

◆ getAlgoDescription()

edm::ParameterSetDescription EcalUncalibRecHitWorkerMaxSample::getAlgoDescription ( )
overridevirtual

Implements EcalUncalibRecHitWorkerBaseClass.

Definition at line 63 of file EcalUncalibRecHitWorkerMaxSample.cc.

63  {
65  return psd; //.addNode(std::unique_ptr<edm::ParameterDescriptionNode>(new edm::EmptyGroupDescription()));
66 }

◆ run()

bool EcalUncalibRecHitWorkerMaxSample::run ( const edm::Event evt,
const EcalDigiCollection::const_iterator digi,
EcalUncalibratedRecHitCollection result 
)
overridevirtual

Implements EcalUncalibRecHitWorkerRunOneDigiBase.

Definition at line 49 of file EcalUncalibRecHitWorkerMaxSample.cc.

References ebAlgo_, EcalBarrel, eeAlgo_, EcalUncalibRecHitMaxSampleAlgo< C >::makeRecHit(), and mps_fire::result.

51  {
52  DetId detid(itdg->id());
53 
54  if (detid.subdetId() == EcalBarrel) {
55  result.push_back(ebAlgo_.makeRecHit(*itdg, nullptr, nullptr, nullptr, nullptr));
56  } else {
57  result.push_back(eeAlgo_.makeRecHit(*itdg, nullptr, nullptr, nullptr, nullptr));
58  }
59 
60  return true;
61 }
Definition: DetId.h:17
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_

◆ set()

void EcalUncalibRecHitWorkerMaxSample::set ( const edm::EventSetup es)
overridevirtual

Implements EcalUncalibRecHitWorkerBaseClass.

Definition at line 47 of file EcalUncalibRecHitWorkerMaxSample.cc.

47 {}

Member Data Documentation

◆ ebAlgo_

EcalUncalibRecHitMaxSampleAlgo<EBDataFrame> EcalUncalibRecHitWorkerMaxSample::ebAlgo_
private

Definition at line 39 of file EcalUncalibRecHitWorkerMaxSample.cc.

Referenced by run().

◆ eeAlgo_

EcalUncalibRecHitMaxSampleAlgo<EEDataFrame> EcalUncalibRecHitWorkerMaxSample::eeAlgo_
private

Definition at line 40 of file EcalUncalibRecHitWorkerMaxSample.cc.

Referenced by run().