#include <CaloCachedShapeIntegrator.h>
Public Member Functions | |
CaloCachedShapeIntegrator (const CaloVShape *aShape) | |
virtual double | operator() (double startTime) const |
virtual double | timeToRise () const |
virtual | ~CaloCachedShapeIntegrator () |
Private Attributes | |
double | timeToRise_ |
std::vector< double > | v_ |
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 CaloCachedShapeIntegrator.h.
CaloCachedShapeIntegrator::CaloCachedShapeIntegrator | ( | const CaloVShape * | aShape | ) |
Definition at line 5 of file CaloCachedShapeIntegrator.cc.
References lumiQTWidget::t, and v_.
: v_(NBINS, 0.), timeToRise_(aShape->timeToRise()) { for(int t = 0; t < 256; ++t) { double amount = (*aShape)(t); for(int istep = 0; istep < 25; ++istep) { int ibin = t + istep; v_[ibin] += amount; } } }
CaloCachedShapeIntegrator::~CaloCachedShapeIntegrator | ( | ) | [virtual] |
Definition at line 20 of file CaloCachedShapeIntegrator.cc.
{ }
double CaloCachedShapeIntegrator::operator() | ( | double | startTime | ) | const [virtual] |
Implements CaloVShape.
Definition at line 31 of file CaloCachedShapeIntegrator.cc.
double CaloCachedShapeIntegrator::timeToRise | ( | ) | const [virtual] |
Implements CaloVShape.
Definition at line 25 of file CaloCachedShapeIntegrator.cc.
References timeToRise_.
{ return timeToRise_; }
double CaloCachedShapeIntegrator::timeToRise_ [private] |
Definition at line 26 of file CaloCachedShapeIntegrator.h.
Referenced by timeToRise().
std::vector<double> CaloCachedShapeIntegrator::v_ [private] |
Definition at line 25 of file CaloCachedShapeIntegrator.h.
Referenced by CaloCachedShapeIntegrator(), and operator()().