CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EcalUncalibRecHitWorkerMaxSample.cc
Go to the documentation of this file.
1 
8 
10 
12 
15 
18 
19 #include <cmath>
20 #include <iomanip>
21 #include <iostream>
22 #include <vector>
23 
26 {
27 }
28 
29 
30 void
32 {
33 }
34 
35 bool
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 }
50 
boost::transform_iterator< IterHelp, boost::counting_iterator< int > > const_iterator
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)
tuple result
Definition: query.py:137
bool run(const edm::Event &evt, const EcalDigiCollection::const_iterator &digi, EcalUncalibratedRecHitCollection &result)
Definition: DetId.h:18
EcalUncalibRecHitMaxSampleAlgo< EBDataFrame > ebAlgo_
EcalUncalibRecHitWorkerMaxSample(const edm::ParameterSet &ps, edm::ConsumesCollector &c)
#define DEFINE_EDM_PLUGIN(factory, type, name)
EcalUncalibRecHitMaxSampleAlgo< EEDataFrame > eeAlgo_