Namespaces | Functions | Variables
ADCShapeFit.cxx File Reference
#include "Calibrator/func/ADCShapeFit.h"
#include <cassert>
#include <cmath>
#include <iostream>
#include "lz4hc.h"
#include "TFile.h"
#include "TTree.h"

Go to the source code of this file.

Namespaces

 calib
 CDPStorage service.
 

Functions

template<class T >
T sqr (T x)
 Function to perform, and table to cache, timing fits to ADC values. More...
 
double calib::GetExpectations (double t0, double riseTime, double fallTime, double preAmp, const int16_t *obs, double *exps, double &base, int mode)
 Helper function for ADCShapeFit inner loop. More...
 
uint16_t calib::ADCShapeFit (int16_t adc1, int16_t adc2, int16_t adc3, double riseTime, double fallTime, double preAmp, bool &goodTime, int fMode)
 

Variables

const int calib::kChunk = 2000
 
const unsigned int calib::kNumFineTimingADCPoints = 4
 
const double calib::kZeroOffsetSamples = -1
 
const int calib::kOffsetStep = 16
 
const double calib::kSamplesPerOffset = 1./(256*64)
 

Function Documentation

template<class T >
T sqr ( T  x)
inline

Function to perform, and table to cache, timing fits to ADC values.

Author
bckho.nosp@m.use@.nosp@m.calte.nosp@m.ch.e.nosp@m.du
Date

Definition at line 23 of file ADCShapeFit.cxx.

References submit_syst::x.

Referenced by calib::ADCShapeFit(), calib::BetheBlochAnalytic::dEdx(), geo::DsqrToLine(), geo::LinFitMinDperp(), and calib::BetheBlochAnalytic::MPV().

23 {return x*x;}