ROOT Version: 5.28
Platform: Virtual machine vGate 2.0 (Ubuntu 12.04 LTS)
Compiler: gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
Dear ROOT users,
I have problem when running macro5.C example from ROOT Primer 5.
The error is:
gate@vgate:~$ root ./examples/macro5.C
*******************************************
* *
* W E L C O M E to R O O T *
* *
* Version 5.28/00g 14 September 2011 *
* *
* You are welcome to visit our Web site *
* http://root.cern.ch *
* *
*******************************************
ROOT 5.28/00g (tags/v5-28-00g@40876, Sep 14 2011, 15:32:32 on linux)
CINT/ROOT C/C++ Interpreter version 5.18.00, July 2, 2010
Type ? for help. Commands must be C++ statements.
Enclose multiple statements between { }.
root [0]
Processing ./examples/macro5.C...
Warning: Automatic variable mean_count is allocated /home/gate/././examples/macro5.C:11:
Moments of Distribution:
- Mean = 3.5625 +- 0.0895976
Error: Can't call TH1F::GetStdDev() in current scope /home/gate/././examples/macro5.C:30:
Possible candidates are...
(in TH1F)
(in TH1)
Error: << Illegal operator for pointer 3 /home/gate/././examples/macro5.C:30:
Error: << Illegal operator for pointer 3 /home/gate/././examples/macro5.C:30:
Error: << Illegal operator for pointer 3 /home/gate/././examples/macro5.C:30:
Error: << Illegal operator for pointer 3 /home/gate/././examples/macro5.C:30:
Error: << Illegal operator for pointer 3 /home/gate/././examples/macro5.C:30:
Error: << Illegal operator for pointer 3 /home/gate/././examples/macro5.C:30:
*** Interpreter error recovered ***
- Std Dev = root [1]
Please find attached macro5.C file.
I will be very grateful for any help.
Leonid
macro5.C (1.0 KB)