CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_9_patch3/src/RecoLocalCalo/EcalRecProducers/plugins/EcalUncalibRecHitWorkerMaxSample.cc

Go to the documentation of this file.
00001 
00010 #include "RecoLocalCalo/EcalRecProducers/plugins/EcalUncalibRecHitWorkerMaxSample.h"
00011 
00012 #include "DataFormats/Common/interface/Handle.h"
00013 
00014 #include "DataFormats/EcalDigi/interface/EcalDigiCollections.h"
00015 
00016 #include "DataFormats/EcalRecHit/interface/EcalUncalibratedRecHit.h"
00017 #include "DataFormats/EcalRecHit/interface/EcalRecHitCollections.h"
00018 
00019 #include "FWCore/Framework/interface/ESHandle.h"
00020 #include "FWCore/MessageLogger/interface/MessageLogger.h"
00021 
00022 #include <cmath>
00023 #include <iomanip>
00024 #include <iostream>
00025 #include <vector>
00026 
00027 EcalUncalibRecHitWorkerMaxSample::EcalUncalibRecHitWorkerMaxSample(const edm::ParameterSet& ps) :
00028         EcalUncalibRecHitWorkerBaseClass( ps )
00029 {
00030 }
00031 
00032 
00033 void
00034 EcalUncalibRecHitWorkerMaxSample::set(const edm::EventSetup& es)
00035 {
00036 }
00037 
00038 bool
00039 EcalUncalibRecHitWorkerMaxSample::run( const edm::Event & evt, 
00040                 const EcalDigiCollection::const_iterator & itdg, 
00041                 EcalUncalibratedRecHitCollection & result )
00042 {
00043         DetId detid(itdg->id());
00044 
00045         if ( detid.subdetId() == EcalBarrel ) {
00046                 result.push_back( ebAlgo_.makeRecHit(*itdg, 0, 0, 0, 0 ) );
00047         } else {
00048                 result.push_back( eeAlgo_.makeRecHit(*itdg, 0, 0, 0, 0 ) );
00049         }
00050 
00051         return true;
00052 }
00053 
00054 #include "FWCore/Framework/interface/MakerMacros.h"
00055 #include "RecoLocalCalo/EcalRecProducers/interface/EcalUncalibRecHitWorkerFactory.h"
00056 DEFINE_EDM_PLUGIN( EcalUncalibRecHitWorkerFactory, EcalUncalibRecHitWorkerMaxSample, "EcalUncalibRecHitWorkerMaxSample" );