Example of a graph of data moving in time.
Use the canvas "File/Quit ROOT" to exit from this example
void gtime()
{
const Int_t kNMAX = 10000;
std::vector<Double_t>
X(kNMAX), Y(kNMAX);
while (!
gSystem->ProcessEvents()) {
if (cursor + ng >= kNMAX) {
cursor = 0;
for (
Int_t i = 0; i < ng; i++) {
}
} else {
cursor++;
}
}
}
int Int_t
Signed integer 4 bytes (int).
double Double_t
Double 8 bytes.
Double_t Sin(Double_t)
Returns the sine of an angle of x radians.
- Author
- Olivier Couet
Definition in file gtime.C.