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
math
genvector
src
GenVector_exception.cxx
Go to the documentation of this file.
1
// @(#)root/mathcore:$Id$
2
// Authors: W. Brown, M. Fischler, L. Moneta 2005
3
4
/**********************************************************************
5
* *
6
* Copyright (c) 2005 , LCG ROOT FNAL MathLib Team *
7
* *
8
* *
9
**********************************************************************/
10
11
//
12
// Created by: Mark Fischler Tues July 19 2005
13
//
14
15
#include "
Math/GenVector/GenVector_exception.h
"
16
17
namespace
ROOT {
18
namespace
Math {
19
bool
GenVector_exception::fgOn
=
false
;
20
21
void
Throw
(
GenVector_exception
& e) {
if
(
GenVector_exception::fgOn
)
throw
e; }
22
23
24
void
GenVector::Throw
(
const
char
* s) {
25
if
(!
GenVector_exception::fgOn
)
return
;
26
GenVector_exception
e(s);
27
throw
e;
28
}
29
30
31
32
}
// namespace Math
33
}
// namespace ROOT
ROOT::Math::GenVector_exception
Definition:
GenVector_exception.h:33
ROOT::Math::GenVector::Throw
void Throw(const char *)
function throwing exception, by creating internally a GenVector_exception only when needed ...
Definition:
GenVector_exception.cxx:24
ROOT::Math::GenVector_exception::fgOn
static bool fgOn
Definition:
GenVector_exception.h:52
ROOT::Math::Throw
void Throw(GenVector_exception &e)
throw explicity GenVector exceptions
Definition:
GenVector_exception.cxx:21
GenVector_exception.h