CMS 3D CMS Logo

EcalUncalibRecHitWorkerMaxSample.cc
Go to the documentation of this file.
1 
9 
11 
13 
16 
19 
23 
24 #include <cmath>
25 #include <iomanip>
26 #include <iostream>
27 #include <vector>
28 
31 {
32 }
33 
34 
35 void
37 {
38 }
39 
40 bool
44 {
45  DetId detid(itdg->id());
46 
47  if ( detid.subdetId() == EcalBarrel ) {
48  result.push_back( ebAlgo_.makeRecHit(*itdg, 0, 0, 0, 0 ) );
49  } else {
50  result.push_back( eeAlgo_.makeRecHit(*itdg, 0, 0, 0, 0 ) );
51  }
52 
53  return true;
54 }
55 
58 
60  return psd;//.addNode(std::unique_ptr<edm::ParameterDescriptionNode>(new edm::EmptyGroupDescription()));
61 }
62 
63 
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)
edm::ParameterSetDescription getAlgoDescription()
bool run(const edm::Event &evt, const EcalDigiCollection::const_iterator &digi, EcalUncalibratedRecHitCollection &result)
Definition: DetId.h:18
EcalUncalibRecHitMaxSampleAlgo< EBDataFrame > ebAlgo_
#define DEFINE_EDM_PLUGIN(factory, type, name)
EcalUncalibRecHitMaxSampleAlgo< EEDataFrame > eeAlgo_