SimCalorimetry
EcalSimAlgos
interface
EBShape.h
Go to the documentation of this file.
1
#ifndef EcalSimAlgos_EBShape_h
2
#define EcalSimAlgos_EBShape_h
3
4
#include "
FWCore/Framework/interface/ConsumesCollector.h
"
5
#include "
SimCalorimetry/EcalSimAlgos/interface/EcalShapeBase.h
"
6
7
class
EBShape
:
public
EcalShapeBase
{
8
public
:
9
// useDB = false
10
EBShape
() :
EcalShapeBase
(
false
) {
buildMe
(); }
11
// useDB = true, buildMe is executed when setEventSetup and DB conditions are available
12
EBShape
(
edm::ConsumesCollector
iC) :
EcalShapeBase
(
true
),
espsToken_
(iC.
esConsumes
()) {}
13
14
protected
:
15
void
fillShape
(
float
& time_interval,
16
double
&
m_thresh
,
17
EcalShapeBase::DVec
& aVec,
18
const
edm::EventSetup
* es)
const override
;
19
20
private
:
21
edm::ESGetToken<EcalSimPulseShape, EcalSimPulseShapeRcd>
espsToken_
;
22
};
23
24
#endif
deDxTools::esConsumes
ESGetTokenH3DDVariant esConsumes(std::string const &Record, edm::ConsumesCollector &)
Definition:
DeDxTools.cc:283
EcalShapeBase::buildMe
void buildMe(const edm::EventSetup *=nullptr)
Definition:
EcalShapeBase.cc:29
EBShape::fillShape
void fillShape(float &time_interval, double &m_thresh, EcalShapeBase::DVec &aVec, const edm::EventSetup *es) const override
Definition:
EBShape.cc:5
funct::false
false
Definition:
Factorize.h:29
EBShape::espsToken_
edm::ESGetToken< EcalSimPulseShape, EcalSimPulseShapeRcd > espsToken_
Definition:
EBShape.h:21
EcalShapeBase.h
funct::true
true
Definition:
Factorize.h:173
edm::ESGetToken< EcalSimPulseShape, EcalSimPulseShapeRcd >
EcalShapeBase::DVec
std::vector< double > DVec
Definition:
EcalShapeBase.h:26
EcalShapeBase::m_thresh
double m_thresh
Definition:
EcalShapeBase.h:61
edm::EventSetup
Definition:
EventSetup.h:56
EBShape::EBShape
EBShape(edm::ConsumesCollector iC)
Definition:
EBShape.h:12
EBShape
Definition:
EBShape.h:7
EcalShapeBase
Definition:
EcalShapeBase.h:24
EBShape::EBShape
EBShape()
Definition:
EBShape.h:10
ConsumesCollector.h
edm::ConsumesCollector
Definition:
ConsumesCollector.h:45
Generated for CMSSW Reference Manual by
1.8.14