test
Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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
EcalUncalibRecHitWorkerBaseClass
( 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, 0, 0, 0, 0 ) );
49
}
else
{
50
result.
push_back
(
eeAlgo_
.
makeRecHit
(*itdg, 0, 0, 0, 0 ) );
51
}
52
53
return
true
;
54
}
55
56
edm::ParameterSetDescription
57
EcalUncalibRecHitWorkerMaxSample::getAlgoDescription
() {
58
59
edm::ParameterSetDescription
psd;
60
return
psd;
//.addNode(std::auto_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:56
edm::SortedCollection< EcalUncalibratedRecHit >
EcalUncalibRecHitMaxSampleAlgo::makeRecHit
virtual EcalUncalibratedRecHit makeRecHit(const C &dataFrame, const double *pedestals, const double *gainRatios, const EcalWeightSet::EcalWeightMatrix **weights, const EcalWeightSet::EcalChi2WeightMatrix **chi2Matrix)
compute rechits
Definition:
EcalUncalibRecHitMaxSampleAlgo.h:34
MakerMacros.h
EcalRecHitCollections.h
edm::SortedCollection::push_back
void push_back(T const &t)
Definition:
SortedCollection.h:199
Handle.h
EnergyCorrector.c
tuple c
Definition:
EnergyCorrector.py:43
EmptyGroupDescription.h
edm::ParameterSetDescription
Definition:
ParameterSetDescription.h:50
mps_fire.result
tuple result
Definition:
mps_fire.py:83
EcalUncalibRecHitWorkerMaxSample::set
void set(const edm::EventSetup &es)
Definition:
EcalUncalibRecHitWorkerMaxSample.cc:36
EcalUncalibRecHitWorkerMaxSample::getAlgoDescription
edm::ParameterSetDescription getAlgoDescription()
Definition:
EcalUncalibRecHitWorkerMaxSample.cc:57
ParameterSetDescription.h
edmplugin::PluginFactory
Definition:
PluginFactory.h:31
EcalUncalibRecHitWorkerMaxSample::run
bool run(const edm::Event &evt, const EcalDigiCollection::const_iterator &digi, EcalUncalibratedRecHitCollection &result)
Definition:
EcalUncalibRecHitWorkerMaxSample.cc:41
ESHandle.h
EcalUncalibRecHitWorkerBaseClass
Definition:
EcalUncalibRecHitWorkerBaseClass.h:16
EcalDigiCollections.h
edm::EventSetup
Definition:
EventSetup.h:45
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:11
edm::ParameterSet
Definition:
ParameterSet.h:36
DEFINE_EDM_PLUGIN
#define DEFINE_EDM_PLUGIN(factory, type, name)
Definition:
PluginFactory.h:101
ConfigurationDescriptions.h
EcalUncalibRecHitWorkerMaxSample::EcalUncalibRecHitWorkerMaxSample
EcalUncalibRecHitWorkerMaxSample()
Definition:
EcalUncalibRecHitWorkerMaxSample.h:21
EcalUncalibRecHitWorkerFactory.h
edm::Event
Definition:
Event.h:65
EcalUncalibRecHitWorkerMaxSample::eeAlgo_
EcalUncalibRecHitMaxSampleAlgo< EEDataFrame > eeAlgo_
Definition:
EcalUncalibRecHitWorkerMaxSample.h:31
edm::ConsumesCollector
Definition:
ConsumesCollector.h:39
Generated for CMSSW Reference Manual by
1.8.5