Main Page
Namespaces
Classes
Package Documentation
SimCalorimetry
EcalSimAlgos
src
APDShape.cc
Go to the documentation of this file.
1
#include <cmath>
2
3
#include "
SimCalorimetry/EcalSimAlgos/interface/APDShape.h
"
4
5
#include<assert.h>
6
7
APDShape::~APDShape
()
8
{
9
}
10
11
APDShape::APDShape
(
double
tStart,
12
double
tau
) :
13
EcalShapeBase
(
true
) ,
14
m_tStart
( tStart ) ,
15
m_tau
( tau )
16
{
17
assert(
m_tau
> 1.
e
-5 ) ;
18
assert(
m_tStart
> 0 ) ;
19
buildMe
() ;
20
}
21
22
double
23
APDShape::threshold
()
const
24
{
25
return
0.0 ;
26
}
27
28
void
29
APDShape::fillShape
(
EcalShapeBase::DVec
& aVec )
const
30
{
31
for
(
unsigned
int
i
( 0 ) ;
i
!=
k1NSecBinsTotal
; ++
i
)
32
{
33
const
double
ctime ( ( 1.*
i
+ 0.5 -
m_tStart
)/
m_tau
) ;
34
aVec[
i
] = ( 0 > ctime ? 0 : ctime *
exp
( 1. - ctime ) ) ;
35
}
36
}
EcalShapeBase::k1NSecBinsTotal
Definition:
EcalShapeBase.h:35
APDShape::~APDShape
virtual ~APDShape()
Definition:
APDShape.cc:7
mps_fire.i
i
Definition:
mps_fire.py:156
APDShape::m_tau
double m_tau
Definition:
APDShape.h:24
APDShape.h
MillePedeFileConverter_cfg.e
e
Definition:
MillePedeFileConverter_cfg.py:37
APDShape::m_tStart
double m_tStart
Definition:
APDShape.h:23
funct::true
true
Definition:
Factorize.h:183
EcalShapeBase::DVec
std::vector< double > DVec
Definition:
EcalShapeBase.h:16
APDShape::fillShape
virtual void fillShape(EcalShapeBase::DVec &aVec) const
Definition:
APDShape.cc:29
metsig::tau
Definition:
SignAlgoResolutions.h:40
APDShape::APDShape
APDShape(double tStart, double tau)
Definition:
APDShape.cc:11
EcalShapeBase::buildMe
void buildMe()
Definition:
EcalShapeBase.cc:46
APDShape::threshold
virtual double threshold() const
Definition:
APDShape.cc:23
EcalShapeBase
Definition:
EcalShapeBase.h:12
JetChargeProducer_cfi.exp
exp
Definition:
JetChargeProducer_cfi.py:6
Generated for CMSSW Reference Manual by
1.8.11