Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
RecoLocalCalo
EcalRecProducers
plugins
EcalUncalibRecHitWorkerMaxSample.cc
Go to the documentation of this file.
1
10
#include "
RecoLocalCalo/EcalRecProducers/plugins/EcalUncalibRecHitWorkerMaxSample.h
"
11
12
#include "
DataFormats/Common/interface/Handle.h
"
13
14
#include "
DataFormats/EcalDigi/interface/EcalDigiCollections.h
"
15
16
#include "
DataFormats/EcalRecHit/interface/EcalUncalibratedRecHit.h
"
17
#include "
DataFormats/EcalRecHit/interface/EcalRecHitCollections.h
"
18
19
#include "
FWCore/Framework/interface/ESHandle.h
"
20
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
21
22
#include <cmath>
23
#include <iomanip>
24
#include <iostream>
25
#include <vector>
26
27
EcalUncalibRecHitWorkerMaxSample::EcalUncalibRecHitWorkerMaxSample
(
const
edm::ParameterSet
& ps) :
28
EcalUncalibRecHitWorkerBaseClass
( ps )
29
{
30
}
31
32
33
void
34
EcalUncalibRecHitWorkerMaxSample::set
(
const
edm::EventSetup
& es)
35
{
36
}
37
38
bool
39
EcalUncalibRecHitWorkerMaxSample::run
(
const
edm::Event
& evt,
40
const
EcalDigiCollection::const_iterator
& itdg,
41
EcalUncalibratedRecHitCollection
&
result
)
42
{
43
DetId
detid
(itdg->id());
44
45
if
(
detid
.subdetId() ==
EcalBarrel
) {
46
result.
push_back
(
ebAlgo_
.
makeRecHit
(*itdg, 0, 0, 0, 0 ) );
47
}
else
{
48
result.
push_back
(
eeAlgo_
.
makeRecHit
(*itdg, 0, 0, 0, 0 ) );
49
}
50
51
return
true
;
52
}
53
54
#include "
FWCore/Framework/interface/MakerMacros.h
"
55
#include "
RecoLocalCalo/EcalRecProducers/interface/EcalUncalibRecHitWorkerFactory.h
"
56
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
Definition:
SortedCollection.h:48
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:190
Handle.h
EcalUncalibRecHitWorkerMaxSample::set
void set(const edm::EventSetup &es)
Definition:
EcalUncalibRecHitWorkerMaxSample.cc:34
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:39
ESHandle.h
EcalUncalibRecHitWorkerBaseClass
Definition:
EcalUncalibRecHitWorkerBaseClass.h:13
EcalDigiCollections.h
edm::EventSetup
Definition:
EventSetup.h:44
EcalUncalibRecHitWorkerMaxSample.h
DetId
Definition:
DetId.h:20
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)
Definition:
EcalUncalibRecHitWorkerMaxSample.cc:27
EcalBarrel
Definition:
EcalSubdetector.h:12
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:56
EcalUncalibRecHitWorkerMaxSample::eeAlgo_
EcalUncalibRecHitMaxSampleAlgo< EEDataFrame > eeAlgo_
Definition:
EcalUncalibRecHitWorkerMaxSample.h:31
Generated for CMSSW Reference Manual by
1.8.5