79 Double_t binTime = 12.;
80 Double_t binCol = 35.;
81 Double_t eveTime = 50;
83 TColor::SetPalette(1, 0);
84 Int_t nCol = TColor::GetNumberOfColors();
86 LOG(info) <<
"ApplyColorMode " <<
fColorMode <<
" with " << nCol <<
" colors";
88 for (Int_t
id = 0;
id <
fNPoints;
id++) {
92 if (
fTime[
id] < binTime) {
93 this->GetBin(
fIndex[
id])->SetMainColor(TColor::GetColorPalette(
fTime[
id] * binCol / binTime));
99 TColor::GetColorPalette(binCol + (
fTime[
id] - binTime) * (nCol - binCol - 1) / (eveTime - binTime)));
101 LOG(info) <<
"Color for id " <<
id <<
", ind " <<
fIndex[id] <<
", t " <<
fTime[id] <<
": "
102 << this->GetBin(
fIndex[
id])->GetMainColor();
107 this->GetBin(
fIndex[
id])->SetMainColor(TColor::GetColorPalette(
fToT[
id] * (nCol - 1) / binToT));
110 this->GetBin(
fIndex[
id])->SetMainColor(TColor::GetColorPalette(
fIndex[
id] - 1));
113 this->GetBin(
fIndex[
id])->SetMainColor(TColor::GetColorPalette(49));
116 this->GetBin(
fIndex[
id])->SetMainColor(TColor::GetColorPalette(
fIndex[
id] - 1));