#include <EcalShapeBase.h>
Public Types | |
typedef std::vector< double > | DVec |
Public Member Functions | |
double | derivative (double time) const |
EcalShapeBase (bool) | |
void | m_shape_print (const char *fileName) const |
double | operator() (double aTime) const override |
void | setEventSetup (const edm::EventSetup &evtSetup, bool normalize=true) |
double | threshold () const |
double | timeOfMax () const |
double | timeOfThr () const |
double | timeToRise () const override |
~EcalShapeBase () override | |
Public Member Functions inherited from CaloVShape | |
CaloVShape () | |
virtual | ~CaloVShape () |
Protected Member Functions | |
void | buildMe (const edm::EventSetup *=nullptr, bool normalize=true) |
virtual void | fillShape (float &time_interval, double &m_thresh, EcalShapeBase::DVec &aVec, const edm::EventSetup *es) const =0 |
unsigned int | timeIndex (double aTime) const |
Protected Attributes | |
bool | m_useDBShape |
Private Attributes | |
unsigned int | m_arraySize |
unsigned int | m_denseArraySize |
DVec | m_deriv |
unsigned int | m_firstIndexOverThreshold |
double | m_firstTimeOverThreshold |
unsigned int | m_indexOfMax |
unsigned int | m_kNBinsPerNSec |
double | m_qNSecPerBin |
DVec | m_shape |
double | m_thresh |
double | m_timeOfMax |
Definition at line 24 of file EcalShapeBase.h.
typedef std::vector<double> EcalShapeBase::DVec |
Definition at line 26 of file EcalShapeBase.h.
EcalShapeBase::EcalShapeBase | ( | bool | useDBShape | ) |
Definition at line 11 of file EcalShapeBase.cc.
|
override |
Definition at line 9 of file EcalShapeBase.cc.
|
protected |
Definition at line 29 of file EcalShapeBase.cc.
References a, b, DummyCfis::c, dumpMFGeometry_cfg::delta, MillePedeFileConverter_cfg::e, validate-o2o-wbm::f1, validate-o2o-wbm::f2, fillShape(), mps_fire::i, createfilelist::int, m_arraySize, m_denseArraySize, m_deriv, m_firstIndexOverThreshold, m_firstTimeOverThreshold, m_indexOfMax, m_kNBinsPerNSec, m_qNSecPerBin, m_shape, m_thresh, m_timeOfMax, reco::mlpf::normalize(), DMR_cfg::thresh, threshold(), relativeConstraints::value, and x.
Referenced by APDShape::APDShape(), ComponentShape::ComponentShape(), EBShape::EBShape(), EEShape::EEShape(), and setEventSetup().
double EcalShapeBase::derivative | ( | double | time | ) | const |
Definition at line 119 of file EcalShapeBase.cc.
References m_denseArraySize, m_deriv, and timeIndex().
|
protectedpure virtual |
Implemented in ComponentShape, APDShape, EBShape, and EEShape.
Referenced by buildMe().
void EcalShapeBase::m_shape_print | ( | const char * | fileName | ) | const |
Definition at line 124 of file EcalShapeBase.cc.
References MillePedeFileConverter_cfg::fileName, compareTotals::fs, mps_fire::i, and m_shape.
|
overridevirtual |
Implements CaloVShape.
Definition at line 112 of file EcalShapeBase.cc.
References m_denseArraySize, m_shape, and timeIndex().
void EcalShapeBase::setEventSetup | ( | const edm::EventSetup & | evtSetup, |
bool | normalize = true |
||
) |
Definition at line 19 of file EcalShapeBase.cc.
References buildMe(), and reco::mlpf::normalize().
Referenced by EcalDigiProducer_Ph2::accumulate(), EcalDigiProducer::accumulate(), EcalTPGParamBuilder::analyze(), EcalUncalibRecHitWorkerWeights::set(), and EcalUncalibRecHitWorkerGlobal::set().
double EcalShapeBase::threshold | ( | ) | const |
|
protected |
Definition at line 101 of file EcalShapeBase.cc.
References LogDebug, m_denseArraySize, m_firstIndexOverThreshold, and m_kNBinsPerNSec.
Referenced by derivative(), and operator()().
double EcalShapeBase::timeOfMax | ( | ) | const |
double EcalShapeBase::timeOfThr | ( | ) | const |
Definition at line 21 of file EcalShapeBase.cc.
References m_firstTimeOverThreshold.
Referenced by timeToRise().
|
overridevirtual |
Implements CaloVShape.
Definition at line 25 of file EcalShapeBase.cc.
References timeOfMax(), and timeOfThr().
Referenced by EcalUncalibRecHitRecChi2Algo< C >::EcalUncalibRecHitRecChi2Algo().
|
private |
Definition at line 66 of file EcalShapeBase.h.
Referenced by buildMe().
|
private |
Definition at line 67 of file EcalShapeBase.h.
Referenced by buildMe(), derivative(), operator()(), and timeIndex().
|
private |
Definition at line 64 of file EcalShapeBase.h.
Referenced by buildMe(), and derivative().
|
private |
Definition at line 57 of file EcalShapeBase.h.
Referenced by buildMe(), and timeIndex().
|
private |
Definition at line 58 of file EcalShapeBase.h.
Referenced by buildMe(), and timeOfThr().
|
private |
Definition at line 59 of file EcalShapeBase.h.
Referenced by buildMe().
|
private |
Definition at line 62 of file EcalShapeBase.h.
Referenced by buildMe(), and timeIndex().
|
private |
Definition at line 68 of file EcalShapeBase.h.
Referenced by buildMe().
|
private |
Definition at line 63 of file EcalShapeBase.h.
Referenced by buildMe(), m_shape_print(), and operator()().
|
private |
Definition at line 61 of file EcalShapeBase.h.
Referenced by buildMe(), EEShape::fillShape(), APDShape::fillShape(), EBShape::fillShape(), ComponentShape::fillShape(), and threshold().
|
private |
Definition at line 60 of file EcalShapeBase.h.
Referenced by buildMe(), and timeOfMax().
|
protected |
Definition at line 54 of file EcalShapeBase.h.
Referenced by APDShape::fillShape(), EEShape::fillShape(), EBShape::fillShape(), and ComponentShape::fillShape().