CMS 3D CMS Logo

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

#include <EcalUncalibRecHitWorkerMaxSample.h>

Inheritance diagram for EcalUncalibRecHitWorkerMaxSample:
EcalUncalibRecHitWorkerBaseClass

Public Member Functions

 EcalUncalibRecHitWorkerMaxSample (const edm::ParameterSet &ps, edm::ConsumesCollector &c)
 
 EcalUncalibRecHitWorkerMaxSample ()
 
edm::ParameterSetDescription getAlgoDescription ()
 
bool run (const edm::Event &evt, const EcalDigiCollection::const_iterator &digi, EcalUncalibratedRecHitCollection &result)
 
void set (const edm::EventSetup &es)
 
virtual ~EcalUncalibRecHitWorkerMaxSample ()
 
- 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 {};
virtual EcalUncalibRecHitWorkerMaxSample::~EcalUncalibRecHitWorkerMaxSample ( )
inlinevirtual

Definition at line 22 of file EcalUncalibRecHitWorkerMaxSample.h.

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

22 {};

Member Function Documentation

edm::ParameterSetDescription EcalUncalibRecHitWorkerMaxSample::getAlgoDescription ( )
virtual

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 
)
virtual

Implements EcalUncalibRecHitWorkerBaseClass.

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, 0, 0, 0, 0 ) );
49  } else {
50  result.push_back( eeAlgo_.makeRecHit(*itdg, 0, 0, 0, 0 ) );
51  }
52 
53  return true;
54 }
virtual EcalUncalibratedRecHit makeRecHit(const C &dataFrame, const double *pedestals, const double *gainRatios, const EcalWeightSet::EcalWeightMatrix **weights, const EcalWeightSet::EcalChi2WeightMatrix **chi2Matrix)
compute rechits
void push_back(T const &t)
Definition: DetId.h:18
EcalUncalibRecHitMaxSampleAlgo< EBDataFrame > ebAlgo_
EcalUncalibRecHitMaxSampleAlgo< EEDataFrame > eeAlgo_
void EcalUncalibRecHitWorkerMaxSample::set ( const edm::EventSetup es)
virtual

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().