16#include <fairlogger/Logger.h>
24 mHistogramEntries.fill(0);
25 mNEntriesPerBin.fill(0);
36 mHistogramEntries[chamberOffset + iBin] += deltaAlpha;
37 ++mNEntriesPerBin[chamberOffset + iBin];
40 LOG(
debug) <<
"Under-/overflow entry detected for impact angle " << impactAngle;
66 LOG(info) <<
"There are " << mNEntriesTotal <<
" entries in the container";
68 if (mNEntriesPerBin[
i] != 0) {
69 LOGF(info,
"Global bin %i has %i entries. Average angular residual: %f",
i, mNEntriesPerBin[
i], mHistogramEntries[
i] / mNEntriesPerBin[
i]);
Class to store the angular residuals of TRD tracklets wrt TPC tracks for each TRD chamber.
int getBinCount(int index) const
void merge(const AngularResidHistos *prev)
bool addEntry(float deltaAlpha, float impactAngle, int chamberId)
void fill(const AngularResidHistos &input)
float getHistogramEntry(int index) const
constexpr int MAXCHAMBER
the maximum number of installed chambers
constexpr int NBINSANGLEDIFF
the number of bins for the track angle used for the vDrift and ExB calibration based on the tracking
constexpr float MAXIMPACTANGLE
the maximum impact angle for tracks relative to the TRD detector plane to be considered for vDrift an...
LOG(info)<< "Compressed in "<< sw.CpuTime()<< " s"