9 #ifndef cePulserToAdc_H 10 #define cePulserToAdc_H 25 double cePulserToAdc(
int ia,
double adcScale,
double pedestal,
double negScale,
26 const double rfLines[6],
double r6,
double qvscale) {
27 double dadc = adcScale*
cePulser(ia, rfLines, r6, qvscale);
28 if ( ia < 0.0 ) dadc *= negScale;
29 return dadc + pedestal;
34 double adcScale = pars[0];
35 double pedestal = pars[1];
36 double negScale = pars[2];
37 const double* rfLines = pars + 3;
39 double qvscale = pars[10];
40 return cePulserToAdc(ia, adcScale, pedestal, negScale, rfLines, r6, qvscale);
48 double adcScale = 3.0*14.0) {
50 const Index npar = 11;
53 pf->SetParName(0,
"AdcScale");
54 pf->SetParName(1,
"Pedestal");
55 pf->SetParName(2,
"NegScale");
56 pf->SetParameter(0, adcScale);
57 pf->SetParameter(1, 0.0);
58 pf->SetParameter(2, 1.0);
59 pf->FixParameter(10, 1.8*183.0);
int initCePulserTF1(TF1 *pf, unsigned int ipoff, double tol=0.01)
TF1 * cePulserToAdcTF1(std::string fname="adcpulser", double tol=0.01, double adcScale=3.0 *14.0)
double cePulser(int ia, const double rfLines[6], double r6, double qvscale)
double cePulserToAdc(int ia, double adcScale, double pedestal, double negScale, const double rfLines[6], double r6, double qvscale)