31 TH1F *ht =
new TH1F(
"ht",
"The ROOT seism",10,0,10*bintime);
41 for (
Int_t i=1;i<2300;i++) {
44 if (i > 700) noise += signalval*
sin((i-700.)*6.28/30)*
exp((700.-i)/300.);
50 printf(
"Real Time = %8.3fs, Cpu Time = %8.3fs\n",sw.
RealTime(),sw.
CpuTime());
virtual Bool_t ProcessEvents()
Process pending events (GUI, timers, sockets).
Double_t RealTime()
Stop the stopwatch (if it is running) and return the realtime (in seconds) passed between the start a...
virtual void SetMaximum(Double_t maximum=-1111)
void Start(Bool_t reset=kTRUE)
Start the stopwatch.
virtual Double_t Gaus(Double_t mean=0, Double_t sigma=1)
Samples a random number from the standard Normal (Gaussian) Distribution with the given mean and sigm...
R__EXTERN TStyle * gStyle
THist< 1, float, THistStatContent, THistStatUncertainty > TH1F
virtual void SetNdivisions(Int_t n=510, Bool_t optim=kTRUE)
Set the number of divisions for this axis.
virtual void SetMinimum(Double_t minimum=-1111)
tomato 1-D histogram with a float per channel (see TH1 documentation)}
Double_t CpuTime()
Stop the stopwatch (if it is running) and return the cputime (in seconds) passed between the start an...
void SetTimeOffset(Double_t toffset)
Change the time offset for time plotting.
virtual void SetGrid(Int_t valuex=1, Int_t valuey=1)
virtual void SetTimeDisplay(Int_t value)
virtual void SetLineColor(Color_t lcolor)
Set the line color.
R__EXTERN TSystem * gSystem
virtual void Draw(Option_t *option="")
Draw this histogram with options.
virtual void SetBinContent(Int_t bin, Double_t content)
Set bin content see convention for numbering bins in TH1::GetBin In case the bin number is greater th...
R__EXTERN TRandom * gRandom
UInt_t Convert(Bool_t toGMT=kFALSE) const
Convert fDatime from TDatime format to the standard time_t format.
virtual void Update()
Update canvas pad buffers.
virtual void SetStats(Bool_t stats=kTRUE)
Set statistics option on/off.
void Modified(Bool_t flag=1)
This class stores the date and time with a precision of one second in an unsigned 32 bit word (950130...