CMS 3D CMS Logo

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...
 
double operator() (double time) const override
 
void setGain (const int gain)
 
double timeToRise () const override
 
 ~ESShape () override
 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::ESShape ( )

ctor

Definition at line 4 of file ESShape.cc.

4 {}

◆ ~ESShape()

ESShape::~ESShape ( )
inlineoverride

dtor

Definition at line 21 of file ESShape.h.

21 {}

Member Function Documentation

◆ display()

void ESShape::display ( ) const
inline

Definition at line 27 of file ESShape.h.

27 {}

◆ operator()()

double ESShape::operator() ( double  time) const
overridevirtual

Implements CaloVShape.

Definition at line 6 of file ESShape.cc.

References JetChargeProducer_cfi::exp, dqmiodumpmetadata::n, funct::pow(), and findQualityFiles::v.

6  {
7  if (time_ > 0.00001) {
8  double wc = 0.07291;
9  double n = 1.798; // n-1 (in fact)
10  double v1 = pow(wc / n * time_, n);
11  double v2 = exp(n - wc * time_);
12  double v = v1 * v2;
13 
14  return v;
15  } else {
16  return 0.0;
17  }
18 }
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:29

◆ setGain()

void ESShape::setGain ( const int  gain)
inline

Definition at line 23 of file ESShape.h.

References PedestalClient_cfi::gain, and theGain_.

Referenced by EcalDigiProducer::checkCalibrations().

◆ timeToRise()

double ESShape::timeToRise ( ) const
overridevirtual

Implements CaloVShape.

Definition at line 20 of file ESShape.cc.

20 { return 0.0; }

Member Data Documentation

◆ theGain_

int ESShape::theGain_
private

Definition at line 30 of file ESShape.h.

Referenced by setGain().