GRSISort
Created by P.C. Bender
Developement Team: P.C. Bender, R. Dunlop, V. Bildstein
An extension of the ROOT analysis Framework
Globals.h File Reference
#include <cstdint>
#include <iostream>
#include <iomanip>
#include <stdexcept>
#include <string>
#include <cstdio>
#include <cstdlib>
#include <execinfo.h>
#include <cxxabi.h>
#include <sstream>
#include <array>
#include <memory>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/wait.h>
#include <sys/prctl.h>
+ Include dependency graph for Globals.h:

Go to the source code of this file.

Classes

struct  grsi::exit_exception
 

Namespaces

 grsi
 

Macros

#define ALERTTEXT   "\033[47m\033[0;31m"
 
#define BG_BLUE   "\033[44m"
 
#define BG_CYAN   "\033[46m"
 
#define BG_GREEN   "\033[42m"
 
#define BG_MAGENTA   "\033[45m"
 
#define BG_RED   "\033[41m"
 
#define BG_WHITE   "\033[47m"
 
#define BG_YELLOW   "\033[43m"
 
#define BLACK   "\033[1;30m"
 
#define BLUE   "\033[1;34m"
 
#define BUILDINGTIMECONDITION   2
 
#define BUILDINGTRIGGERCONDITION   999
 
#define CYAN   "\033[1;36m"
 
#define DBLACK   "\033[0;30m"
 
#define DBLUE   "\033[0;34m"
 
#define DCYAN   "\033[0;36m"
 
#define DGREEN   "\033[0;32m"
 
#define DMAGENTA   "\033[0;35m"
 
#define DRED   "\033[0;31m"
 
#define DWHITE   "\033[0;37m"
 
#define DYELLOW   "\033[0;33m"
 
#define FRAGMENTBUFFERSIZE   1000
 
#define GREEN   "\033[1;32m"
 
#define HIDE_CURSOR   "\033[?25l"
 
#define MAGENTA   "\033[1;35m"
 
#define MAXSAMPLESIZE   8192
 
#define NUM_SIS_CHAN   8
 
#define RED   "\033[1;31m"
 
#define RESET_COLOR   "\033[m"
 
#define SHOW_CURSOR   "\033[?25h"
 
#define WHITE   "\033[1;37m"
 
#define YELLOW   "\033[1;33m"
 

Functions

template<typename T >
void grsi::Append (std::stringstream &stream, const T &tail)
 
template<typename T , typename... U>
void grsi::Append (std::stringstream &stream, const T &head, const U &... tail)
 
static std::string getexepath ()
 
template<typename T >
std::string hex (T val, int width=-1)
 
static void PrintGdbStacktrace ()
 
static void PrintStacktrace (std::ostream &out=std::cout, unsigned int maxFrames=63)
 
const std::string & ProgramName ()
 
static std::string sh (std::string cmd)
 
template<typename T , typename... U>
std::string grsi::Stringify (const T &head, const U &... tail)
 

Macro Definition Documentation

◆ ALERTTEXT

◆ BG_BLUE

#define BG_BLUE   "\033[44m"

Definition at line 27 of file Globals.h.

◆ BG_CYAN

#define BG_CYAN   "\033[46m"

Definition at line 29 of file Globals.h.

◆ BG_GREEN

#define BG_GREEN   "\033[42m"

Definition at line 25 of file Globals.h.

◆ BG_MAGENTA

#define BG_MAGENTA   "\033[45m"

Definition at line 28 of file Globals.h.

◆ BG_RED

#define BG_RED   "\033[41m"

Definition at line 24 of file Globals.h.

◆ BG_WHITE

#define BG_WHITE   "\033[47m"

◆ BG_YELLOW

#define BG_YELLOW   "\033[43m"

Definition at line 26 of file Globals.h.

◆ BLACK

#define BLACK   "\033[1;30m"

Definition at line 9 of file Globals.h.

◆ BLUE

◆ BUILDINGTIMECONDITION

#define BUILDINGTIMECONDITION   2

Definition at line 42 of file Globals.h.

◆ BUILDINGTRIGGERCONDITION

#define BUILDINGTRIGGERCONDITION   999

Definition at line 43 of file Globals.h.

◆ CYAN

◆ DBLACK

#define DBLACK   "\033[0;30m"

Definition at line 18 of file Globals.h.

◆ DBLUE

◆ DCYAN

#define DCYAN   "\033[0;36m"

Definition at line 20 of file Globals.h.

Referenced by atexitHandler(), TGRSIOptions::Load(), main(), and TAnalysisOptions::Print().

◆ DGREEN

◆ DMAGENTA

#define DMAGENTA   "\033[0;35m"

Definition at line 19 of file Globals.h.

Referenced by atexitHandler(), AtExitHandler(), main(), and WriteEvents().

◆ DRED

◆ DWHITE

#define DWHITE   "\033[0;37m"

Definition at line 21 of file Globals.h.

◆ DYELLOW

◆ FRAGMENTBUFFERSIZE

#define FRAGMENTBUFFERSIZE   1000

Definition at line 40 of file Globals.h.

◆ GREEN

#define GREEN   "\033[1;32m"

