CMS 3D CMS Logo

EcalUncalibRecHitWorkerMaxSample.cc
Go to the documentation of this file.
1 
19 
20 #include <cmath>
21 #include <iomanip>
22 #include <iostream>
23 #include <vector>
24 
26 public:
30 
31  void set(const edm::EventSetup& es) override;
32  bool run(const edm::Event& evt,
35 
37 
38 private:
41 };
42 
46 
48 
52  DetId detid(itdg->id());
53 
54  if (detid.subdetId() == EcalBarrel) {
55  result.push_back(ebAlgo_.makeRecHit(*itdg, nullptr, nullptr, nullptr, nullptr));
56  } else {
57  result.push_back(eeAlgo_.makeRecHit(*itdg, nullptr, nullptr, nullptr, nullptr));
58  }
59 
60  return true;
61 }
62 
65  return psd; //.addNode(std::unique_ptr<edm::ParameterDescriptionNode>(new edm::EmptyGroupDescription()));
66 }
67 
74  "EcalUncalibRecHitWorkerMaxSample");
bool run(const edm::Event &evt, const EcalDigiCollection::const_iterator &digi, EcalUncalibratedRecHitCollection &result) override
Definition: DetId.h:17
EcalUncalibRecHitMaxSampleAlgo< EBDataFrame > ebAlgo_
boost::transform_iterator< IterHelp, boost::counting_iterator< int > > const_iterator
#define DEFINE_EDM_PLUGIN(factory, type, name)
EcalUncalibratedRecHit makeRecHit(const C &dataFrame, const double *pedestals, const double *gainRatios, const EcalWeightSet::EcalWeightMatrix **weights, const EcalWeightSet::EcalChi2WeightMatrix **chi2Matrix) override
compute rechits
edm::ParameterSetDescription getAlgoDescription() override
EcalUncalibRecHitMaxSampleAlgo< EEDataFrame > eeAlgo_
void set(const edm::EventSetup &es) override