5#ifndef ZDCUTILS_ZDCWAVEFORM_H
6#define ZDCUTILS_ZDCWAVEFORM_H
48 const std::vector<double> &addtlShapeValues);
63 virtual std::string
name()
const = 0;
68 ZDCWaveformBase(std::string tag,
double initialTauRise,
double initialTauFall,
const std::vector<std::string> &addtlShapeNames,
69 const std::vector<double> &addtlShapeValues);
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);