#include <MTDShapeBase.h>
Public Types | |
typedef std::vector< double > | DVec |
Public Member Functions | |
unsigned int | indexOfMax () 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 | |
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 73 of file MTDShapeBase.cc.
References fillShape(), mps_fire::i, indexOfMax_, qNSecPerBin_, shape_, and timeOfMax_.
Referenced by BTLPulseShape::BTLPulseShape().
|
protectedpure virtual |
Implemented in BTLPulseShape.
Referenced by buildMe().
unsigned int MTDShapeBase::indexOfMax | ( | ) | const |
|
private |
Definition at line 104 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().
|
overridevirtual |
Implements CaloVShape.
Definition at line 98 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 9 of file MTDShapeBase.cc.
References CustomPhysics_cfi::amplitude, mps_fire::i, indexOfMax_, linear_interpolation(), qNSecPerBin_, L1EGammaClusterEmuProducer_cfi::scale, and shape_.
Referenced by BTLElectronicsSim::run().
|
protected |
Definition at line 87 of file MTDShapeBase.cc.
References k1NSecBinsTotal, kNBinsPerNSec, and LogDebug.
Referenced by operator()().
double MTDShapeBase::timeOfMax | ( | ) | const |
|
inlineoverridevirtual |
|
private |
Definition at line 41 of file MTDShapeBase.h.
Referenced by buildMe(), indexOfMax(), and timeAtThr().
|
static |
Definition at line 27 of file MTDShapeBase.h.
Referenced by operator()(), and timeIndex().
|
static |
Definition at line 26 of file MTDShapeBase.h.
Referenced by timeIndex().
|
static |
Definition at line 25 of file MTDShapeBase.h.
|
private |
Definition at line 40 of file MTDShapeBase.h.
Referenced by buildMe(), and timeAtThr().
|
private |
Definition at line 43 of file MTDShapeBase.h.
Referenced by buildMe(), operator()(), and timeAtThr().
|
private |
Definition at line 42 of file MTDShapeBase.h.
Referenced by buildMe(), and timeOfMax().