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"
);
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
Generated for CMSSW Reference Manual by
1.8.16