CMS 3D CMS Logo

APDShape.cc
Go to the documentation of this file.
1 #include <cmath>
2 
4 
5 #include<assert.h>
6 
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
24 {
25  return 0.0 ;
26 }
27 
28 void
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 }
virtual ~APDShape()
Definition: APDShape.cc:7
double m_tau
Definition: APDShape.h:24
double m_tStart
Definition: APDShape.h:23
std::vector< double > DVec
Definition: EcalShapeBase.h:16
virtual void fillShape(EcalShapeBase::DVec &aVec) const
Definition: APDShape.cc:29
APDShape(double tStart, double tau)
Definition: APDShape.cc:11
virtual double threshold() const
Definition: APDShape.cc:23