CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 ()
 
virtual double operator() (double time) const
 
void setShape (int shapeType)
 
virtual double timeToRise () const
 
- 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.

5 {
6  // no more defual shape is defined (since cmssw 5x)
7 }

Member Function Documentation

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

Implements CaloVShape.

Definition at line 22 of file HcalShape.cc.

References HcalPulseShape::at(), and shape_.

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

Definition at line 9 of file HcalShape.cc.

References HcalPulseShapes::getShape(), and shape_.

Referenced by HcalShapes::HcalShapes().

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

Implements CaloVShape.

Definition at line 17 of file HcalShape.cc.

18 {
19  return 0.;
20 }

Member Data Documentation

HcalPulseShapes::Shape HcalShape::shape_
private

Definition at line 23 of file HcalShape.h.

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