CMS 3D CMS Logo

Public Member Functions | Private Attributes

ESShape Class Reference

#include <ESShape.h>

Inheritance diagram for ESShape:
CaloVShape

List of all members.

Public Member Functions

void display () const
 ESShape ()
 ctor
virtual double operator() (double time) const
void setGain (const int gain)
virtual double timeToRise () const
 ~ESShape ()
 dtor

Private Attributes

int theGain_

Detailed Description

Definition at line 16 of file ESShape.h.


Constructor & Destructor Documentation

ESShape::ESShape ( )

ctor

Definition at line 4 of file ESShape.cc.

                 {
}
ESShape::~ESShape ( ) [inline]

dtor

Definition at line 24 of file ESShape.h.

{}

Member Function Documentation

void ESShape::display ( ) const [inline]

Definition at line 30 of file ESShape.h.

{}
double ESShape::operator() ( double  time) const [virtual]

Implements CaloVShape.

Definition at line 7 of file ESShape.cc.

References create_public_lumi_plots::exp, n, funct::pow(), and v.

{   
  if (time_>0.00001) {

    double wc = 0.07291;
    double n  = 1.798; // n-1 (in fact)
    double v1 = pow(wc/n*time_, n);
    double v2 = exp(n-wc*time_);
    double v  = v1*v2;

    return v;
  } 
  else {
    return 0.0;
  }
}
void ESShape::setGain ( const int  gain) [inline]

Definition at line 26 of file ESShape.h.

References theGain_.

Referenced by EcalMixingModuleValidation::checkCalibrations(), and EcalDigiProducer::checkCalibrations().

{ theGain_ = gain; }
double ESShape::timeToRise ( ) const [virtual]

Implements CaloVShape.

Definition at line 25 of file ESShape.cc.

{
   return 0.0 ;
}

Member Data Documentation

int ESShape::theGain_ [private]

Definition at line 34 of file ESShape.h.

Referenced by setGain().