CMS 3D CMS Logo

Public Member Functions | Private Attributes

EcalUncalibRecHitWorkerMaxSample Class Reference

#include <EcalUncalibRecHitWorkerMaxSample.h>

Inheritance diagram for EcalUncalibRecHitWorkerMaxSample:
EcalUncalibRecHitWorkerBaseClass

List of all members.

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

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)
virtual EcalUncalibRecHitWorkerMaxSample::~EcalUncalibRecHitWorkerMaxSample ( ) [inline, virtual]

Definition at line 20 of file EcalUncalibRecHitWorkerMaxSample.h.

{};

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

{
        DetId detid(itdg->id());

        if ( detid.subdetId() == EcalBarrel ) {
                result.push_back( ebAlgo_.makeRecHit(*itdg, 0, 0, 0, 0 ) );
        } else {
                result.push_back( eeAlgo_.makeRecHit(*itdg, 0, 0, 0, 0 ) );
        }

        return true;
}
void EcalUncalibRecHitWorkerMaxSample::set ( const edm::EventSetup es) [virtual]

Implements EcalUncalibRecHitWorkerBaseClass.

Definition at line 34 of file EcalUncalibRecHitWorkerMaxSample.cc.

{
}

Member Data Documentation

Definition at line 30 of file EcalUncalibRecHitWorkerMaxSample.h.

Referenced by run().

Definition at line 31 of file EcalUncalibRecHitWorkerMaxSample.h.

Referenced by run().