9 #ifndef CALIB_XYZCALIBPROTODUNE_H 10 #define CALIB_XYZCALIBPROTODUNE_H 58 double dy = a.
y - b.
y;
59 if (dy < -1.
e-5)
return true;
60 else if (dy > 1.
e-5)
return false;
61 else return (a.
z < b.
z);
74 bool Update(uint64_t ts=0);
77 virtual double GetXCorr(
int plane,
double x)
override;
78 virtual double GetYZCorr(
int plane,
int side,
double y,
double z)
override;
82 void SetXCorr(
int plane,
double x,
double dx,
double val);
83 void SetYZCorr(
int plane,
int side,
double y,
double dx,
double val);
118 #endif // CALIB_XYZCALIBPROTODUNE_H
std::map< int, TH1F > fXCorrHist
bool Update(uint64_t ts=0)
virtual double GetNormCorr(int plane) override
std::string fNormCorrFileName
bool Configure(fhicl::ParameterSet const &pset)
void SetXCorr(int plane, double x, double dx, double val)
std::string fYZCorrFileName
void SetNormCorr(int plane, double val)
void SetYZCorr(int plane, int side, double y, double dx, double val)
void SetYZCorrFileName(std::string f)
virtual double GetYZCorr(int plane, int side, double y, double z) override
std::map< int, TH2F > fYZCorrHist
std::map< int, NormCorr_t > fNormCorr
void SetNormCorrFileName(std::string f)
void SetXCorrFileName(std::string f)
void SetInterpolate(bool v)
std::string fNormCorrDBTag
std::string fXCorrFileName
virtual ~XYZCalibProtoDUNE()=default
virtual double GetXCorr(int plane, double x) override
bool operator<(const XCorr_t &a, const XCorr_t &b)