CMS 3D CMS Logo

Public Member Functions | Protected Member Functions | Private Attributes

APDShape Class Reference

#include <APDShape.h>

Inheritance diagram for APDShape:
EcalShapeBase CaloVShape

List of all members.

Public Member Functions

 APDShape (double tStart, double tau)
virtual double threshold () const
virtual ~APDShape ()

Protected Member Functions

virtual void fillShape (EcalShapeBase::DVec &aVec) const

Private Attributes

double m_tau
double m_tStart

Detailed Description

Definition at line 6 of file APDShape.h.


Constructor & Destructor Documentation

APDShape::APDShape ( double  tStart,
double  tau 
)

Definition at line 11 of file APDShape.cc.

References EcalShapeBase::buildMe(), ExpressReco_HICollisions_FallBack::e, m_tau, and m_tStart.

                                     :
   EcalShapeBase( true ) ,
   m_tStart ( tStart ) ,
   m_tau    ( tau    )
{
   assert( m_tau    > 1.e-5 ) ;
   assert( m_tStart > 0     ) ;
   buildMe() ;
}
APDShape::~APDShape ( ) [virtual]

Definition at line 7 of file APDShape.cc.

{
}

Member Function Documentation

void APDShape::fillShape ( EcalShapeBase::DVec aVec) const [protected, virtual]

Implements EcalShapeBase.

Definition at line 29 of file APDShape.cc.

References funct::exp(), i, EcalShapeBase::k1NSecBinsTotal, m_tau, and m_tStart.

{
   for( unsigned int i ( 0 ) ; i != k1NSecBinsTotal ; ++i )
   {
      const double ctime ( ( 1.*i + 0.5 - m_tStart )/m_tau ) ;
      aVec[i] = ( 0 > ctime ? 0 : ctime * exp( 1. - ctime ) ) ;
   }
}
double APDShape::threshold ( ) const [virtual]

Implements EcalShapeBase.

Definition at line 23 of file APDShape.cc.

{
   return 0.0 ; 
}

Member Data Documentation

double APDShape::m_tau [private]

Definition at line 24 of file APDShape.h.

Referenced by APDShape(), and fillShape().

double APDShape::m_tStart [private]

Definition at line 23 of file APDShape.h.

Referenced by APDShape(), and fillShape().