22#include <framework/database/DBObjPtr.h>
23#include <cdc/utilities/CDCDedxHadSat.h>
46 HadronSaturation(
double alpha,
double gamma,
double delta,
double power,
double ratio,
int cosbins);
81 double myFunction(
double alpha,
double gamma,
double delta,
double power,
double ratio);
86 static void minuitFunction(
int&,
double*,
double& result,
double* para,
int);
Class to perform the hadron saturation calibration.
std::vector< double > m_costheta
a vector to hold cos(theta) values
double m_delta
the delta parameter for the hadron saturation correction
std::vector< double > m_betagamma
a vector to hold beta-gamma values
double m_ratio
the ratio parameter for the hadron saturation correction
std::vector< double > m_dedx
a vector to hold dE/dx measurements
double m_gamma
the gamma parameter for the hadron saturation correction
double myFunction(double alpha, double gamma, double delta, double power, double ratio)
some helper functions for the hadron saturation correction
std::vector< double > m_dedxerror
a vector to hold dE/dx errors
void printEvents(int firstevent, int nevents)
print a sample of events
void fillSample(TString infilename)
fill the vectors below
HadronSaturation()
Constructor: Sets the description, the properties and the parameters of the algorithm.
double m_alpha
the alpha parameter for the hadron saturation correction
void fitSaturation()
perform the hadron saturation fit
void setCosBins(int nbins)
set the number of cosine bins
void clear()
clear the vectors
virtual ~HadronSaturation()
Destructor.
double m_power
the power parameter for the hadron saturation correction
static void minuitFunction(int &, double *, double &result, double *para, int)
functions for the hadron saturation correction
int m_cosbins
the number of cosine bins
Abstract base class for different kinds of events.