13#ifndef ELECTRONCORRECTION_H
14#define ELECTRONCORRECTION_H
24 ElectronCorrection( TString constfilename, TString infilename,
double removeLowest,
double removeHighest );
46 void calculateMeans(
double& mean,
double& truncatedMean,
double& truncatedMeanErr,
double dedx[],
int size)
const;
47 void calculateMeans(
double& mean,
double& truncatedMean,
double& truncatedMeanErr, std::vector<double> dedx,
int size)
const;
52 TString m_constfilename;
54 double m_removeLowest;
55 double m_removeHighest;
59 double m_wireGain[14336];
60 double m_valid[14336];
void initializeParameters()
void process(TFile *outfile)
virtual ~ElectronCorrection()
void calculateMeans(double &mean, double &truncatedMean, double &truncatedMeanErr, double dedx[], int size) const
double RunGainCorrection(double &dedx) const
double StandardCorrection(int wireID, double costheta, double dedx) const
double WireGainCorrection(int wireID, double &dedx) const
double HadronCorrection(double costheta, double dedx) const