#include <ZDCWaveform.h>
|
| ZDCWaveformBase (std::string tag, double initialTauRise, double initialTauFall, const std::vector< std::string > &addtlShapeNames, const std::vector< double > &addtlShapeValues) |
|
virtual | ~ZDCWaveformBase ()=default |
|
| ZDCWaveformBase (const ZDCWaveformBase &instance) |
|
ZDCWaveformBase * | Duplicate () |
|
double | evaluate (double time) const |
|
double | evaluateRoot (double *x, double *p) |
|
double | evaluateRootNoTF1Par (double *x, double *p) |
|
double | operator() (double *x, double *p) |
|
const std::string & | getTag () const |
|
std::string | getNameTag () const |
|
const std::string | getName () const |
|
double | getTauRise () const |
|
double | getTauFall () const |
|
unsigned int | getNumAddtlShapeValues () const |
|
double | getAddtlShapeValue (const std::string &name) const |
|
double | getAddtlShapeValue (unsigned int index) const |
|
void | setAddtlShapeValue (std::string name, double value) |
|
void | setAddtlShapeValue (unsigned int index, double value) |
|
void | setTaus (double tauRise, double tauFall) |
|
void | restoreInitial () |
|
TF1 * | makeWaveformTF1 (ZDCWaveformBase *ptr, double xmin, double xmax, bool useTF1Params=true) |
|
TF1 * | makeWaveformTF1 (ZDCWaveformBase &instance, double xmin, double xmax, bool useTF1Params=true) |
|
Definition at line 30 of file ZDCWaveform.h.
◆ ZDCWaveformBase() [1/3]
ZDCWaveformBase::ZDCWaveformBase |
( |
| ) |
|
|
protecteddelete |
◆ ZDCWaveformBase() [2/3]
ZDCWaveformBase::ZDCWaveformBase |
( |
std::string |
tag, |
|
|
double |
initialTauRise, |
|
|
double |
initialTauFall, |
|
|
const std::vector< std::string > & |
addtlShapeNames, |
|
|
const std::vector< double > & |
addtlShapeValues |
|
) |
| |
◆ ~ZDCWaveformBase()
virtual ZDCWaveformBase::~ZDCWaveformBase |
( |
| ) |
|
|
virtualdefault |
◆ ZDCWaveformBase() [3/3]
◆ doEvaluate()
virtual double ZDCWaveformBase::doEvaluate |
( |
double |
time | ) |
const |
|
protectedpure virtual |
◆ Duplicate()
◆ evaluate()
double ZDCWaveformBase::evaluate |
( |
double |
time | ) |
const |
|
inline |
◆ evaluateRoot()
double ZDCWaveformBase::evaluateRoot |
( |
double * |
x, |
|
|
double * |
p |
|
) |
| |
|
inline |
◆ evaluateRootNoTF1Par()
double ZDCWaveformBase::evaluateRootNoTF1Par |
( |
double * |
x, |
|
|
double * |
p |
|
) |
| |
|
inline |
◆ getAddtlShapeValue() [1/2]
double ZDCWaveformBase::getAddtlShapeValue |
( |
const std::string & |
name | ) |
const |
|
inline |
◆ getAddtlShapeValue() [2/2]
double ZDCWaveformBase::getAddtlShapeValue |
( |
unsigned int |
index | ) |
const |
|
inline |
◆ getName()
const std::string ZDCWaveformBase::getName |
( |
| ) |
const |
|
inline |
◆ getNameTag()
std::string ZDCWaveformBase::getNameTag |
( |
| ) |
const |
|
inline |
◆ getNumAddtlShapeValues()
unsigned int ZDCWaveformBase::getNumAddtlShapeValues |
( |
| ) |
const |
|
inline |
◆ getTag()
const std::string& ZDCWaveformBase::getTag |
( |
| ) |
const |
|
inline |
◆ getTauFall()
double ZDCWaveformBase::getTauFall |
( |
| ) |
const |
|
inline |
◆ getTauRise()
double ZDCWaveformBase::getTauRise |
( |
| ) |
const |
|
inline |
◆ makeWaveformTF1() [1/2]
TF1* ZDCWaveformBase::makeWaveformTF1 |
( |
ZDCWaveformBase & |
instance, |
|
|
double |
xmin, |
|
|
double |
xmax, |
|
|
bool |
useTF1Params = true |
|
) |
| |
|
inline |
◆ makeWaveformTF1() [2/2]
TF1* ZDCWaveformBase::makeWaveformTF1 |
( |
ZDCWaveformBase * |
ptr, |
|
|
double |
xmin, |
|
|
double |
xmax, |
|
|
bool |
useTF1Params = true |
|
) |
| |
|
inline |
Definition at line 133 of file ZDCWaveform.h.
135 std::string
name =
ptr->getNameTag() +
"_TF1";
140 unsigned int numPar = 2 +
ptr->getNumAddtlShapeValues();
143 "ZDCWaveformBase",
"evaluateRoot");
145 newTF1->SetParameter(0,
ptr->getTauRise());
146 newTF1->SetParameter(1,
ptr->getTauFall());
149 for (
unsigned int idxpar = 2; idxpar < numPar; idxpar++) {
150 newTF1->SetParameter(idxpar,
ptr->getAddtlShapeValue(idxpar - 2));
156 "ZDCWaveformBase",
"evaluateRoot");
159 newTF1->SetNpx(1000);
◆ name()
virtual std::string ZDCWaveformBase::name |
( |
| ) |
const |
|
protectedpure virtual |
◆ operator()()
double ZDCWaveformBase::operator() |
( |
double * |
x, |
|
|
double * |
p |
|
) |
| |
|
inline |
◆ restoreInitial()
void ZDCWaveformBase::restoreInitial |
( |
| ) |
|
◆ setAddtlShapeParameters()
void ZDCWaveformBase::setAddtlShapeParameters |
( |
const std::vector< std::string > & |
addtlShapeNames, |
|
|
const std::vector< double > & |
addtlShapeValues |
|
) |
| |
|
protected |
Definition at line 32 of file ZDCWaveform.cxx.
38 if (
m_numAddtlShapePars != addtlShapeValues.size())
throw std::runtime_error(
"ZDCWaveformBase::setAddtlShapeParameters; Shape name and value size mismatch");
44 for (
unsigned int param = 0; param < addtlShapeNames.size(); param++) {
◆ setAddtlShapeValue() [1/2]
void ZDCWaveformBase::setAddtlShapeValue |
( |
std::string |
name, |
|
|
double |
value |
|
) |
| |
◆ setAddtlShapeValue() [2/2]
void ZDCWaveformBase::setAddtlShapeValue |
( |
unsigned int |
index, |
|
|
double |
value |
|
) |
| |
|
inline |
◆ setAddtlShapeValues() [1/2]
void ZDCWaveformBase::setAddtlShapeValues |
( |
const double * |
values | ) |
|
|
protected |
◆ setAddtlShapeValues() [2/2]
void ZDCWaveformBase::setAddtlShapeValues |
( |
const std::vector< double > & |
values | ) |
|
|
inlineprotected |
◆ setTaus()
void ZDCWaveformBase::setTaus |
( |
double |
tauRise, |
|
|
double |
tauFall |
|
) |
| |
|
inline |
◆ m_addtlShapeInitialValues
std::vector<double> ZDCWaveformBase::m_addtlShapeInitialValues |
|
private |
◆ m_addtlShapeNames
std::map<std::string, unsigned int> ZDCWaveformBase::m_addtlShapeNames |
|
private |
◆ m_addtlShapeValues
std::vector<double> ZDCWaveformBase::m_addtlShapeValues |
|
protected |
◆ m_initialTauFall
double ZDCWaveformBase::m_initialTauFall |
|
private |
◆ m_initialTauRise
double ZDCWaveformBase::m_initialTauRise |
|
private |
◆ m_numAddtlShapePars
unsigned int ZDCWaveformBase::m_numAddtlShapePars |
|
private |
◆ m_tag
std::string ZDCWaveformBase::m_tag |
|
private |
◆ m_tauFall
double ZDCWaveformBase::m_tauFall |
|
protected |
◆ m_tauRise
double ZDCWaveformBase::m_tauRise |
|
protected |
The documentation for this class was generated from the following files: