Main Page
Namespaces
Classes
Package Documentation
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,
edm::ConsumesCollector
&
c
) :
30
EcalUncalibRecHitWorkerRunOneDigiBase
( ps ,c)
31
{
32
}
33
34
35
void
36
EcalUncalibRecHitWorkerMaxSample::set
(
const
edm::EventSetup
& es)
37
{
38
}
39
40
bool
41
EcalUncalibRecHitWorkerMaxSample::run
(
const
edm::Event
& evt,
42
const
EcalDigiCollection::const_iterator
& itdg,
43
EcalUncalibratedRecHitCollection
&
result
)
44
{
45
DetId
detid(itdg->id());
46
47
if
( detid.subdetId() ==
EcalBarrel
) {
48
result.
push_back
(
ebAlgo_
.
makeRecHit
(*itdg,
nullptr
,
nullptr
,
nullptr
,
nullptr
) );
49
}
else
{
50
result.
push_back
(
eeAlgo_
.
makeRecHit
(*itdg,
nullptr
,
nullptr
,
nullptr
,
nullptr
) );
51
}
52
53
return
true
;
54
}
55
56
edm::ParameterSetDescription
57
EcalUncalibRecHitWorkerMaxSample::getAlgoDescription
() {
58
59
edm::ParameterSetDescription
psd;
60
return
psd;
//.addNode(std::unique_ptr<edm::ParameterDescriptionNode>(new edm::EmptyGroupDescription()));
61
}
62
63
64
#include "
FWCore/Framework/interface/MakerMacros.h
"
65
#include "
RecoLocalCalo/EcalRecProducers/interface/EcalUncalibRecHitWorkerFactory.h
"
66
DEFINE_EDM_PLUGIN
(
EcalUncalibRecHitWorkerFactory
,
EcalUncalibRecHitWorkerMaxSample
,
"EcalUncalibRecHitWorkerMaxSample"
);
67
#include "
RecoLocalCalo/EcalRecProducers/interface/EcalUncalibRecHitFillDescriptionWorkerFactory.h
"
68
DEFINE_EDM_PLUGIN
(
EcalUncalibRecHitFillDescriptionWorkerFactory
,
EcalUncalibRecHitWorkerMaxSample
,
"EcalUncalibRecHitWorkerMaxSample"
);
MessageLogger.h
edm::DataFrameContainer::const_iterator
boost::transform_iterator< IterHelp, boost::counting_iterator< int > > const_iterator
Definition:
DataFrameContainer.h:58
edm::SortedCollection
Definition:
SortedCollection.h:50
mps_fire.result
result
Definition:
mps_fire.py:283
MakerMacros.h
EnergyCorrector.c
c
Definition:
EnergyCorrector.py:44
EcalRecHitCollections.h
edm::SortedCollection::push_back
void push_back(T const &t)
Definition:
SortedCollection.h:199
EmptyGroupDescription.h
EcalUncalibRecHitWorkerMaxSample::run
bool run(const edm::Event &evt, const EcalDigiCollection::const_iterator &digi, EcalUncalibratedRecHitCollection &result) override
Definition:
EcalUncalibRecHitWorkerMaxSample.cc:41
edm::ParameterSetDescription
Definition:
ParameterSetDescription.h:52
ParameterSetDescription.h
EcalUncalibRecHitWorkerRunOneDigiBase
Definition:
EcalUncalibRecHitWorkerRunOneDigiBase.h:11
edmplugin::PluginFactory
Definition:
PluginFactory.h:33
ESHandle.h
EcalDigiCollections.h
edm::EventSetup
Definition:
EventSetup.h:57
EcalUncalibRecHitWorkerMaxSample.h
DetId
Definition:
DetId.h:18
EcalUncalibRecHitWorkerMaxSample
Definition:
EcalUncalibRecHitWorkerMaxSample.h:17
EcalUncalibRecHitFillDescriptionWorkerFactory.h
EcalUncalibRecHitWorkerMaxSample::ebAlgo_
EcalUncalibRecHitMaxSampleAlgo< EBDataFrame > ebAlgo_
Definition:
EcalUncalibRecHitWorkerMaxSample.h:30
EcalUncalibratedRecHit.h
EcalBarrel
Definition:
EcalSubdetector.h:10
edm::ParameterSet
Definition:
ParameterSet.h:36
DEFINE_EDM_PLUGIN
#define DEFINE_EDM_PLUGIN(factory, type, name)
Definition:
PluginFactory.h:121
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:34
EcalUncalibRecHitWorkerMaxSample::EcalUncalibRecHitWorkerMaxSample
EcalUncalibRecHitWorkerMaxSample()
Definition:
EcalUncalibRecHitWorkerMaxSample.h:21
EcalUncalibRecHitWorkerMaxSample::getAlgoDescription
edm::ParameterSetDescription getAlgoDescription() override
Definition:
EcalUncalibRecHitWorkerMaxSample.cc:57
EcalUncalibRecHitWorkerFactory.h
edm::Event
Definition:
Event.h:71
EcalUncalibRecHitWorkerMaxSample::eeAlgo_
EcalUncalibRecHitMaxSampleAlgo< EEDataFrame > eeAlgo_
Definition:
EcalUncalibRecHitWorkerMaxSample.h:31
EcalUncalibRecHitWorkerMaxSample::set
void set(const edm::EventSetup &es) override
Definition:
EcalUncalibRecHitWorkerMaxSample.cc:36
edm::ConsumesCollector
Definition:
ConsumesCollector.h:39
Handle.h
Generated for CMSSW Reference Manual by
1.8.11