CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 
32 
34 
38  DetId detid(itdg->id());
39 
40  if (detid.subdetId() == EcalBarrel) {
41  result.push_back(ebAlgo_.makeRecHit(*itdg, nullptr, nullptr, nullptr, nullptr));
42  } else {
43  result.push_back(eeAlgo_.makeRecHit(*itdg, nullptr, nullptr, nullptr, nullptr));
44  }
45 
46  return true;
47 }
48 
51  return psd; //.addNode(std::unique_ptr<edm::ParameterDescriptionNode>(new edm::EmptyGroupDescription()));
52 }
53 
60  "EcalUncalibRecHitWorkerMaxSample");
const edm::EventSetup & c
void push_back(T const &t)
bool run(const edm::Event &evt, const EcalDigiCollection::const_iterator &digi, EcalUncalibratedRecHitCollection &result) override
tuple result
Definition: mps_fire.py:311
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