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.

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 }

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

◆ setGain()

void ESShape::setGain ( const int  gain)
inline

◆ 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().

dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
findQualityFiles.v
v
Definition: findQualityFiles.py:179
ESShape::theGain_
int theGain_
Definition: ESShape.h:30
PedestalClient_cfi.gain
gain
Definition: PedestalClient_cfi.py:37
funct::pow
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:30
JetChargeProducer_cfi.exp
exp
Definition: JetChargeProducer_cfi.py:6