diff --git a/DataFormats/Detectors/TRD/include/DataFormatsTRD/CalT0.h b/DataFormats/Detectors/TRD/include/DataFormatsTRD/CalT0.h index 65f404d7e3498..91f251b14b4d5 100644 --- a/DataFormats/Detectors/TRD/include/DataFormatsTRD/CalT0.h +++ b/DataFormats/Detectors/TRD/include/DataFormatsTRD/CalT0.h @@ -45,8 +45,8 @@ class CalT0 int counts = 0; for (int iDet = 0; iDet < constants::MAXCHAMBER; ++iDet) { if (mT0[iDet] > -5) { - sum += mT0[iDet]; - ++counts; + sum += mT0[iDet]; + ++counts; } } diff --git a/DataFormats/Detectors/TRD/include/DataFormatsTRD/T0FitHistos.h b/DataFormats/Detectors/TRD/include/DataFormatsTRD/T0FitHistos.h index 28bf4fd4892fe..eff39bbbac438 100644 --- a/DataFormats/Detectors/TRD/include/DataFormatsTRD/T0FitHistos.h +++ b/DataFormats/Detectors/TRD/include/DataFormatsTRD/T0FitHistos.h @@ -30,7 +30,7 @@ namespace trd class T0FitHistos { -public: + public: T0FitHistos() = default; T0FitHistos(const T0FitHistos&) = default; ~T0FitHistos() = default; @@ -40,12 +40,12 @@ class T0FitHistos auto getTimeBin(int index) const { return mTB[index]; } auto getADC(int index) const { return mADC[index]; } auto getNEntries() const { return mNEntriesTot; } - + void fill(const std::vector data); void merge(const T0FitHistos* prev); void print(); - -private: + + private: std::vector mDet{}; std::vector mTB{}; std::vector mADC{}; @@ -54,7 +54,7 @@ class T0FitHistos ClassDefNV(T0FitHistos, 1); }; - + } // namespace trd } // namespace o2 diff --git a/Detectors/TRD/calibration/src/T0Fit.cxx b/Detectors/TRD/calibration/src/T0Fit.cxx index c8628cec2b07d..17030842bd981 100644 --- a/Detectors/TRD/calibration/src/T0Fit.cxx +++ b/Detectors/TRD/calibration/src/T0Fit.cxx @@ -61,7 +61,7 @@ double ErfLandauChi2Functor::operator()(const double* par) const double funcVal = par[0] * TMath::Erf(x[i]) + par[1] * TMath::Landau(x[i], par[2], par[3]); sum2 += TMath::Power(y[i] - funcVal, 2) / y[i]; - //sum2 += TMath::Power((y[i] - funcVal)/yErr[i],2); + // sum2 += TMath::Power((y[i] - funcVal)/yErr[i],2); } return sum2;