#include <MTDShapeBase.h>
Public Types | |
typedef std::vector< double > | DVec |
Public Member Functions | |
float | fallTime () const |
unsigned int | indexOfMax () const |
float | maximum () const |
MTDShapeBase () | |
double | operator() (double aTime) const override |
std::array< float, 3 > | timeAtThr (const float scale, const float threshold1, const float threshold2) const |
double | timeOfMax () const |
double | timeToRise () const override |
~MTDShapeBase () override | |
Public Member Functions inherited from CaloVShape | |
CaloVShape () | |
virtual | ~CaloVShape () |
Static Public Attributes | |
static constexpr unsigned int | k1NSecBinsTotal = kReadoutTimeInterval * kNBinsPerNSec |
static constexpr unsigned int | kNBinsPerNSec = 100 |
static constexpr unsigned int | kReadoutTimeInterval = 28 |
Protected Member Functions | |
void | buildMe () |
virtual void | fillShape (DVec &aVec) const =0 |
unsigned int | timeIndex (double aTime) const |
Private Member Functions | |
double | linear_interpolation (const double &y, const double &x1, const double &x2, const double &y1, const double &y2) const |
Private Attributes | |
float | fallTime_ |
unsigned int | indexOfMax_ |
const double | qNSecPerBin_ |
DVec | shape_ |
double | timeOfMax_ |
Definition at line 9 of file MTDShapeBase.h.
typedef std::vector<double> MTDShapeBase::DVec |
Definition at line 11 of file MTDShapeBase.h.
MTDShapeBase::MTDShapeBase | ( | ) |
Definition at line 6 of file MTDShapeBase.cc.
|
override |
Definition at line 4 of file MTDShapeBase.cc.
|
protected |
Definition at line 81 of file MTDShapeBase.cc.
References fallTime_, fillShape(), mps_fire::i, indexOfMax_, qNSecPerBin_, shape_, and timeOfMax_.
Referenced by BTLPulseShape::BTLPulseShape(), and ETLPulseShape::ETLPulseShape().
float MTDShapeBase::fallTime | ( | ) | const |
Definition at line 79 of file MTDShapeBase.cc.
References fallTime_.
Referenced by ETLElectronicsSim::run().
|
protectedpure virtual |
Implemented in BTLPulseShape, and ETLPulseShape.
Referenced by buildMe().
unsigned int MTDShapeBase::indexOfMax | ( | ) | const |
|
private |
Definition at line 119 of file MTDShapeBase.cc.
References a, b, Exception, testProducerWithPsetDescEmpty_cfi::x1, testProducerWithPsetDescEmpty_cfi::x2, y, testProducerWithPsetDescEmpty_cfi::y1, and testProducerWithPsetDescEmpty_cfi::y2.
Referenced by timeAtThr().
float MTDShapeBase::maximum | ( | ) | const |
Definition at line 77 of file MTDShapeBase.cc.
References indexOfMax_, and shape_.
Referenced by ETLElectronicsSim::run().
|
overridevirtual |
Implements CaloVShape.
Definition at line 113 of file MTDShapeBase.cc.
References k1NSecBinsTotal, shape_, and timeIndex().
std::array< float, 3 > MTDShapeBase::timeAtThr | ( | const float | scale, |
const float | threshold1, | ||
const float | threshold2 | ||
) | const |
Definition at line 13 of file MTDShapeBase.cc.
References CustomPhysics_cfi::amplitude, mps_fire::i, indexOfMax_, linear_interpolation(), qNSecPerBin_, l1tEGammaCrystalsEmulatorProducer_cfi::scale, and shape_.
Referenced by BTLElectronicsSim::run(), and ETLElectronicsSim::run().
|
protected |
Definition at line 102 of file MTDShapeBase.cc.
References k1NSecBinsTotal, kNBinsPerNSec, and LogDebug.
Referenced by operator()().
double MTDShapeBase::timeOfMax | ( | ) | const |
Definition at line 75 of file MTDShapeBase.cc.
References timeOfMax_.
Referenced by ETLElectronicsSim::run().
|
inlineoverridevirtual |
|
private |
Definition at line 45 of file MTDShapeBase.h.
Referenced by buildMe(), and fallTime().
|
private |
Definition at line 43 of file MTDShapeBase.h.
Referenced by buildMe(), indexOfMax(), maximum(), and timeAtThr().
|
static |
Definition at line 29 of file MTDShapeBase.h.
Referenced by operator()(), and timeIndex().
|
static |
Definition at line 28 of file MTDShapeBase.h.
Referenced by timeIndex().
|
static |
Definition at line 27 of file MTDShapeBase.h.
|
private |
Definition at line 42 of file MTDShapeBase.h.
Referenced by buildMe(), and timeAtThr().
|
private |
Definition at line 46 of file MTDShapeBase.h.
Referenced by buildMe(), maximum(), operator()(), and timeAtThr().
|
private |
Definition at line 44 of file MTDShapeBase.h.
Referenced by buildMe(), and timeOfMax().