CMS 3D CMS Logo

CaloShapeIntegrator Class Reference

This class takes an existing Shape, and integrates it, summing up all the values, each nanosecond, up to the bunch spacing. More...

#include <SimCalorimetry/CaloSimAlgos/interface/CaloShapeIntegrator.h>

Inheritance diagram for CaloShapeIntegrator:

CaloVShape

List of all members.

Public Types

enum  { BUNCHSPACE = 25 }

Public Member Functions

 CaloShapeIntegrator (CaloVShape *shape)
virtual double derivative (double) const
 just dummy
virtual double operator() (double startTime) const
virtual ~CaloShapeIntegrator ()
 doesn't delete pointer

Private Attributes

CaloVShapetheShape


Detailed Description

This class takes an existing Shape, and integrates it, summing up all the values, each nanosecond, up to the bunch spacing.

Definition at line 12 of file CaloShapeIntegrator.h.


Member Enumeration Documentation

anonymous enum

Enumerator:
BUNCHSPACE 

Definition at line 15 of file CaloShapeIntegrator.h.

00015 {BUNCHSPACE = 25};


Constructor & Destructor Documentation

CaloShapeIntegrator::CaloShapeIntegrator ( CaloVShape shape  )  [inline]

Definition at line 17 of file CaloShapeIntegrator.h.

00017 : theShape(shape) {}

virtual CaloShapeIntegrator::~CaloShapeIntegrator (  )  [inline, virtual]

doesn't delete pointer

Definition at line 19 of file CaloShapeIntegrator.h.

00019 {}


Member Function Documentation

virtual double CaloShapeIntegrator::derivative ( double   )  const [inline, virtual]

just dummy

Definition at line 24 of file CaloShapeIntegrator.h.

00024 {return 0.;}

double CaloShapeIntegrator::operator() ( double  startTime  )  const [virtual]

Implements CaloVShape.

Definition at line 3 of file CaloShapeIntegrator.cc.

References BUNCHSPACE, and sum().

00003                                                               {
00004   double sum = 0.;
00005    // not sure what the half-a-bin is for
00006   double time = startTime + 0.5;
00007   for(unsigned istep = 0; istep < BUNCHSPACE; ++istep) {
00008     sum += (*theShape)(time);
00009     ++time;
00010   }
00011   return sum;
00012 }


Member Data Documentation

CaloVShape* CaloShapeIntegrator::theShape [private]

Definition at line 27 of file CaloShapeIntegrator.h.


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:15:54 2009 for CMSSW by  doxygen 1.5.4