17#include <TStopwatch.h>
18#include "Fit/Fitter.h"
19#include "Fit/BinData.h"
20#include "Math/WrappedMultiTF1.h"
34using boost::histogram::indexed;
43 static float sumDt = 0;
48 for (
int j = 0;
j <
data.size();
j++) {
49 float dtraw =
data[
j].getDeltaTimePi();
51 if (dt > -50000 && dt < 50000) {
62 if (ntf && (sumdt > 5000 + sumDt / ntf || sumdt < -5000 + sumDt / ntf)) {
68 for (
int i =
data.size();
i--;) {
77 auto ch =
data[
i].getTOFChIndex();
80 auto dt =
data[
i].getDeltaTimePi();
82 auto tot =
data[
i].getTot();
85 auto dtcorr = dt - corr;
99 mChannelDist->Fill(ch, dtcorr);
103 mHisto[
sector](dtcorr, chInSect);
106 int istrip = ch / 96;
107 int istripInSector = chInSect / 96;
108 int halffea = (chInSect % 96) / 12;
109 int choffset = (istrip - istripInSector) * 96;
112 int minch = istripInSector * 96 + halffea * 12;
113 int maxch = minch + 12;
114 for (
int ich = minch; ich < maxch; ich++) {
115 mHisto[
sector](dtcorr, ich);
116 mEntries[ich + choffset] += 1;
126 for (
int i =
data.size();
i--;) {
127 auto ch =
data[
i].getCH();
128 auto dch =
data[
i].getDCH();
129 auto dt =
data[
i].getDT();
130 auto tot1 =
data[
i].getTOT1();
131 auto tot2 =
data[
i].getTOT2();
150 }
else if (dch == 48) {
155 int chOnStrip = ch % 96;
156 int comb = 96 * shift + chOnStrip;
160 LOG(
debug) <<
"inserting in channel " << ch <<
", " << ch + dch <<
": dt = " << dt <<
", tot1 = " << tot1 <<
", tot2 = " << tot2 <<
", corr1 = " << corr1 <<
", corr2 = " << corr2 <<
", corrected dt = " << dt - corr1 + corr2;
166 LOG(
debug) <<
"ch = " << ch <<
", sector = " <<
sector <<
", absoluteStrip = " << absoluteStrip <<
", stripInSect = " << stripInSect <<
", shift = " << shift <<
", dch = " << (int)dch <<
", chOnStrip = " << chOnStrip <<
", comb = " << comb;
168 mHisto[
sector](dt, combInSect);
172 mChannelDist->Fill(comb +
NCOMBINSTRIP * absoluteStrip, dt);
182 mHisto[isect] += prev->
getHisto(isect);
184 for (
auto iel = 0; iel < mEntries.size(); iel++) {
185 mEntries[iel] += prev->mEntries[iel];
201 int smallestElementIndex = -1;
202 int smallestEntries = 1e5;
203 int largestElementIndex = -1;
204 int largestEntries = 0;
205 for (
auto i = 0;
i < mEntries.size(); ++
i) {
206 if (mEntries[
i] != 0) {
209 if (mEntries[
i] < smallestEntries) {
210 smallestEntries = mEntries[
i];
211 smallestElementIndex =
i;
213 if (mEntries[
i] > largestEntries) {
214 largestEntries = mEntries[
i];
215 largestElementIndex =
i;
220 LOG(info) <<
"hasEnough = false: all channels/pairs are empty";
224 LOG(
debug) <<
"mean = " << mean <<
", nvalid = " << nValid;
227 LOG(
debug) <<
"minElement is at position " << smallestElementIndex <<
" and has " << smallestEntries <<
" entries";
228 LOG(
debug) <<
"maxElement is at position " << largestElementIndex <<
" and has " << largestEntries <<
" entries";
229 float threshold = minEntries + 5 * std::sqrt(minEntries);
230 bool enough = mean < threshold ?
false :
true;
232 LOG(info) <<
"hasEnough: " << (int)enough <<
" ("
233 << nValid <<
" valid channels found (should be " << mEntries.size() <<
") with mean = "
234 << mean <<
" with cut at = " << threshold <<
") ";
242 LOG(info) <<
"Printing histograms:";
243 std::ostringstream os;
245 LOG(info) <<
"Sector: " << isect;
247 auto nentriesInSec = boost::histogram::algorithm::sum(mHisto[isect]);
248 LOG(info) <<
"Number of entries in histogram: " << boost::histogram::algorithm::sum(mHisto[isect]);
250 if (nentriesInSec != 0) {
251 for (
auto&&
x : indexed(mHisto[isect])) {
253 const auto i =
x.index(0);
254 const auto j =
x.index(1);
255 const auto b0 =
x.bin(0);
256 const auto b1 =
x.bin(1);
257 LOG(info) <<
"bin " << cnt <<
": channel = " <<
j <<
" in [" << b1.lower() <<
", " << b1.upper()
258 <<
"], t-texp in [" << b0.lower() <<
", " << b0.upper() <<
"], has entries = " <<
x.get();
263 LOG(info) << cnt <<
" bins inspected";
270 LOG(info) <<
"*** Printing histogram " << isect;
271 std::ostringstream os;
274 LOG(info) <<
"Number of entries in histogram: " << boost::histogram::algorithm::sum(mHisto[isect]);
275 for (
auto&&
x : indexed(mHisto[isect])) {
277 LOG(
debug) <<
" c " << cnt <<
" i " <<
x.index(0) <<
" j " <<
x.index(1) <<
" b0 " <<
x.bin(0) <<
" b1 " <<
x.bin(1) <<
" val= " << *
x <<
"|" <<
x.get();
279 LOG(info) <<
"x = " <<
x.get() <<
" c " << cnt;
282 LOG(info) << cnt <<
" bins inspected";
289 for (
int i = 0;
i < mEntries.size(); ++
i) {
291 LOG(info) <<
"pair of channels " <<
i <<
" has " << mEntries[
i] <<
" entries";
293 LOG(info) <<
"channel " <<
i <<
" has " << mEntries[
i] <<
" entries";
309 LOG(
debug) <<
"bin0 limits: lower = " << mHisto[0].axis(0).bin(0).lower() <<
", upper = " << mHisto[0].axis(0).bin(0).upper();
310 LOG(
debug) <<
"bin1000 limits: lower = " << mHisto[0].axis(0).bin(mNBins - 1).lower() <<
", upper = " << mHisto[0].axis(0).bin(mNBins - 1).upper();
311 LOG(
debug) <<
"v = " <<
v <<
" is in bin " << mHisto[0].axis(0).index(
v);
313 return mHisto[0].axis(0).index(
v);
321 if (binmin < -mRange || binmax > mRange || chmin < 0 || chmax >=
Geo::NSECTORS * mNElsPerSector) {
322 throw std::runtime_error(
"Check your bins, we cannot calculate the integrals in under/overflows bins");
324 if (binmax < binmin || chmax < chmin) {
325 throw std::runtime_error(
"Check your bin limits!");
328 int sector = chmin / mNElsPerSector;
329 if (
sector != chmax / mNElsPerSector) {
330 throw std::runtime_error(
"We cannot integrate over channels that belong to different sectors");
333 int chinsectormin = chmin % mNElsPerSector;
334 int chinsectormax = chmax % mNElsPerSector;
341 LOG(
debug) <<
"binxmin = " << binxmin <<
", binxmax = " << binxmax;
343 for (
unsigned j = chinsectormin;
j <= chinsectormax; ++
j) {
344 for (
unsigned i = binxmin;
i <= binxmax; ++
i) {
350 LOG(
debug) <<
"Time for integral looping over axis (result = " << res2 <<
"):";
362 return integral(ch, ch, binmin, binmax);
370 if (binxmin < 0 || binxmax > mNBins || chmin < 0 || chmax >=
Geo::NSECTORS * mNElsPerSector) {
371 throw std::runtime_error(
"Check your bins, we cannot calculate the integrals in under/overflows bins");
373 if (binxmax < binxmin || chmax < chmin) {
374 throw std::runtime_error(
"Check your bin limits!");
377 int sector = chmin / mNElsPerSector;
378 if (
sector != chmax / mNElsPerSector) {
379 throw std::runtime_error(
"We cannot integrate over channels that belong to different sectors");
382 int chinsectormin = chmin % mNElsPerSector;
383 int chinsectormax = chmax % mNElsPerSector;
388 for (
unsigned j = chinsectormin;
j <= chinsectormax; ++
j) {
389 for (
unsigned i = binxmin;
i <= binxmax; ++
i) {
395 LOG(
debug) <<
"Time for integral looping over axis (result = " << res2 <<
"):";
406 return integral(ch, ch, binxmin, binxmax);
414 return mEntries.at(ch);
423 std::fill(mEntries.begin(), mEntries.end(), 0);
424 mV2Bin = mNBins / (2 * mRange);
425 for (
int isect = 0; isect < 18; isect++) {
426 mHisto[isect] = boost::histogram::make_histogram(boost::histogram::axis::regular<>(mNBins, -mRange, mRange,
"t-texp"),
427 boost::histogram::axis::integer<>(0, mNElsPerSector,
"channel index in sector" +
std::to_string(isect)));
442 LOG(info) <<
"Finalize slot for calibration with cosmics " << slot.
getTFStart() <<
" <= TF <= " << slot.
getTFEnd();
445 std::map<std::string, std::string> md;
449 int nbins =
c->getNbins();
450 float range =
c->getRange();
451 std::vector<int> entriesPerChannel =
c->getEntriesPerChannel();
455 mNThreads = std::min(omp_get_max_threads(), NMAXTHREADS);
457 LOG(
debug) <<
"Number of threads that will be used = " << mNThreads;
458#pragma omp parallel for schedule(dynamic) num_threads(mNThreads)
466 ithread = omp_get_thread_num();
469 LOG(info) <<
"Processing sector " <<
sector <<
" with thread " << ithread;
470 double xp[NCOMBINSTRIP],
exp[NCOMBINSTRIP], deltat[NCOMBINSTRIP], edeltat[NCOMBINSTRIP];
472 std::array<double, 3> fitValues;
473 std::vector<float> histoValues;
475 auto& histo =
c->getHisto(
sector);
480 LOG(info) <<
"Processing strip " << istrip;
482 bool isChON[96] = {
false};
483 int offsetstrip = istrip *
Geo::NPADS + offsetsector;
487 TLinearFitter localFitter(1, mStripOffsetFunction.c_str());
489 int offsetPairInStrip = istrip * NCOMBINSTRIP;
491 localFitter.StoreData(kFALSE);
492 localFitter.ClearPoints();
493 for (
int ipair = 0; ipair < NCOMBINSTRIP; ipair++) {
494 int chinsector = ipair + offsetPairInStrip;
495 int ich = chinsector + offsetPairInSector;
496 auto entriesInPair = entriesPerChannel.at(ich);
497 xp[allpoints] = ipair + 0.5;
499 if (entriesInPair == 0) {
500 localFitter.AddPoint(&(xp[allpoints]), 0.0, 1.0);
504 if (entriesInPair < mMinEntries) {
505 LOG(
debug) <<
"pair " << ich <<
" will not be calibrated since it has only " << entriesInPair <<
" entries (min = " << mMinEntries <<
")";
506 localFitter.AddPoint(&(xp[allpoints]), 0.0, 1.0);
510 fitValues.fill(-99999999);
514 for (
unsigned i = 0;
i < nbins; ++
i) {
515 const auto&
v = histo.at(
i, chinsector);
516 LOG(
debug) <<
"channel = " << ich <<
", in sector = " <<
sector <<
" (where it is channel = " << chinsector <<
") bin = " <<
i <<
" value = " <<
v;
517 histoValues.push_back(
v);
520 double fitres = entriesInPair - 1;
521 fitres = fitGaus(nbins, histoValues.data(), -
range,
range, fitValues,
nullptr, 2.,
true);
523 LOG(
debug) <<
"Pair " << ich <<
" :: Fit result " << fitres <<
" Mean = " << fitValues[1] <<
" Sigma = " << fitValues[2];
525 LOG(
debug) <<
"Pair " << ich <<
" :: Fit failed with result = " << fitres;
526 localFitter.AddPoint(&(xp[allpoints]), 0.0, 1.0);
531 if (fitValues[2] < 0) {
532 fitValues[2] = -fitValues[2];
535 float intmin = fitValues[1] - 5 * fitValues[2];
536 float intmax = fitValues[1] + 5 * fitValues[2];
538 if (intmin < -mRange) {
541 if (intmax < -mRange) {
544 if (intmin > mRange) {
547 if (intmax > mRange) {
551 xp[allpoints] = ipair + 0.5;
552 exp[allpoints] = 0.0;
553 deltat[allpoints] = fitValues[1];
554 float integral =
c->integral(ich, intmin, intmax);
555 edeltat[allpoints] = 20 + fitValues[2] / sqrt(integral);
556 localFitter.AddPoint(&(xp[allpoints]), deltat[allpoints], edeltat[allpoints]);
559 int ch1 = ipair % 96;
560 int ch2 = ipair / 96 ? ch1 + 48 : ch1 + 1;
564 float fractionUnderPeak = entriesInPair > 0 ? integral / entriesInPair : 0;
566 if (fracUnderPeak[ch1] < fractionUnderPeak) {
567 fracUnderPeak[ch1] = fractionUnderPeak;
569 if (fracUnderPeak[ch2] < fractionUnderPeak) {
570 fracUnderPeak[ch2] = fractionUnderPeak;
580 if (goodpoints == 0) {
583 LOG(
debug) <<
"We found " << goodpoints <<
" good points for strip " << istrip <<
" in sector " <<
sector <<
" --> we can fit the TGraph";
587 LOG(
debug) <<
"N parameters before fixing = " << localFitter.GetNumberFreeParameters();
590 for (
int i = 0;
i < 96; ++
i) {
593 localFitter.FixParameter(
i, 0.);
599 localFitter.FixParameter(
i, 0.);
603 LOG(
debug) <<
"Strip = " << istrip <<
" fitted by thread = " << ithread <<
", goodpoints = " << goodpoints <<
", number of free parameters = "
604 << localFitter.GetNumberFreeParameters() <<
", NDF = " << goodpoints - localFitter.GetNumberFreeParameters();
606 if (goodpoints <= localFitter.GetNumberFreeParameters()) {
611 LOG(
debug) <<
"N real params = " << nparams <<
", fitter has " << localFitter.GetNumberFreeParameters() <<
" free parameters, " << localFitter.GetNumberTotalParameters() <<
" total parameters, " << localFitter.GetNpoints() <<
" points";
612 LOG(info) <<
"Sector = " <<
sector <<
", strip = " << istrip <<
" fitted by thread = " << ithread <<
": ready to fit";
615 LOG(info) <<
"Sector = " <<
sector <<
", strip = " << istrip <<
" fitted by thread = " << ithread <<
" with Chi/NDF " << localFitter.GetChisquare() <<
"/" << goodpoints - localFitter.GetNumberFreeParameters();
616 LOG(
debug) <<
"Strip = " << istrip <<
" fitted by thread = " << ithread <<
" with Chi/NDF " << localFitter.GetChisquare() <<
"/" << goodpoints - localFitter.GetNumberFreeParameters();
623 for (
int ichLocal = 0; ichLocal <
Geo::NPADS; ichLocal++) {
624 int ich = ichLocal + offsetstrip;
627 mFitCal->Fill(ich, localFitter.GetParameter(ichLocal));
642 mInfoVector.emplace_back(
"TOF/Calib/ChannelCalib", clName, flName, md, startValidity, endValidity);
643 mTimeSlewingVector.emplace_back(ts);
646 TFile fout(
"debug_tof_cal.root",
"RECREATE");
648 mChannelDist->Write();
661 int nbins =
c->getNbins();
662 float range =
c->getRange();
663 std::vector<int> entriesPerChannel =
c->getEntriesPerChannel();
666 std::map<std::string, std::string> md;
672 mNThreads = std::min(omp_get_max_threads(), NMAXTHREADS);
674 LOG(
debug) <<
"Number of threads that will be used = " << mNThreads;
675#pragma omp parallel for schedule(dynamic) num_threads(mNThreads)
683 ithread = omp_get_thread_num();
685 LOG(info) <<
"Processing sector " <<
sector <<
" with thread " << ithread;
686 auto& histo =
c->getHisto(
sector);
688 std::array<double, 3> fitValues;
689 std::vector<float> histoValues;
693 auto entriesInChannel = entriesPerChannel.at(ich);
694 if (entriesInChannel == 0) {
699 if (entriesInChannel < mMinEntries) {
700 LOG(
debug) <<
"channel " << ich <<
" will not be calibrated since it has only " << entriesInChannel <<
" entries (min = " << mMinEntries <<
")";
705 LOG(
debug) <<
"channel " << ich <<
" will be calibrated since it has " << entriesInChannel <<
" entries (min = " << mMinEntries <<
")";
706 fitValues.fill(-99999999);
709 int imax = nbins / 2;
711 double binwidth = 2 *
range / nbins;
712 int binrange = int(1500 / binwidth) + 1;
713 float minRange = -
range;
714 float maxRange =
range;
716 for (
unsigned j = chinsector;
j <= chinsector; ++
j) {
717 for (
unsigned i = 0;
i < nbins; ++
i) {
718 const auto&
v = histo.at(
i,
j);
730 for (
unsigned i = 0;
i < nbins; ++
i) {
731 const auto&
v = histo.at(
i,
j);
732 LOG(
debug) <<
"channel = " << ich <<
", in sector = " <<
sector <<
" (where it is channel = " << chinsector <<
") bin = " <<
i <<
" value = " <<
v;
733 if (
i >= imax - binrange &&
i < imax + binrange) {
734 histoValues.push_back(
v *
renorm);
740 minRange = (imax - nbins / 2 - binrange) * binwidth;
741 maxRange = (imax - nbins / 2 + binrange) * binwidth;
743 double fitres = fitGaus(nbinsUsed, histoValues.data(), minRange, maxRange, fitValues,
nullptr, 2.,
false);
744 LOG(info) <<
"channel = " << ich <<
" fitted by thread = " << ithread;
746 LOG(info) <<
"Channel " << ich <<
" :: Fit result " << fitres <<
" Mean = " << fitValues[1] <<
" Sigma = " << fitValues[2];
749 FILE*
f = fopen(Form(
"%d.cal", ich),
"w");
750 for (
int i = 0;
i < histoValues.size();
i++) {
751 fprintf(
f,
"%d %f %f\n",
i, minRange + binwidth *
i, histoValues[
i]);
755 LOG(info) <<
"Channel " << ich <<
" :: Fit failed with result = " << fitres;
762 if (fitValues[2] < 0) {
763 fitValues[2] = -fitValues[2];
766 float fractionUnderPeak;
767 float intmin = fitValues[1] - 5 * fitValues[2];
768 float intmax = fitValues[1] + 5 * fitValues[2];
770 if (intmin < -mRange) {
773 if (intmax < -mRange) {
776 if (intmin > mRange) {
779 if (intmax > mRange) {
783 fractionUnderPeak = entriesInChannel > 0 ?
c->integral(ich, intmin, intmax) / entriesInChannel : 0;
791 if (std::abs(fitValues[1]) > mRange) {
805 mFitCal->Fill(ich, fitValues[1]);
807 LOG(
debug) <<
"udpdate channel " << ich <<
" with " << fitValues[1] <<
" offset in ps";
816 mInfoVector.emplace_back(
"TOF/Calib/ChannelCalib", clName, flName, md, startValidity, endValidity);
817 mTimeSlewingVector.emplace_back(ts);
820 TFile fout(
"debug_tof_cal.root",
"RECREATE");
822 mChannelDist->Write();
uint64_t exp(uint64_t base, uint8_t exp) noexcept
configStandalone Light OpenGL display display_light Apply smoothing to points Enable Z buffer Highlight links Highlight seeds Highlight sector tracks Highlight final tracks Show individual sector
configStandalone Reconstruction rec_tpc multiplier for the combined cluster track error during track following area in cm for the search of for z only used if decrease removal by when above this local occupancy rowx Shift of TPC revert cluster flag edge bit distance to edge exceeds this ZOffset for secondary multiple of radius max P of electron K BB bands crossing max P of electron p BB bands crossing max P of electron d BB bands crossing max P of electron t BB bands crossing min accepted dEdxMaxTPC of the track Additive extra cluster error for Y2 if edge flag set Additive extra cluster error for Y2 if single set Additive extra cluster error for Y2 if or single set Additive extra cluster error for Z2 if or single set Extra errors to add to track when crossing depending on addErrorsCECrossing Inner portion of y range in sector that is not used in searching for extrapolated track candidates factor2YS for track merging factor2K for track merging Margin in cm of Y position when rejecting edge clusters based on uncorrected track Y Max fraction of shared clusters for tracklet Except pad from cluster finding if total number of charges in a fragment is above this Except pad from cluster finding if number of consecutive charges in a fragment is above this Threshold where a timebin is considered disabling the noisy pad check for that pad Treat signal above this minimum as saturated Smoothing factor for the exponential Highly Ionising Particle tail filter Number of timebins to use for the averaging Add additional custom track errors when crossing relative as fraction of Do N fit passes in final fit of< 0:reject at max -n hits") AddOptionRTC(rejectIFCLowRadiusCluster, uint8_t, 1, "", 0, "Reject clusters that get the IFC mask error during refit") AddOptionRTC(dEdxTruncLow, uint8_t, 2, "", 0, "Low truncation threshold, fraction of 128") AddOptionRTC(dEdxTruncHigh, uint8_t, 77, "", 0, "High truncation threshold, fraction of 128") AddOptionRTC(extrapolationTracking, int8_t, 1, "", 0, "Enable Extrapolation Tracking(prolong tracks to adjacent sectors to find short segments)") AddOptionRTC(disableRefitAttachment, uint8_t, 0, "", 0, "Bitmask to disable certain attachment steps during refit(1:attachment, 2:propagation, 4:loop following, 8:mirroring)") AddOptionRTC(rejectionStrategy, uint8_t, o2::gpu::GPUSettings::RejectionStrategyA, "", 0, "Enable rejection of TPC clusters for compression(0=no, 1=strategy A, 2=strategy B)") AddOptionRTC(mergeLoopersAfterburner, uint8_t, 1, "", 0, "Run afterburner for additional looper merging") AddOptionRTC(compressionTypeMask, uint8_t, o2::gpu::GPUSettings::CompressionFull, "", 0, "TPC Compression mode bits(1=truncate charge/width LSB, 2=differences, 4=track-model)") AddOptionRTC(compressionSortOrder, uint8_t, o2::gpu::GPUSettings::SortTime, "", 0, "Sort order of TPC compression(0=time, 1=pad, 2=Z-time-pad, 3=Z-pad-time, 4=no sorting(use incoming order))") AddOptionRTC(sigBitsCharge, uint8_t, 4, "", 0, "Number of significant bits for TPC cluster charge in compression mode 1") AddOptionRTC(sigBitsWidth, uint8_t, 3, "", 0, "Number of significant bits for TPC cluster width in compression mode 1") AddOptionRTC(dropLoopers, uint8_t, 0, "", 0, "Drop looping tracks starting from second loop") AddOptionRTC(mergerInterpolateErrors, uint8_t, 1, "", 0, "Use interpolation instead of extrapolation for chi2 based cluster rejection") AddOptionRTC(mergerInterpolateRejectAlsoOnCurrentPosition, uint8_t, 1, "", 0, "When using mergerInterpolateErrors, reject based on chi2 twice computed with interpolated and current track position starting from NDF > mergerNonInterpolateRejectMinNDF Merge tracks accross the central electrode Enable PID response Add sub threshold clusters in TPC dEdx computation OR mask of TPC flags that will reject the cluster in alternative dEdx Reject edge clusters based on uncorrected track Y during track fit Increase decrease removal by when on this number of pads from the edge h configStandalone Reconstruction rec_trd Max chi2 for TRD tracklets to be matched to a track Chi2 cut for strict matching mode Number of sigmas for ITS TPC track time error estimate Addition to search road around track prolongation along Y in cm Optimal tracklet rphi resolution in maximum chi2 per attached tracklet for TRD tracks take into account the full likelihood of the slope including exponential tails Tracks with less attached tracklets are discarded after the tracking Post trigger Pile up integration time in BCs fits all iterations but the last one in projections Use material lookup table for TPC refit Apply workarounds to avoid cyclic merge should not be needed tpc dyn configStandalone Processing proc_rtc Replace constant variables static by constexpr expressions false
std::tuple< ransState_t, stream_IT > renorm(ransState_t state, stream_IT outputIter, count_t frequency, size_t symbolTablePrecision)
long getStaticStartTimeMS() const
const Container * getContainer() const
TFType getTFStart() const
static std::string generateFileName(const std::string &inp)
static constexpr long MONTH
static constexpr long SECOND
float getTimeCalibration(int ich, float tot) const
static constexpr Int_t NSECTORS
static constexpr Double_t BC_TIME_INPS
static constexpr Int_t NSTRIPXSECTOR
static constexpr Int_t NPADS
static constexpr Int_t NPADSXSECTOR
static constexpr int NCHANNELS
void finalizeSlotWithTracks(Slot &slot)
void finalizeSlotWithCosmics(Slot &slot)
void fill(const gsl::span< const o2::dataformats::CalibInfoTOF > data)
static constexpr int NCOMBINSTRIP
boostHisto & getHisto(int isect)
float integral(int chmin, int chmax, float binmin, float binmax) const
int findBin(float v) const
void resetAndReRange(float range)
void merge(const TOFChannelData *prev)
bool hasEnoughData(int minEntries) const
void printEntries() const
static void addCalibTrack(float time)
static int addMaskBC(int mask, int channel)
static int getMaxUsedChannel(int channel)
static void printFillScheme()
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
std::string to_string(gsl::span< T, Size > span)
static std::string getClassName(const T &obj)
get the class name of the object
LOG(info)<< "Compressed in "<< sw.CpuTime()<< " s"