ROOT
v6-32
Reference Guide
Loading...
Searching...
No Matches
RooErrorHandler.h
Go to the documentation of this file.
1
/*****************************************************************************
2
* Project: RooFit *
3
* Package: RooFitCore *
4
* File: $Id: RooErrorHandler.h,v 1.4 2007/05/11 09:11:30 verkerke Exp $
5
* Authors: *
6
* WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu *
7
* DK, David Kirkby, UC Irvine, dkirkby@uci.edu *
8
* *
9
* Copyright (c) 2000-2002, Regents of the University of California *
10
* and Stanford University. All rights reserved. *
11
* *
12
* Redistribution and use in source and binary forms, *
13
* with or without modification, are permitted according to the terms *
14
* listed in LICENSE (http://roofit.sourceforge.net/license.txt) *
15
*****************************************************************************/
16
#ifndef ROO_ERROR_HANDLER
17
#define ROO_ERROR_HANDLER
18
19
#include <csignal>
20
#include <cstdlib>
21
#include "
RtypesCore.h
"
22
23
class
RooErrorHandler
24
{
25
public
:
26
/// Soft assert function that interrupts macro execution but doesn't kill ROOT
27
static
void
softAssert
(
bool
condition) {
if
(!condition) abort() ; }
28
29
/// Soft abort function that interrupts macro execution but doesn't kill ROOT
30
static
void
softAbort
() { raise(11) ; }
31
} ;
32
33
#endif
RtypesCore.h
RooErrorHandler
Definition
RooErrorHandler.h:24
RooErrorHandler::softAbort
static void softAbort()
Soft abort function that interrupts macro execution but doesn't kill ROOT.
Definition
RooErrorHandler.h:30
RooErrorHandler::softAssert
static void softAssert(bool condition)
Soft assert function that interrupts macro execution but doesn't kill ROOT.
Definition
RooErrorHandler.h:27
roofit
roofitcore
inc
RooErrorHandler.h
ROOT v6-32 - Reference Guide Generated on Thu Dec 12 2024 15:06:10 (GVA Time) using Doxygen 1.9.8