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

Definition at line 27 of file EcalUncalibRecHitWorkerMaxSample.cc.

27  :
29 {
30 }
EcalUncalibRecHitWorkerBaseClass(const edm::ParameterSet &)
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 39 of file EcalUncalibRecHitWorkerMaxSample.cc.

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

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