src
RecoLocalCalo
EcalRecProducers
plugins
EcalUncalibRecHitWorkerMaxSample.cc
Go to the documentation of this file.
1
9
#include "
DataFormats/Common/interface/Handle.h
"
10
#include "
DataFormats/EcalDigi/interface/EcalDigiCollections.h
"
11
#include "
DataFormats/EcalRecHit/interface/EcalRecHitCollections.h
"
12
#include "
DataFormats/EcalRecHit/interface/EcalUncalibratedRecHit.h
"
13
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
14
#include "
FWCore/ParameterSet/interface/ConfigurationDescriptions.h
"
15
#include "
FWCore/ParameterSet/interface/EmptyGroupDescription.h
"
16
#include "
FWCore/ParameterSet/interface/ParameterSetDescription.h
"
17
#include "
RecoLocalCalo/EcalRecAlgos/interface/EcalUncalibRecHitMaxSampleAlgo.h
"
18
#include "
RecoLocalCalo/EcalRecProducers/interface/EcalUncalibRecHitWorkerRunOneDigiBase.h
"
19
20
#include <cmath>
21
#include <iomanip>
22
#include <iostream>
23
#include <vector>
24
25
class
EcalUncalibRecHitWorkerMaxSample
:
public
EcalUncalibRecHitWorkerRunOneDigiBase
{
26
public
:
27
EcalUncalibRecHitWorkerMaxSample
(
const
edm::ParameterSet
& ps,
edm::ConsumesCollector
&
c
);
28
EcalUncalibRecHitWorkerMaxSample
(){};
29
~EcalUncalibRecHitWorkerMaxSample
()
override
{};
30
31
void
set
(
const
edm::EventSetup
& es)
override
;
32
bool
run
(
const
edm::Event
& evt,
33
const
EcalDigiCollection::const_iterator
& digi,
34
EcalUncalibratedRecHitCollection
&
result
)
override
;
35
36
edm::ParameterSetDescription
getAlgoDescription
()
override
;
37
38
private
:
39
EcalUncalibRecHitMaxSampleAlgo<EBDataFrame>
ebAlgo_
;
40
EcalUncalibRecHitMaxSampleAlgo<EEDataFrame>
eeAlgo_
;
41
};
42
43
EcalUncalibRecHitWorkerMaxSample::EcalUncalibRecHitWorkerMaxSample
(
const
edm::ParameterSet
& ps,
44
edm::ConsumesCollector
&
c
)
45
:
EcalUncalibRecHitWorkerRunOneDigiBase
(ps,
c
) {}
46
47
void
EcalUncalibRecHitWorkerMaxSample::set
(
const
edm::EventSetup
& es) {}
48
49
bool
EcalUncalibRecHitWorkerMaxSample::run
(
const
edm::Event
& evt,
50
const
EcalDigiCollection::const_iterator
& itdg,
51
EcalUncalibratedRecHitCollection
&
result
) {
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
63
edm::ParameterSetDescription
EcalUncalibRecHitWorkerMaxSample::getAlgoDescription
() {
64
edm::ParameterSetDescription
psd;
65
return
psd;
//.addNode(std::unique_ptr<edm::ParameterDescriptionNode>(new edm::EmptyGroupDescription()));
66
}
67
68
#include "
FWCore/Framework/interface/MakerMacros.h
"
69
#include "
RecoLocalCalo/EcalRecProducers/interface/EcalUncalibRecHitWorkerFactory.h
"
70
DEFINE_EDM_PLUGIN
(
EcalUncalibRecHitWorkerFactory
,
EcalUncalibRecHitWorkerMaxSample
,
"EcalUncalibRecHitWorkerMaxSample"
);
71
#include "
RecoLocalCalo/EcalRecProducers/interface/EcalUncalibRecHitFillDescriptionWorkerFactory.h
"
72
DEFINE_EDM_PLUGIN
(
EcalUncalibRecHitFillDescriptionWorkerFactory
,
73
EcalUncalibRecHitWorkerMaxSample
,
74
"EcalUncalibRecHitWorkerMaxSample"
);
EcalUncalibratedRecHit.h
edm::SortedCollection
Definition:
SortedCollection.h:49
MessageLogger.h
mps_fire.result
result
Definition:
mps_fire.py:311
EcalRecHitCollections.h
EcalUncalibRecHitMaxSampleAlgo.h
EmptyGroupDescription.h
EcalUncalibRecHitWorkerMaxSample::run
bool run(const edm::Event &evt, const EcalDigiCollection::const_iterator &digi, EcalUncalibratedRecHitCollection &result) override
Definition:
EcalUncalibRecHitWorkerMaxSample.cc:49
HltBtagPostValidation_cff.c
c
Definition:
HltBtagPostValidation_cff.py:35
edm::ParameterSetDescription
Definition:
ParameterSetDescription.h:52
ParameterSetDescription.h
EcalUncalibRecHitWorkerRunOneDigiBase
Definition:
EcalUncalibRecHitWorkerRunOneDigiBase.h:10
edmplugin::PluginFactory
Definition:
PluginFactory.h:35
EcalDigiCollections.h
edm::EventSetup
Definition:
EventSetup.h:56
DetId
Definition:
DetId.h:17
EcalUncalibRecHitWorkerMaxSample
Definition:
EcalUncalibRecHitWorkerMaxSample.cc:25
EcalUncalibRecHitWorkerMaxSample::~EcalUncalibRecHitWorkerMaxSample
~EcalUncalibRecHitWorkerMaxSample() override
Definition:
EcalUncalibRecHitWorkerMaxSample.cc:29
EcalUncalibRecHitFillDescriptionWorkerFactory.h
EcalUncalibRecHitWorkerMaxSample::ebAlgo_
EcalUncalibRecHitMaxSampleAlgo< EBDataFrame > ebAlgo_
Definition:
EcalUncalibRecHitWorkerMaxSample.cc:39
edm::DataFrameContainer::const_iterator
boost::transform_iterator< IterHelp, boost::counting_iterator< int > > const_iterator
Definition:
DataFrameContainer.h:61
EcalUncalibRecHitWorkerRunOneDigiBase.h
EcalUncalibRecHitMaxSampleAlgo< EBDataFrame >
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.cc:28
EcalUncalibRecHitWorkerMaxSample::getAlgoDescription
edm::ParameterSetDescription getAlgoDescription() override
Definition:
EcalUncalibRecHitWorkerMaxSample.cc:63
EcalUncalibRecHitWorkerFactory.h
edm::Event
Definition:
Event.h:73
EcalUncalibRecHitWorkerMaxSample::eeAlgo_
EcalUncalibRecHitMaxSampleAlgo< EEDataFrame > eeAlgo_
Definition:
EcalUncalibRecHitWorkerMaxSample.cc:40
EcalUncalibRecHitWorkerMaxSample::set
void set(const edm::EventSetup &es) override
Definition:
EcalUncalibRecHitWorkerMaxSample.cc:47
MakerMacros.h
edm::ConsumesCollector
Definition:
ConsumesCollector.h:45
Handle.h
Generated for CMSSW Reference Manual by
1.8.14