CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
ESShape Class Reference

#include <ESShape.h>

Inheritance diagram for ESShape:
CaloVShape

Public Member Functions

void display () const
 
 ESShape ()
 ctor More...
 
virtual double operator() (double time) const
 
void setGain (const int gain)
 
virtual double timeToRise () const
 
 ~ESShape ()
 dtor More...
 
- Public Member Functions inherited from CaloVShape
 CaloVShape ()
 
virtual ~CaloVShape ()
 

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.

4  {
5 }
ESShape::~ESShape ( )
inline

dtor

Definition at line 24 of file ESShape.h.

24 {}

Member Function Documentation

void ESShape::display ( ) const
inline

Definition at line 30 of file ESShape.h.

30 {}
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 findQualityFiles::v.

8 {
9  if (time_>0.00001) {
10 
11  double wc = 0.07291;
12  double n = 1.798; // n-1 (in fact)
13  double v1 = pow(wc/n*time_, n);
14  double v2 = exp(n-wc*time_);
15  double v = v1*v2;
16 
17  return v;
18  }
19  else {
20  return 0.0;
21  }
22 }
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:40
void ESShape::setGain ( const int  gain)
inline

Definition at line 26 of file ESShape.h.

References theGain_.

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

26 { theGain_ = gain; }
int theGain_
Definition: ESShape.h:34
double ESShape::timeToRise ( ) const
virtual

Implements CaloVShape.

Definition at line 25 of file ESShape.cc.

26 {
27  return 0.0 ;
28 }

Member Data Documentation

int ESShape::theGain_
private

Definition at line 34 of file ESShape.h.

Referenced by setGain().