#include <EcalShapeBase.h>
Public Types | |
enum | { kReadoutTimeInterval = 25, kNBinsPerNSec = 10, k1NSecBins = kReadoutTimeInterval*kNBinsPerNSec, k1NSecBinsTotal = 2*k1NSecBins, kNBinsStored = k1NSecBinsTotal*kNBinsPerNSec } |
typedef std::vector< double > | DVec |
Public Member Functions | |
double | derivative (double time) const |
EcalShapeBase (bool aSaveDerivative) | |
double | operator() (double aTime) const |
virtual double | threshold () const =0 |
double | timeOfMax () const |
double | timeOfThr () const |
virtual double | timeToRise () const |
virtual | ~EcalShapeBase () |
Public Member Functions inherited from CaloVShape | |
CaloVShape () | |
virtual | ~CaloVShape () |
Static Public Attributes | |
static const double | qNSecPerBin = 1./(1.*kNBinsPerNSec) |
Protected Member Functions | |
void | buildMe () |
virtual void | fillShape (DVec &aVec) const =0 |
unsigned int | timeIndex (double aTime) const |
Private Attributes | |
DVec * | m_derivPtr |
unsigned int | m_firstIndexOverThreshold |
double | m_firstTimeOverThreshold |
unsigned int | m_indexOfMax |
DVec | m_shape |
double | m_timeOfMax |
Definition at line 12 of file EcalShapeBase.h.
typedef std::vector<double> EcalShapeBase::DVec |
Definition at line 16 of file EcalShapeBase.h.
anonymous enum |
Enumerator | |
---|---|
kReadoutTimeInterval | |
kNBinsPerNSec | |
k1NSecBins | |
k1NSecBinsTotal | |
kNBinsStored |
Definition at line 32 of file EcalShapeBase.h.
EcalShapeBase::EcalShapeBase | ( | bool | aSaveDerivative | ) |
Definition at line 16 of file EcalShapeBase.cc.
|
virtual |
|
protected |
Definition at line 46 of file EcalShapeBase.cc.
References a, b, EnergyCorrector::c, delta, alignCSCRings::e, validate-o2o-wbm::f1, validate-o2o-wbm::f2, connectstrParser::f3, fillShape(), i, j, k1NSecBinsTotal, kNBinsPerNSec, kNBinsStored, m_derivPtr, m_firstIndexOverThreshold, m_firstTimeOverThreshold, m_indexOfMax, m_shape, m_timeOfMax, qNSecPerBin, GOODCOLL_filter_cfg::thresh, threshold(), relativeConstraints::value, and x.
Referenced by APDShape::APDShape(), EBShape::EBShape(), and EEShape::EEShape().
double EcalShapeBase::derivative | ( | double | time | ) | const |
Definition at line 149 of file EcalShapeBase.cc.
References cmsHarvester::index, kNBinsStored, m_derivPtr, and timeIndex().
|
protectedpure virtual |
|
virtual |
Implements CaloVShape.
Definition at line 140 of file EcalShapeBase.cc.
References cmsHarvester::index, kNBinsStored, m_shape, and timeIndex().
|
pure virtual |
|
protected |
Definition at line 124 of file EcalShapeBase.cc.
References cmsHarvester::index, kNBinsPerNSec, kNBinsStored, LogDebug, and m_firstIndexOverThreshold.
Referenced by derivative(), and operator()().
double EcalShapeBase::timeOfMax | ( | ) | const |
Definition at line 33 of file EcalShapeBase.cc.
References m_timeOfMax.
Referenced by EcalTPGParamBuilder::computeWeights(), and timeToRise().
double EcalShapeBase::timeOfThr | ( | ) | const |
Definition at line 27 of file EcalShapeBase.cc.
References m_firstTimeOverThreshold.
Referenced by EcalTPGParamBuilder::computeWeights(), and timeToRise().
|
virtual |
Implements CaloVShape.
Definition at line 39 of file EcalShapeBase.cc.
References timeOfMax(), and timeOfThr().
Referenced by EcalDccWeightBuilder::computeWeights(), and EcalUncalibRecHitRecChi2Algo< C >::EcalUncalibRecHitRecChi2Algo().
|
private |
Definition at line 56 of file EcalShapeBase.h.
Referenced by buildMe(), derivative(), and ~EcalShapeBase().
|
private |
Definition at line 51 of file EcalShapeBase.h.
Referenced by buildMe(), and timeIndex().
|
private |
Definition at line 52 of file EcalShapeBase.h.
Referenced by buildMe(), and timeOfThr().
|
private |
Definition at line 53 of file EcalShapeBase.h.
Referenced by buildMe().
|
private |
Definition at line 55 of file EcalShapeBase.h.
Referenced by buildMe(), and operator()().
|
private |
Definition at line 54 of file EcalShapeBase.h.
Referenced by buildMe(), and timeOfMax().
|
static |
Definition at line 39 of file EcalShapeBase.h.
Referenced by buildMe().