#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>
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) |
#define ALERTTEXT "\033[47m\033[0;31m" |
Definition at line 34 of file Globals.h.
Referenced by TTigress::AddFragment(), TKinematics::Evslab(), TKinematics::Evslab_graph(), TBadFragment::Print(), TRunInfo::SetDate(), TRunInfo::SetFullVersion(), TRunInfo::SetLibraryVersion(), and TRunInfo::SetVersion().
#define BG_WHITE "\033[47m" |
Definition at line 23 of file Globals.h.
Referenced by TGRSIInterruptHandler::Notify(), TGRSIint::PrintHelp(), TMidasFile::SetGRIFFOdb(), TMidasFile::SetTIGDAQOdb(), and TMidasFile::SetTIGOdb().
#define BLUE "\033[1;34m" |
Definition at line 5 of file Globals.h.
Referenced by TDeadtimeScalerQueue::CheckStatus(), TRateScalerQueue::CheckStatus(), TGRSIDataParser::GriffinDataToFragment(), TGRSIint::OpenRawFile(), TGRSIint::OpenRootFile(), TAnalysisOptions::Print(), GCanvas::Process1DKeyboardPress(), TDeadtimeScalerQueue::StatusUpdate(), TRateScalerQueue::StatusUpdate(), TFragHistLoop::Write(), and TAnalysisHistLoop::Write().
#define CYAN "\033[1;36m" |
Definition at line 11 of file Globals.h.
Referenced by TSingleton< TParsingDiagnostics >::AddCurrent(), TSingleton< TParsingDiagnostics >::Get(), TChannel::InitChannelInput(), TChannel::ReadCalFile(), TAnalysisOptions::ReadFromFile(), TGRSIOptions::ReadFromFile(), and TRunInfo::ReadInfoFile().
#define DBLUE "\033[0;34m" |
Definition at line 14 of file Globals.h.
Referenced by CheckFile(), CheckHighTimeStamp(), TPPG::Correct(), DoAnalysis(), GetRoughTimeDiff(), GetTimeDiff(), main(), TRunInfo::ParseInputData(), TGRSIDetectorInformation::Print(), TCalGraph::Print(), TRunInfo::Print(), Printaddress(), QueueEvents(), TMidasFile::SetRunInfo(), and TGRSIDataParser::SetTIGTriggerID().
#define DCYAN "\033[0;36m" |
Definition at line 20 of file Globals.h.
Referenced by atexitHandler(), TGRSIOptions::Load(), main(), and TAnalysisOptions::Print().
#define DGREEN "\033[0;32m" |
Definition at line 16 of file Globals.h.
Referenced by TCalGraph::AddLists(), TPeak::CheckArea(), TDeadtimeScalerQueue::CheckStatus(), TRateScalerQueue::CheckStatus(), CorrectionFile(), DoAnalysis(), ExamineMidasFile(), GGaus::Fit(), GPeak::Fit(), TGRSIOptions::Load(), main(), MakeSpectra(), TCSM::OldBuilddEE(), TSharcHit::Print(), TCalGraph::Print(), TSortingDiagnostics::Print(), QueueEvents(), TDeadtimeScalerQueue::StatusUpdate(), TRateScalerQueue::StatusUpdate(), and WriteEvents().
#define DMAGENTA "\033[0;35m" |
Definition at line 19 of file Globals.h.
Referenced by atexitHandler(), AtExitHandler(), main(), and WriteEvents().
#define DRED "\033[0;31m" |
Definition at line 17 of file Globals.h.
Referenced by TCalGraph::AddLists(), Analyze(), TGRSIint::ApplyOptions(), TEpicsFrag::BuildScalerMap(), TPeak::CheckArea(), CheckFile(), TGRSISelector::CheckSizes(), TPPG::Correct(), CrossTalkFix(), TFipps::CTCorrectedEnergy(), TIfin::CTCorrectedEnergy(), TGriffin::CTCorrectedEnergy(), DoAnalysis(), ExamineMidasFile(), GGaus::Fit(), GPeak::Fit(), TSRIM::GetEnergy(), TEpicsFrag::GetEpicsVariableName(), TEpicsFrag::GetScalerAtTime(), GetTimeDiff(), TGRSIDataParser::GriffinDataToFragment(), TParserLibrary::Load(), main(), TGRSIInterruptHandler::Notify(), TRunInfo::ParseInputData(), TGRSIDetectorInformation::Print(), TCalGraph::Print(), TSortingDiagnostics::Print(), TRunInfo::Print(), PrintError(), TGRSIint::PrintHelp(), TEpicsFrag::PrintScalerMap(), TGRSISelector::Process(), TGRSIDataParser::Process(), TGRSIDataParser::ProcessGriffin(), QueueEvents(), TChannel::ReadCalFile(), TMidasFile::SetGRIFFOdb(), TMidasFile::SetTIGDAQOdb(), TMidasFile::SetTIGOdb(), TGRSIDataParser::SetTIGTriggerID(), TGRSIint::SetupPipeline(), and WriteEvents().
#define DYELLOW "\033[0;33m" |
Definition at line 15 of file Globals.h.
Referenced by TRunInfo::Add(), TPeak::CheckArea(), CheckHighTimeStamp(), TSRIM::GetEnergy(), GetRoughTimeDiff(), GetTimeDiff(), TGRSIDataParser::GriffinDataToFragment(), TGRSIProof::LoadLibsIntoProof(), main(), QueueEvents(), TMidasFile::SetFileOdb(), TEventBuildingLoop::TEventBuildingLoop(), and TGRSIDataParser::TigressDataToFragment().
#define GREEN "\033[1;32m" |
Definition at line 7 of file Globals.h.
Referenced by GPeak::Fit(), TPeak::Fit(), TPeakFitter::Fit(), TGRSIOptions::Load(), NamespaceImp(), GGaus::Print(), and GPeak::Print().
#define HIDE_CURSOR "\033[?25l" |
Definition at line 31 of file Globals.h.
Referenced by main(), TLstFile::Status(), TTdrFile::Status(), TMidasFile::Status(), TRlmdFile::Status(), and WriteEvents().
#define RED "\033[1;31m" |
Definition at line 8 of file Globals.h.
Referenced by TDeadtimeScalerQueue::Clear(), TRateScalerQueue::Clear(), TMnemonic::EnumerateDigitizer(), GGaus::Fit(), GPeak::Fit(), TPeakFitter::Fit(), TChannel::GetChannel(), NamespaceImp(), TGRSIDetectorInformation::Set(), TMidasFile::SetFileOdb(), TPPG::SetOdbFromData(), and TGRSIDataParser::TigressDataToFragment().
#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().
#define SHOW_CURSOR "\033[?25h" |
Definition at line 32 of file Globals.h.
Referenced by main(), TLstFile::Status(), TTdrFile::Status(), TMidasFile::Status(), TRlmdFile::Status(), and WriteEvents().
#define YELLOW "\033[1;33m" |
Definition at line 6 of file Globals.h.
Referenced by GPeak::Fit(), TPeak::Fit(), and TPeakFitter::Fit().
|
inline |
Definition at line 134 of file Globals.h.
Referenced by TFragmentMap::Add(), TGRSIDataParser::CaenPhaToFragment(), TGRSIDataParser::CaenPsdToFragment(), TPPG::CalculateCycleFromData(), TPPG::Correct(), TChannel::GetChannel(), TSiLiHit::GetSiLiHitChannel(), TGRSIDataParser::GriffinDataToFragment(), TScaler::ListHistograms(), main(), TPPG::OdbMatchesData(), TChannel::ParseInputData(), TLstEvent::Print(), TRlmdEvent::Print(), TBadFragment::Print(), TEagleHit::Print(), TPinDiodeHit::Print(), TParsingDiagnosticsData::Print(), TMidasEvent::Print(), TPPGData::Print(), StoppableThread::Print(), TSortingDiagnostics::Print(), TScalerData::Print(), TFragment::Print(), TPPG::Print(), TChannel::PrintCTCoeffs(), TChannel::PrintToString(), TTdrFile::Read(), TChannel::ReadEnergyNonlinearities(), TChannel::SetAddress(), TPPGData::SetNewPPG(), TPPGData::SetOldPPG(), TGRSIDataParser::SetTIGTimeStamp(), TGRSIDataParser::TigressDataToFragment(), TSourceCalibration::UpdateChannel(), and TParsingDiagnostics::WriteToFile().
|
inlinestatic |
const std::string& ProgramName | ( | ) |
Referenced by TGRSIint::PrintLogo().
|
inlinestatic |
Definition at line 154 of file Globals.h.
Referenced by GRootCanvas::AdjustSize(), GRootCanvas::ShowStatusBar(), and GRootCanvas::ShowToolBar().