ROOT
6.07/01
Reference Guide
ROOT Home Page
Main Page
Tutorials
User's Classes
Namespaces
All Classes
Files
Release Notes
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
bindings
r
tests
Exception.C
Go to the documentation of this file.
1
//script to test error handling
2
3
4
ROOT::R::TRInterface
&
Exception
()
5
{
6
ROOT::R::TRInterface
&
r
=
ROOT::R::TRInterface::Instance
();
7
r.
SetVerbose
(1);
8
9
//passing bad command 1
10
r<<
"%"
;
11
//passing bad command 2
12
r<<
"."
;
13
14
//trying to get an object from a bad command
15
TMatrixD
m
=r[
"%"
];
16
17
//The next lines are not supported yet
18
//Requires segfault signal handling
19
//r["ss"]<<(double (*)(double))sin;
20
//r<<"ss()"
21
return
r
;
22
}
Exception
ROOT::R::TRInterface & Exception()
Definition:
Exception.C:4
ROOT::R::TRInterface
Definition:
TRInterface.h:147
TMatrixT< Double_t >
r
ROOT::R::TRInterface & r
Definition:
Object.C:4
m
TMarker * m
Definition:
textangle.C:8
ROOT::R::TRInterface::SetVerbose
void SetVerbose(Bool_t status)
Method to set verbose mode, that produce extra output.
Definition:
TRInterface.cxx:112
ROOT::R::TRInterface::Instance
static TRInterface & Instance()
static method to get an TRInterface instance reference
Definition:
TRInterface.cxx:164