◆ HIDE_CURSOR

#define HIDE_CURSOR   "\033[?25l"

◆ MAGENTA

#define MAGENTA   "\033[1;35m"

Definition at line 10 of file Globals.h.

◆ MAXSAMPLESIZE

#define MAXSAMPLESIZE   8192

Definition at line 38 of file Globals.h.

◆ NUM_SIS_CHAN

#define NUM_SIS_CHAN   8

Definition at line 36 of file Globals.h.

◆ RED

◆ RESET_COLOR

#define RESET_COLOR   "\033[m"

Definition at line 4 of file Globals.h.

Referenced by TRunInfo::Add(), TSingleton< TParsingDiagnostics >::AddCurrent(), TTigress::AddFragment(), TCalGraph::AddLists(), Analyze(), TGRSIint::ApplyOptions(), atexitHandler(), AtExitHandler(), TEpicsFrag::BuildScalerMap(), TPeak::CheckArea(), CheckFile(), CheckHighTimeStamp(), TGRSISelector::CheckSizes(), TDeadtimeScalerQueue::CheckStatus(), TRateScalerQueue::CheckStatus(), TDeadtimeScalerQueue::Clear(), TRateScalerQueue::Clear(), TPPG::Correct(), CorrectionFile(), CrossTalkFix(), TFipps::CTCorrectedEnergy(), TGriffin::CTCorrectedEnergy(), DoAnalysis(), TMnemonic::EnumerateDigitizer(), TKinematics::Evslab(), TKinematics::Evslab_graph(), ExamineMidasFile(), GGaus::Fit(), GPeak::Fit(), TPeak::Fit(), TPeakFitter::Fit(), TSingleton< TParsingDiagnostics >::Get(), TChannel::GetChannel(), TSRIM::GetEnergy(), GetRoughTimeDiff(), TEpicsFrag::GetScalerAtTime(), GetTimeDiff(), TGRSIDataParser::GriffinDataToFragment(), TChannel::InitChannelInput(), TParserLibrary::Load(), TGRSIProof::LoadLibsIntoProof(), main(), MakeSpectra(), NamespaceImp(), TGRSIInterruptHandler::Notify(), TCSM::OldBuilddEE(), TGRSIint::OpenRawFile(), TGRSIint::OpenRootFile(), TRunInfo::ParseInputData(), GGaus::Print(), GPeak::Print(), TGRSIDetectorInformation::Print(), TAnalysisOptions::Print(), TBadFragment::Print(), TMidasEvent::Print(), TSharcHit::Print(), TCalGraph::Print(), TSortingDiagnostics::Print(), TRunInfo::Print(), ArgParseConfig< bool >::printable(), Printaddress(), PrintError(), TGRSIint::PrintHelp(), TEpicsFrag::PrintScalerMap(), TGRSISelector::Process(), TGRSIDataParser::Process(), GCanvas::Process1DKeyboardPress(), GCanvas::Process2DKeyboardPress(), TGRSIDataParser::ProcessGriffin(), QueueEvents(), TChannel::ReadCalFile(), TAnalysisOptions::ReadFromFile(), TGRSIOptions::ReadFromFile(), TRunInfo::ReadInfoFile(), TGRSIDetectorInformation::Set(), TRunInfo::SetDate(), TMidasFile::SetFileOdb(), TRunInfo::SetFullVersion(), TMidasFile::SetGRIFFOdb(), TRunInfo::SetLibraryVersion(), TPPG::SetOdbFromData(), TMidasFile::SetRunInfo(), TMidasFile::SetTIGDAQOdb(), TMidasFile::SetTIGOdb(), TGRSIDataParser::SetTIGTriggerID(), TGRSIint::SetupPipeline(), TRunInfo::SetVersion(), TDeadtimeScalerQueue::StatusUpdate(), TRateScalerQueue::StatusUpdate(), TEventBuildingLoop::TEventBuildingLoop(), TGRSIDataParser::TigressDataToFragment(), TFragHistLoop::Write(), TAnalysisHistLoop::Write(), and WriteEvents().

◆ SHOW_CURSOR

#define SHOW_CURSOR   "\033[?25h"

◆ WHITE

#define WHITE   "\033[1;37m"

Definition at line 12 of file Globals.h.

◆ YELLOW

#define YELLOW   "\033[1;33m"

Definition at line 6 of file Globals.h.

Referenced by GPeak::Fit(), TPeak::Fit(), and TPeakFitter::Fit().

Function Documentation

◆ getexepath()

static std::string getexepath ( )
inlinestatic

Definition at line 148 of file Globals.h.

◆ hex()

◆ PrintGdbStacktrace()

static void PrintGdbStacktrace ( )
inlinestatic

Definition at line 254 of file Globals.h.

◆ PrintStacktrace()

static void PrintStacktrace ( std::ostream &  out = std::cout,
unsigned int  maxFrames = 63 
)
inlinestatic

Definition at line 168 of file Globals.h.

◆ ProgramName()

const std::string& ProgramName ( )

Referenced by TGRSIint::PrintLogo().

◆ sh()

static std::string sh ( std::string  cmd)
inlinestatic