src
RecoLocalCalo
EcalRecProducers
plugins
EcalUncalibRecHitWorkerMaxSample.cc
Go to the documentation of this file.
1
8
#include "
RecoLocalCalo/EcalRecProducers/plugins/EcalUncalibRecHitWorkerMaxSample.h
"
9
10
#include "
DataFormats/Common/interface/Handle.h
"
11
12
#include "
DataFormats/EcalDigi/interface/EcalDigiCollections.h
"
13
14
#include "
DataFormats/EcalRecHit/interface/EcalUncalibratedRecHit.h
"
15
#include "
DataFormats/EcalRecHit/interface/EcalRecHitCollections.h
"
16
17
#include "
FWCore/Framework/interface/ESHandle.h
"
18
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
19
20
#include <
FWCore/ParameterSet/interface/ConfigurationDescriptions.h
>
21
#include <
FWCore/ParameterSet/interface/ParameterSetDescription.h
>
22
#include <
FWCore/ParameterSet/interface/EmptyGroupDescription.h
>
23
24
#include <cmath>
25
#include <iomanip>
26
#include <iostream>
27
#include <vector>
28
29
EcalUncalibRecHitWorkerMaxSample::EcalUncalibRecHitWorkerMaxSample
(
const
edm::ParameterSet
& ps,
30
edm::ConsumesCollector
&
c
)
31
:
EcalUncalibRecHitWorkerRunOneDigiBase
(ps,
c
) {}
32
33
void
EcalUncalibRecHitWorkerMaxSample::set
(
const
edm::EventSetup
& es) {}
34
35
bool
EcalUncalibRecHitWorkerMaxSample::run
(
const
edm::Event
& evt,
36
const
EcalDigiCollection::const_iterator
& itdg,
37
EcalUncalibratedRecHitCollection
&
result
) {
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
49
edm::ParameterSetDescription
EcalUncalibRecHitWorkerMaxSample::getAlgoDescription
() {
50
edm::ParameterSetDescription
psd;
51
return
psd;
//.addNode(std::unique_ptr<edm::ParameterDescriptionNode>(new edm::EmptyGroupDescription()));
52
}
53
54
#include "
FWCore/Framework/interface/MakerMacros.h
"
55
#include "
RecoLocalCalo/EcalRecProducers/interface/EcalUncalibRecHitWorkerFactory.h
"
56
DEFINE_EDM_PLUGIN
(
EcalUncalibRecHitWorkerFactory
,
EcalUncalibRecHitWorkerMaxSample
,
"EcalUncalibRecHitWorkerMaxSample"
);
57
#include "
RecoLocalCalo/EcalRecProducers/interface/EcalUncalibRecHitFillDescriptionWorkerFactory.h
"
58
DEFINE_EDM_PLUGIN
(
EcalUncalibRecHitFillDescriptionWorkerFactory
,
59
EcalUncalibRecHitWorkerMaxSample
,
60
"EcalUncalibRecHitWorkerMaxSample"
);
EcalUncalibratedRecHit.h
edm::SortedCollection
Definition:
SortedCollection.h:49
MessageLogger.h
mps_fire.result
result
Definition:
mps_fire.py:311
MakerMacros.h
EcalRecHitCollections.h
EmptyGroupDescription.h
EcalUncalibRecHitWorkerMaxSample::run
bool run(const edm::Event &evt, const EcalDigiCollection::const_iterator &digi, EcalUncalibratedRecHitCollection &result) override
Definition:
EcalUncalibRecHitWorkerMaxSample.cc:35
edm::ParameterSetDescription
Definition:
ParameterSetDescription.h:52
c
auto & c
Definition:
CAHitNtupletGeneratorKernelsImpl.h:56
ParameterSetDescription.h
EcalUncalibRecHitWorkerRunOneDigiBase
Definition:
EcalUncalibRecHitWorkerRunOneDigiBase.h:10
edmplugin::PluginFactory
Definition:
PluginFactory.h:35
ESHandle.h
EcalDigiCollections.h
edm::EventSetup
Definition:
EventSetup.h:59
EcalUncalibRecHitWorkerMaxSample.h
DetId
Definition:
DetId.h:17
EcalUncalibRecHitWorkerMaxSample
Definition:
EcalUncalibRecHitWorkerMaxSample.h:17
EcalUncalibRecHitFillDescriptionWorkerFactory.h
EcalUncalibRecHitWorkerMaxSample::ebAlgo_
EcalUncalibRecHitMaxSampleAlgo< EBDataFrame > ebAlgo_
Definition:
EcalUncalibRecHitWorkerMaxSample.h:31
edm::DataFrameContainer::const_iterator
boost::transform_iterator< IterHelp, boost::counting_iterator< int > > const_iterator
Definition:
DataFrameContainer.h:61
EcalBarrel
Definition:
EcalSubdetector.h:10
edm::ParameterSet
Definition:
ParameterSet.h:47
DEFINE_EDM_PLUGIN
#define DEFINE_EDM_PLUGIN(factory, type, name)
Definition:
PluginFactory.h:123
ConfigurationDescriptions.h
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::EcalUncalibRecHitWorkerMaxSample
EcalUncalibRecHitWorkerMaxSample()
Definition:
EcalUncalibRecHitWorkerMaxSample.h:20
EcalUncalibRecHitWorkerMaxSample::getAlgoDescription
edm::ParameterSetDescription getAlgoDescription() override
Definition:
EcalUncalibRecHitWorkerMaxSample.cc:49
EcalUncalibRecHitWorkerFactory.h
edm::Event
Definition:
Event.h:73
EcalUncalibRecHitWorkerMaxSample::eeAlgo_
EcalUncalibRecHitMaxSampleAlgo< EEDataFrame > eeAlgo_
Definition:
EcalUncalibRecHitWorkerMaxSample.h:32
EcalUncalibRecHitWorkerMaxSample::set
void set(const edm::EventSetup &es) override
Definition:
EcalUncalibRecHitWorkerMaxSample.cc:33
edm::ConsumesCollector
Definition:
ConsumesCollector.h:45
Handle.h
Generated for CMSSW Reference Manual by
1.8.14