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 
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");
ConfigurationDescriptions.h
Handle.h
EcalUncalibRecHitFillDescriptionWorkerFactory.h
MessageLogger.h
ESHandle.h
edm::DataFrameContainer::const_iterator
boost::transform_iterator< IterHelp, boost::counting_iterator< int > > const_iterator
Definition: DataFrameContainer.h:61
EcalUncalibRecHitWorkerMaxSample
Definition: EcalUncalibRecHitWorkerMaxSample.h:17
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
EcalUncalibRecHitWorkerMaxSample::ebAlgo_
EcalUncalibRecHitMaxSampleAlgo< EBDataFrame > ebAlgo_
Definition: EcalUncalibRecHitWorkerMaxSample.h:31
edm::SortedCollection
Definition: SortedCollection.h:49
EcalUncalibratedRecHit.h
EmptyGroupDescription.h
EcalBarrel
Definition: EcalSubdetector.h:10
EcalRecHitCollections.h
DetId
Definition: DetId.h:17
MakerMacros.h
EcalUncalibRecHitWorkerRunOneDigiBase
Definition: EcalUncalibRecHitWorkerRunOneDigiBase.h:10
EcalDigiCollections.h
EcalUncalibRecHitWorkerMaxSample::run
bool run(const edm::Event &evt, const EcalDigiCollection::const_iterator &digi, EcalUncalibratedRecHitCollection &result) override
Definition: EcalUncalibRecHitWorkerMaxSample.cc:35
ParameterSetDescription.h
DEFINE_EDM_PLUGIN
#define DEFINE_EDM_PLUGIN(factory, type, name)
Definition: PluginFactory.h:124
EcalUncalibRecHitWorkerMaxSample::set
void set(const edm::EventSetup &es) override
Definition: EcalUncalibRecHitWorkerMaxSample.cc:33
edm::ParameterSet
Definition: ParameterSet.h:36
edmplugin::PluginFactory
Definition: PluginFactory.h:34
edm::EventSetup
Definition: EventSetup.h:57
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
EcalUncalibRecHitMaxSampleAlgo::makeRecHit
EcalUncalibratedRecHit makeRecHit(const C &dataFrame, const double *pedestals, const double *gainRatios, const EcalWeightSet::EcalWeightMatrix **weights, const EcalWeightSet::EcalChi2WeightMatrix **chi2Matrix) override
compute rechits
Definition: EcalUncalibRecHitMaxSampleAlgo.h:31
EcalUncalibRecHitWorkerMaxSample::eeAlgo_
EcalUncalibRecHitMaxSampleAlgo< EEDataFrame > eeAlgo_
Definition: EcalUncalibRecHitWorkerMaxSample.h:32
EcalUncalibRecHitWorkerFactory.h
EcalUncalibRecHitWorkerMaxSample.h
EcalUncalibRecHitWorkerMaxSample::EcalUncalibRecHitWorkerMaxSample
EcalUncalibRecHitWorkerMaxSample()
Definition: EcalUncalibRecHitWorkerMaxSample.h:20
mps_fire.result
result
Definition: mps_fire.py:303
edm::Event
Definition: Event.h:73
edm::ConsumesCollector
Definition: ConsumesCollector.h:39
EcalUncalibRecHitWorkerMaxSample::getAlgoDescription
edm::ParameterSetDescription getAlgoDescription() override
Definition: EcalUncalibRecHitWorkerMaxSample.cc:49