Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
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
}
i
int i
Definition:
DBlmapReader.cc:9
APDShape::~APDShape
virtual ~APDShape()
Definition:
APDShape.cc:7
create_public_lumi_plots.exp
tuple exp
Definition:
create_public_lumi_plots.py:1087
APDShape::m_tau
double m_tau
Definition:
APDShape.h:24
APDShape.h
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
EcalShapeBase::k1NSecBinsTotal
Definition:
EcalShapeBase.h:35
alignCSCRings.e
list e
Definition:
alignCSCRings.py:90
APDShape::threshold
virtual double threshold() const
Definition:
APDShape.cc:23
EcalShapeBase
Definition:
EcalShapeBase.h:12
Generated for CMSSW Reference Manual by
1.8.5