ATLAS Offline Software
Loading...
Searching...
No Matches
ITPConverter.cxx File Reference
#include "TPTools/ITPConverter.h"
#include "GaudiKernel/MsgStream.h"
#include <stdexcept>
Include dependency graph for ITPConverter.cxx:

Go to the source code of this file.

Functions

static void errorHandler ()

Function Documentation

◆ errorHandler()

void errorHandler ( )
static

Definition at line 11 of file ITPConverter.cxx.

12{
13 static const char *const ignore_error = getenv("ATHENA_TP_IGNORE_NOT_FOUND");
14 if( ignore_error ) return;
15 static const char * const do_abort = getenv("ATHENA_TP_DIE_ON_NOT_FOUND");
16 if( do_abort ) abort();
17 throw std::runtime_error( "TP converter not found" );
18}
std::string getenv(const std::string &variableName)
get an environment variable