Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions DataFormats/Detectors/TRD/include/DataFormatsTRD/CalT0.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down
10 changes: 5 additions & 5 deletions DataFormats/Detectors/TRD/include/DataFormatsTRD/T0FitHistos.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ namespace trd

class T0FitHistos
{
public:
public:
T0FitHistos() = default;
T0FitHistos(const T0FitHistos&) = default;
~T0FitHistos() = default;
Expand All @@ -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<o2::trd::PHData> data);
void merge(const T0FitHistos* prev);
void print();
private:

private:
std::vector<int> mDet{};
std::vector<int> mTB{};
std::vector<int> mADC{};
Expand All @@ -54,7 +54,7 @@ class T0FitHistos

ClassDefNV(T0FitHistos, 1);
};

} // namespace trd
} // namespace o2

Expand Down
2 changes: 1 addition & 1 deletion Detectors/TRD/calibration/src/T0Fit.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down