CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
HcalShape Class Reference

shaper for Hcal (not for HF) More...

#include <HcalShape.h>

Inheritance diagram for HcalShape:
CaloVShape

Public Member Functions

 HcalShape ()
 
double operator() (double time) const override
 
void setShape (int shapeType)
 
double timeToRise () const override
 
- Public Member Functions inherited from CaloVShape
 CaloVShape ()
 
virtual ~CaloVShape ()
 

Private Attributes

HcalPulseShapes::Shape shape_
 

Detailed Description

shaper for Hcal (not for HF)

Definition at line 15 of file HcalShape.h.

Constructor & Destructor Documentation

◆ HcalShape()

HcalShape::HcalShape ( )

Definition at line 3 of file HcalShape.cc.

3  {
4  // no default shape is defined (since cmssw 5x)
5 }

Member Function Documentation

◆ operator()()

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

Implements CaloVShape.

Definition at line 16 of file HcalShape.cc.

16 { return shape_.at(time_); }

References HcalPulseShape::at(), and shape_.

◆ setShape()

void HcalShape::setShape ( int  shapeType)

Definition at line 7 of file HcalShape.cc.

7  {
8  // keep pulse shape for HPD, HO SiPM, HF PMT, depending on shapeType
9  // (101,102 etc.)
10  // std::cout << "- HcalShape::setShape for type " << shapeType << std::endl;
11  shape_ = HcalPulseShapes().getShape(shapeType);
12 }

References HcalPulseShapes::getShape(), and shape_.

◆ timeToRise()

double HcalShape::timeToRise ( ) const
overridevirtual

Implements CaloVShape.

Definition at line 14 of file HcalShape.cc.

14 { return 0.; }

Member Data Documentation

◆ shape_

HcalPulseShapes::Shape HcalShape::shape_
private

Definition at line 23 of file HcalShape.h.

Referenced by operator()(), and setShape().

HcalPulseShapes
Definition: HcalPulseShapes.h:22
HcalPulseShapes::getShape
const Shape & getShape(int shapeType) const
Definition: HcalPulseShapes.cc:500
HcalShape::shape_
HcalPulseShapes::Shape shape_
Definition: HcalShape.h:23
HcalPulseShape::at
float at(double time) const
Definition: HcalPulseShape.cc:23