7 #include "nuevdb/EventDisplayBase/NavState.h" 23 Double_t
s[] = { 0.00, 0.20, 0.35, 0.43, 0.45, 0.50, 1.00};
24 Double_t
r[] = { 0.00, 0.90, 1.00, 1.00, 1.00, 1.00, 0.00};
25 Double_t
g[] = { 0.50, 0.10, 0.75, 0.90, 1.00, 1.00, 0.00};
26 Double_t
b[] = { 0.30, 0.00, 0.00, 0.00, 0.00, 1.00, 0.00};
28 unsigned int abc =
sizeof(
s)/
sizeof(s[0]);
30 fColorBase = TColor::CreateGradientColorTable(abc, s, r, g, b,
47 int event = std::stoi(
fTbEvt->GetString());
48 evdb::NavState::SetTarget(run,
event);
55 double scale =
std::pow(10.0,magScale);
57 double lValue = std::log10(1.0+scale*nvalue)/magScale;
58 int iValue = nCol*lValue;
static constexpr double g
int LogColor(double val, double minVal, double maxVal, double magScale=5.0)
constexpr BitMask< Storage > Set(Flag_t< Storage > flag)
Returns a bit mask which sets the specified flag.
static int max(int a, int b)
General GArSoft Utilities.
T min(sqlite3 *const db, std::string const &table_name, std::string const &column_name)
Event finding and building.