#include <MTDShapeBase.h>
|
typedef std::vector< double > | DVec |
|
|
double | linear_interpolation (const double &y, const double &x1, const double &x2, const double &y1, const double &y2) const |
|
Definition at line 10 of file MTDShapeBase.h.
MTDShapeBase::MTDShapeBase |
( |
| ) |
|
Definition at line 8 of file MTDShapeBase.cc.
const double qNSecPerBin_
static constexpr unsigned int kNBinsPerNSec
static constexpr unsigned int k1NSecBinsTotal
std::vector< double > DVec
MTDShapeBase::~MTDShapeBase |
( |
| ) |
|
|
override |
void MTDShapeBase::buildMe |
( |
| ) |
|
|
protected |
virtual void MTDShapeBase::fillShape |
( |
DVec & |
aVec | ) |
const |
|
protectedpure virtual |
unsigned int MTDShapeBase::indexOfMax |
( |
| ) |
const |
double MTDShapeBase::linear_interpolation |
( |
const double & |
y, |
|
|
const double & |
x1, |
|
|
const double & |
x2, |
|
|
const double & |
y1, |
|
|
const double & |
y2 |
|
) |
| const |
|
private |
double MTDShapeBase::operator() |
( |
double |
aTime | ) |
const |
|
overridevirtual |
std::array< float, 3 > MTDShapeBase::timeAtThr |
( |
const float |
scale, |
|
|
const float |
threshold1, |
|
|
const float |
threshold2 |
|
) |
| const |
Definition at line 15 of file MTDShapeBase.cc.
References CustomPhysics_cfi::amplitude, mps_fire::i, indexOfMax_, linear_interpolation(), qNSecPerBin_, Scenarios_cff::scale, shape_, and create_public_lumi_plots::times_tmp.
Referenced by BTLElectronicsSim::run(), and timeToRise().
20 std::array<float,3>
times_tmp = { {0., 0., 0.} };
30 unsigned int index_LT1 = 0;
31 unsigned int index_LT2 = 0;
37 if( amplitude > threshold1 && index_LT1 == 0 )
40 if( amplitude > threshold2 && index_LT2 == 0 ){
49 unsigned int index_FT1 = 0;
55 if( amplitude>threshold1 && index_FT1==0){
const double qNSecPerBin_
double linear_interpolation(const double &y, const double &x1, const double &x2, const double &y1, const double &y2) const
unsigned int MTDShapeBase::timeIndex |
( |
double |
aTime | ) |
const |
|
protected |
double MTDShapeBase::timeOfMax |
( |
| ) |
const |
double MTDShapeBase::timeToRise |
( |
| ) |
const |
|
inlineoverridevirtual |
unsigned int MTDShapeBase::indexOfMax_ |
|
private |
constexpr unsigned int MTDShapeBase::kNBinsPerNSec = 100 |
|
static |
constexpr unsigned int MTDShapeBase::kReadoutTimeInterval = 31 |
|
static |
const double MTDShapeBase::qNSecPerBin_ |
|
private |
DVec MTDShapeBase::shape_ |
|
private |
double MTDShapeBase::timeOfMax_ |
|
private |