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

Definition at line 3 of file HcalShape.cc.

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

Member Function Documentation

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

Implements CaloVShape.

Definition at line 16 of file HcalShape.cc.

References HcalPulseShape::at(), and shape_.

16 { return shape_.at(time_); }
float at(double time) const
HcalPulseShapes::Shape shape_
Definition: HcalShape.h:23
void HcalShape::setShape ( int  shapeType)

Definition at line 7 of file HcalShape.cc.

References HcalPulseShapes::getShape(), and shape_.

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 }
const Shape & getShape(int shapeType) const
HcalPulseShapes::Shape shape_
Definition: HcalShape.h:23
double HcalShape::timeToRise ( ) const
overridevirtual

Implements CaloVShape.

Definition at line 14 of file HcalShape.cc.

14 { return 0.; }

Member Data Documentation

HcalPulseShapes::Shape HcalShape::shape_
private

Definition at line 23 of file HcalShape.h.

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