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.

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

Member Function Documentation

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

Implements CaloVShape.

Definition at line 21 of file HcalShape.cc.

References HcalPulseShape::at(), and shape_.

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

Definition at line 8 of file HcalShape.cc.

References HcalPulseShapes::getShape(), and shape_.

9 {
10  // keep pulse shape for HPD, HO SiPM, HF PMT, depending on shapeType
11  // (101,102 etc.)
12  // std::cout << "- HcalShape::setShape for type " << shapeType << std::endl;
13  shape_=HcalPulseShapes().getShape(shapeType);
14 }
const Shape & getShape(int shapeType) const
HcalPulseShapes::Shape shape_
Definition: HcalShape.h:23
double HcalShape::timeToRise ( ) const
overridevirtual

Implements CaloVShape.

Definition at line 16 of file HcalShape.cc.

17 {
18  return 0.;
19 }

Member Data Documentation

HcalPulseShapes::Shape HcalShape::shape_
private

Definition at line 23 of file HcalShape.h.

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