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
7
#include "
RecoLocalCalo/EcalRecProducers/plugins/EcalUncalibRecHitWorkerMaxSample.h
"
8
9
#include "
DataFormats/Common/interface/Handle.h
"
10
11
#include "
DataFormats/EcalDigi/interface/EcalDigiCollections.h
"
12
13
#include "
DataFormats/EcalRecHit/interface/EcalUncalibratedRecHit.h
"
14
#include "
DataFormats/EcalRecHit/interface/EcalRecHitCollections.h
"
15
16
#include "
FWCore/Framework/interface/ESHandle.h
"
17
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
18
19
#include <cmath>
20
#include <iomanip>
21
#include <iostream>
22
#include <vector>
23
24
EcalUncalibRecHitWorkerMaxSample::EcalUncalibRecHitWorkerMaxSample
(
const
edm::ParameterSet
& ps,
edm::ConsumesCollector
&
c
) :
25
EcalUncalibRecHitWorkerBaseClass
( ps ,c)
26
{
27
}
28
29
30
void
31
EcalUncalibRecHitWorkerMaxSample::set
(
const
edm::EventSetup
& es)
32
{
33
}
34
35
bool
36
EcalUncalibRecHitWorkerMaxSample::run
(
const
edm::Event
& evt,
37
const
EcalDigiCollection::const_iterator
& itdg,
38
EcalUncalibratedRecHitCollection
&
result
)
39
{
40
DetId
detid
(itdg->id());
41
42
if
(
detid
.subdetId() ==
EcalBarrel
) {
43
result.
push_back
(
ebAlgo_
.
makeRecHit
(*itdg, 0, 0, 0, 0 ) );
44
}
else
{
45
result.
push_back
(
eeAlgo_
.
makeRecHit
(*itdg, 0, 0, 0, 0 ) );
46
}
47
48
return
true
;
49
}
50
51
#include "
FWCore/Framework/interface/MakerMacros.h
"
52
#include "
RecoLocalCalo/EcalRecProducers/interface/EcalUncalibRecHitWorkerFactory.h
"
53
DEFINE_EDM_PLUGIN
(
EcalUncalibRecHitWorkerFactory
,
EcalUncalibRecHitWorkerMaxSample
,
"EcalUncalibRecHitWorkerMaxSample"
);
MessageLogger.h
edm::DataFrameContainer::const_iterator
boost::transform_iterator< IterHelp, boost::counting_iterator< int > > const_iterator
Definition:
DataFrameContainer.h:51
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
EcalUncalibRecHitWorkerMaxSample::set
void set(const edm::EventSetup &es)
Definition:
EcalUncalibRecHitWorkerMaxSample.cc:31
edmplugin::PluginFactory
Definition:
PluginFactory.h:31
query.result
tuple result
Definition:
query.py:137
EcalUncalibRecHitWorkerMaxSample::run
bool run(const edm::Event &evt, const EcalDigiCollection::const_iterator &digi, EcalUncalibratedRecHitCollection &result)
Definition:
EcalUncalibRecHitWorkerMaxSample.cc:36
ESHandle.h
EcalUncalibRecHitWorkerBaseClass
Definition:
EcalUncalibRecHitWorkerBaseClass.h:14
EcalDigiCollections.h
edm::EventSetup
Definition:
EventSetup.h:44
EcalUncalibRecHitWorkerMaxSample.h
DetId
Definition:
DetId.h:18
EcalUncalibRecHitWorkerMaxSample
Definition:
EcalUncalibRecHitWorkerMaxSample.h:16
cond::rpcobgas::detid
Definition:
RPCObGasPyWrapper.cc:61
EcalUncalibRecHitWorkerMaxSample::ebAlgo_
EcalUncalibRecHitMaxSampleAlgo< EBDataFrame > ebAlgo_
Definition:
EcalUncalibRecHitWorkerMaxSample.h:30
EcalUncalibratedRecHit.h
EcalUncalibRecHitWorkerMaxSample::EcalUncalibRecHitWorkerMaxSample
EcalUncalibRecHitWorkerMaxSample(const edm::ParameterSet &ps, edm::ConsumesCollector &c)
Definition:
EcalUncalibRecHitWorkerMaxSample.cc:24
EcalBarrel
Definition:
EcalSubdetector.h:11
edm::ParameterSet
Definition:
ParameterSet.h:35
DEFINE_EDM_PLUGIN
#define DEFINE_EDM_PLUGIN(factory, type, name)
Definition:
PluginFactory.h:101
EcalUncalibRecHitWorkerFactory.h
edm::Event
Definition:
Event.h:59
EcalUncalibRecHitWorkerMaxSample::eeAlgo_
EcalUncalibRecHitMaxSampleAlgo< EEDataFrame > eeAlgo_
Definition:
EcalUncalibRecHitWorkerMaxSample.h:31
edm::ConsumesCollector
Definition:
ConsumesCollector.h:32
Generated for CMSSW Reference Manual by
1.8.5