#include <SimCalorimetry/CaloSimAlgos/interface/CaloShapeIntegrator.h>
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 | |
CaloVShape * | theShape |
Definition at line 12 of file CaloShapeIntegrator.h.
anonymous enum |
CaloShapeIntegrator::CaloShapeIntegrator | ( | CaloVShape * | shape | ) | [inline] |
virtual CaloShapeIntegrator::~CaloShapeIntegrator | ( | ) | [inline, virtual] |
virtual double CaloShapeIntegrator::derivative | ( | double | ) | const [inline, virtual] |
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 }
CaloVShape* CaloShapeIntegrator::theShape [private] |
Definition at line 27 of file CaloShapeIntegrator.h.