fNRuns(0),
fRunNb(NULL),
fRunFirstPoint(NULL),
- fRunLastPoint(NULL)
+ fRunLastPoint(NULL),
+ fUseLHCClockPhase(kFALSE)
{
/*
* default constructor
fNRuns(nRuns),
fRunNb(new UInt_t[nRuns]),
fRunFirstPoint(new UInt_t[nRuns]),
- fRunLastPoint(new UInt_t[nRuns])
+ fRunLastPoint(new UInt_t[nRuns]),
+ fUseLHCClockPhase(kFALSE)
{
/*
* standard constructor
fNRuns(source.fNRuns),
fRunNb(new UInt_t[source.fNRuns]),
fRunFirstPoint(new UInt_t[source.fNRuns]),
- fRunLastPoint(new UInt_t[source.fNRuns])
+ fRunLastPoint(new UInt_t[source.fNRuns]),
+ fUseLHCClockPhase(source.fUseLHCClockPhase)
{
/*
* copy constructor
fRunLastPoint[i] = source.fRunLastPoint[i];
}
+ fUseLHCClockPhase = source.fUseLHCClockPhase;
+
return *this;
}
value += data[i];
npt++;
}
+ if (npt <= 0) return 0.;
value /= npt;
return value;
graph->Draw(option);
return graph;
}
+
+//_________________________________________________________
+
+TGraph *
+AliTOFRunParams::DrawCorrelationGraph(Float_t *datax, Float_t *datay, Option_t* option)
+{
+ /*
+ * draw
+ */
+
+ if (fNPoints == 0 || !datax || !datay) return NULL;
+
+ TGraph *graph = new TGraph(fNPoints, datax, datay);
+ graph->Draw(option);
+ return graph;
+}
+