CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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)
 
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 &)
 
virtual void set (const edm::Event &evt)
 
virtual ~EcalUncalibRecHitWorkerBaseClass ()
 

Private Attributes

EcalUncalibRecHitMaxSampleAlgo
< EBDataFrame
ebAlgo_
 
EcalUncalibRecHitMaxSampleAlgo
< EEDataFrame
eeAlgo_
 

Detailed Description

Definition at line 16 of file EcalUncalibRecHitWorkerMaxSample.h.

Constructor & Destructor Documentation

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

Definition at line 24 of file EcalUncalibRecHitWorkerMaxSample.cc.

24  :
26 {
27 }
EcalUncalibRecHitWorkerBaseClass(const edm::ParameterSet &, edm::ConsumesCollector &c)
virtual EcalUncalibRecHitWorkerMaxSample::~EcalUncalibRecHitWorkerMaxSample ( )
inlinevirtual

Definition at line 20 of file EcalUncalibRecHitWorkerMaxSample.h.

20 {};

Member Function Documentation

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

Implements EcalUncalibRecHitWorkerBaseClass.

Definition at line 36 of file EcalUncalibRecHitWorkerMaxSample.cc.

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

39 {
40  DetId detid(itdg->id());
41 
42  if ( detid.subdetId() == EcalBarrel ) {
43  result.push_back( ebAlgo_.makeRecHit(*itdg, 0, 0, 0, 0 ) );
44  } else {
45  result.push_back( eeAlgo_.makeRecHit(*itdg, 0, 0, 0, 0 ) );
46  }
47 
48  return true;
49 }
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

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