GRSISort
Created by P.C. Bender
Developement Team: P.C. Bender, R. Dunlop, V. Bildstein
An extension of the ROOT analysis Framework
TGRSIOptions Class Reference

This class stores the command line arguments that are passed to GRSISort. This includes file names (root, mid, cal, etc.) as well as command line arguments. This is a singleton class that can be accessed with TGRSIOptions::Get() in order to determine any options that have been passed on the command line.

Definition at line 28 of file TGRSIOptions.h.

Public Member Functions

 TGRSIOptions ()
 
std::string AnalysisHistogramLib ()
 
size_t AnalysisWriteQueueSize () const
 
bool Batch () const
 
const std::vector< std::string > & CalInputFiles ()
 
void Clear (Option_t *opt="") override
 
bool CloseAfterSort () const
 
size_t ColumnWidth () const
 
std::string CompiledFilterFile ()
 
bool Debug () const
 
kFileType DetermineFileType (const std::string &filename) const
 
int Downscaling () const
 
const std::vector< std::string > & ExternalRunInfo ()
 
bool ExtractWaves () const
 
std::string FragmentHistogramLib ()
 
size_t FragmentWriteQueueSize () const
 
std::string GenerateOutputFilename (const std::string &filename)
 
std::string GenerateOutputFilename (const std::vector< std::string > &filename)
 
int GetMaxWorkers () const
 
bool IgnoreEpics () const
 
bool IgnoreFileOdb () const
 
bool IgnoreMissingChannel () const
 
bool IgnoreOdbChannels () const
 
bool IgnoreScaler () const
 
const std::vector< std::string > & InputCutFiles ()
 
const std::vector< std::string > & InputFiles ()
 
const std::vector< std::string > & InputOdbFiles ()
 
std::string InputRing ()
 
bool IsOnline () const
 
void Load (int argc, char **argv)
 
bool LogErrors () const
 
std::string LogFile ()
 
void LogFile (const std::string &val)
 
bool LongFileDescription () const
 
const std::vector< std::string > & MacroInputFiles ()
 
bool MakeAnalysisTree () const
 
bool MakeHistos () const
 
size_t NumberOfClients () const
 
size_t NumberOfEvents () const
 
const std::vector< std::string > & OptionFiles ()
 
const std::string & OutputAnalysisFile ()
 
const std::string & OutputAnalysisHistogramFile ()
 
const std::string & OutputFilteredFile ()
 
const std::string & OutputFragmentFile ()
 
const std::string & OutputFragmentHistogramFile ()
 
void ParserLibrary (std::string &library)
 
const std::string & ParserLibrary () const
 
void Print (Option_t *opt="") const override
 
bool ReadingMaterial () const
 
bool ReconstructTimeStamp () const
 
const std::vector< std::string > & RootInputFiles ()
 
bool SelectorOnly () const
 
bool SeparateOutOfOrder () const
 
bool ShouldExit ()
 
bool ShouldExitImmediately () const
 
bool ShowedVersion () const
 
bool ShowLogo () const
 
bool SkipInputSort () const
 
int SortDepth () const
 
bool SortMultiple () const
 
bool SortRaw () const
 
bool StartGui () const
 
unsigned int StatusInterval () const
 
size_t StatusWidth () const
 
bool SuppressErrors () const
 
void SuppressErrors (bool suppress)
 
bool UseMidFileOdb () const
 
const std::vector< std::string > & ValInputFiles ()
 
const std::vector< std::string > & WinInputFiles ()
 
int WordOffset () const
 
bool WriteBadFrags () const
 
bool WriteDiagnostics () const
 
bool WriteFragmentTree () const
 

Static Public Member Functions

static TAnalysisOptionsAnalysisOptions ()
 
static TGRSIOptionsGet (int argc=0, char **argv=nullptr)
 
static Bool_t ReadFromFile (TFile *file=nullptr)
 
static void SetOptions (TGRSIOptions *tmp)
 
static bool WriteToFile (TFile *file=nullptr)
 

Private Member Functions

 TGRSIOptions (int argc, char **argv)
 
bool FileAutoDetect (const std::string &filename)
 

Private Attributes

std::string fAnalysisHistogramLib
 
size_t fAnalysisWriteQueueSize
 
bool fBatch
 
bool fCloseAfterSort
 
size_t fColumnWidth
 
std::string fCompiledFilterFile
 
bool fDebug
 
int fDownscaling
 
std::vector< std::string > fExternalRunInfo
 
bool fExtractWaves
 
std::string fFragmentHistogramLib
 
size_t fFragmentWriteQueueSize
 
bool fHelp
 
bool fIgnoreEpics
 
bool fIgnoreFileOdb
 
bool fIgnoreMissingChannel
 
bool fIgnoreOdbChannels
 
bool fIgnoreScaler
 
std::vector< std::string > fInputCalFiles
 
std::vector< std::string > fInputCutFiles
 
std::vector< std::string > fInputFiles
 
std::vector< std::string > fInputOdbFiles
 
std::string fInputRing
 
std::vector< std::string > fInputRootFiles
 
std::vector< std::string > fInputValFiles
 
std::vector< std::string > fInputWinFiles
 
bool fIsOnline
 
bool fLogErrors
 
std::string fLogFile
 
bool fLongFileDescription
 
std::vector< std::string > fMacroFiles
 
bool fMakeAnalysisTree
 
bool fMakeHistos
 
int fMaxWorkers
 
size_t fNumberOfClients
 
size_t fNumberOfEvents
 
std::vector< std::string > fOptionsFile
 
std::string fOutputAnalysisFile
 
std::string fOutputAnalysisHistogramFile
 
std::string fOutputFilteredFile
 
std::string fOutputFragmentFile
 
std::string fOutputFragmentHistogramFile
 
std::string fParserLibrary
 
bool fReadingMaterial
 
bool fReconstructTimeStamp
 
bool fSelectorOnly
 
bool fSeparateOutOfOrder
 
bool fShouldExit
 
bool fShowedVersion
 
bool fShowLogo
 
bool fSkipInputSort
 
int fSortDepth
 
bool fSortMultiple
 
bool fSortRaw
 
bool fStartGui
 
unsigned int fStatusInterval
 
size_t fStatusWidth
 
bool fSuppressErrors
 
bool fUseMidFileOdb
 
int fWordOffset
 
bool fWriteBadFrags
 
bool fWriteDiagnostics
 
bool fWriteFragmentTree
 

Static Private Attributes

static TAnalysisOptionsfAnalysisOptions = new TAnalysisOptions
 
static TGRSIOptionsfGRSIOptions = nullptr
 

#include <TGRSIOptions.h>

+ Inheritance diagram for TGRSIOptions:
+ Collaboration diagram for TGRSIOptions:

Constructor & Destructor Documentation

◆ TGRSIOptions() [1/2]

TGRSIOptions::TGRSIOptions ( )
inline

Definition at line 30 of file TGRSIOptions.h.

Referenced by Get().

◆ TGRSIOptions() [2/2]

TGRSIOptions::TGRSIOptions ( int  argc,
char **  argv 
)
private

Ctor used when interpreter is initialized

Definition at line 32 of file TGRSIOptions.cxx.

References pygui.grut-view::argv, and Load().

Member Function Documentation

◆ AnalysisHistogramLib()

std::string TGRSIOptions::AnalysisHistogramLib ( )
inline

Definition at line 60 of file TGRSIOptions.h.

References fAnalysisHistogramLib.

Referenced by TGRSIint::SetupPipeline().

◆ AnalysisOptions()

◆ AnalysisWriteQueueSize()

size_t TGRSIOptions::AnalysisWriteQueueSize ( ) const
inline

Definition at line 108 of file TGRSIOptions.h.

References fAnalysisWriteQueueSize.

◆ Batch()

bool TGRSIOptions::Batch ( ) const
inline

Definition at line 94 of file TGRSIOptions.h.

References fBatch.

Referenced by TGRSIint::ApplyOptions().

◆ CalInputFiles()

const std::vector<std::string>& TGRSIOptions::CalInputFiles ( )
inline

Definition at line 44 of file TGRSIOptions.h.

References fInputCalFiles.

Referenced by main(), and TGRSIint::SetupPipeline().

◆ Clear()

◆ CloseAfterSort()

bool TGRSIOptions::CloseAfterSort ( ) const
inline

Definition at line 76 of file TGRSIOptions.h.

References fCloseAfterSort.

Referenced by TGRSIint::ApplyOptions(), and TGRSIint::SetupPipeline().

◆ ColumnWidth()

size_t TGRSIOptions::ColumnWidth ( ) const
inline

Definition at line 125 of file TGRSIOptions.h.

References fColumnWidth.

◆ CompiledFilterFile()

std::string TGRSIOptions::CompiledFilterFile ( )
inline

Definition at line 61 of file TGRSIOptions.h.

References fCompiledFilterFile.

◆ Debug()

bool TGRSIOptions::Debug ( ) const
inline

Definition at line 103 of file TGRSIOptions.h.

References fDebug.

Referenced by TZeroDegreeHit::CalculatePartialSum(), and TDescantHit::CalculatePartialSum().

◆ DetermineFileType()

kFileType TGRSIOptions::DetermineFileType ( const std::string &  filename) const

◆ Downscaling()

int TGRSIOptions::Downscaling ( ) const
inline

Definition at line 85 of file TGRSIOptions.h.

References fDownscaling.

Referenced by TDataLoop::Iteration().

◆ ExternalRunInfo()

const std::vector<std::string>& TGRSIOptions::ExternalRunInfo ( )
inline

Definition at line 47 of file TGRSIOptions.h.

References fExternalRunInfo.

Referenced by TGRSIint::SetupPipeline().

◆ ExtractWaves()

bool TGRSIOptions::ExtractWaves ( ) const
inline

Definition at line 99 of file TGRSIOptions.h.

References fExtractWaves.

Referenced by TDescantHit::TDescantHit().

◆ FileAutoDetect()

bool TGRSIOptions::FileAutoDetect ( const std::string &  filename)
private

Detects the type of file provided on the command line. This uses the extension to determine the type of the file. Once the type is determined, the file is sent to the appropriate list in TGRSIOptions. This is also smart enough to dynamically link histogramming libraries.

Definition at line 495 of file TGRSIOptions.cxx.

References CALIBRATED, COMPILED_SHARED_LIBRARY, CONFIG_FILE, CUTS_FILE, DetermineFileType(), fAnalysisHistogramLib, fFragmentHistogramLib, fInputCalFiles, fInputCutFiles, fInputFiles, fInputOdbFiles, fInputRootFiles, fInputValFiles, fInputWinFiles, fMacroFiles, fParserLibrary, DynamicLibrary::GetSymbol(), GRETINA_MODE2, GRETINA_MODE3, GVALUE, LST_FILE, MIDAS_FILE, NSCL_EVT, PRESETWINDOW, RLMD_FILE, ROOT_DATA, ROOT_MACRO, TDR_FILE, UNKNOWN_FILETYPE, and XML_FILE.

Referenced by Load().

◆ FragmentHistogramLib()

std::string TGRSIOptions::FragmentHistogramLib ( )
inline

Definition at line 59 of file TGRSIOptions.h.

References fFragmentHistogramLib.

Referenced by TGRSIint::SetupPipeline().

◆ FragmentWriteQueueSize()

size_t TGRSIOptions::FragmentWriteQueueSize ( ) const
inline

Definition at line 107 of file TGRSIOptions.h.

References fFragmentWriteQueueSize.

◆ GenerateOutputFilename() [1/2]

std::string TGRSIOptions::GenerateOutputFilename ( const std::string &  filename)

Currently does nothing

Definition at line 556 of file TGRSIOptions.cxx.

◆ GenerateOutputFilename() [2/2]

std::string TGRSIOptions::GenerateOutputFilename ( const std::vector< std::string > &  filename)

Currently does nothing

Definition at line 562 of file TGRSIOptions.cxx.

◆ Get()

TGRSIOptions * TGRSIOptions::Get ( int  argc = 0,
char **  argv = nullptr 
)
static

◆ GetMaxWorkers()

int TGRSIOptions::GetMaxWorkers ( ) const
inline

Definition at line 131 of file TGRSIOptions.h.

References fMaxWorkers.

Referenced by main().

◆ IgnoreEpics()

bool TGRSIOptions::IgnoreEpics ( ) const
inline

Definition at line 88 of file TGRSIOptions.h.

References fIgnoreEpics.

◆ IgnoreFileOdb()

bool TGRSIOptions::IgnoreFileOdb ( ) const
inline

Definition at line 83 of file TGRSIOptions.h.

References fIgnoreFileOdb.

◆ IgnoreMissingChannel()

bool TGRSIOptions::IgnoreMissingChannel ( ) const
inline

Definition at line 114 of file TGRSIOptions.h.

References fIgnoreMissingChannel.

Referenced by TGRSIDataParser::TGRSIDataParser().

◆ IgnoreOdbChannels()

bool TGRSIOptions::IgnoreOdbChannels ( ) const
inline

Definition at line 84 of file TGRSIOptions.h.

References fIgnoreOdbChannels.

◆ IgnoreScaler()

bool TGRSIOptions::IgnoreScaler ( ) const
inline

Definition at line 87 of file TGRSIOptions.h.

References fIgnoreScaler.

◆ InputCutFiles()

const std::vector<std::string>& TGRSIOptions::InputCutFiles ( )
inline

Definition at line 48 of file TGRSIOptions.h.

References fInputCutFiles.

Referenced by main().

◆ InputFiles()

const std::vector<std::string>& TGRSIOptions::InputFiles ( )
inline

Definition at line 42 of file TGRSIOptions.h.

References fInputFiles.

Referenced by TGRSIint::ApplyOptions(), main(), and TGRSIint::SetupPipeline().

◆ InputOdbFiles()

const std::vector<std::string>& TGRSIOptions::InputOdbFiles ( )
inline

Definition at line 46 of file TGRSIOptions.h.

References fInputOdbFiles.

◆ InputRing()

std::string TGRSIOptions::InputRing ( )
inline

Definition at line 58 of file TGRSIOptions.h.

References fInputRing.

◆ IsOnline()

bool TGRSIOptions::IsOnline ( ) const
inline

Definition at line 105 of file TGRSIOptions.h.

References fIsOnline.

◆ Load()

void TGRSIOptions::Load ( int  argc,
char **  argv 
)

This checks all of the options provided to GRSISort. This also loads in some libraries in order to do on the fly histogramming.

Definition at line 187 of file TGRSIOptions.cxx.

References pygui.grut-view::argv, Clear(), CONFIG_FILE, DCYAN, ArgParser::default_option(), DetermineFileType(), DGREEN, TAnalysisOptions::fAddbackWindow, fAnalysisHistogramLib, fAnalysisOptions, fAnalysisWriteQueueSize, fBatch, TAnalysisOptions::fBuildEventsByTimeStamp, TAnalysisOptions::fBuildWindow, fCloseAfterSort, fColumnWidth, fDebug, fDownscaling, fExtractWaves, fFragmentHistogramLib, fFragmentWriteQueueSize, fHelp, fIgnoreEpics, fIgnoreFileOdb, fIgnoreMissingChannel, fIgnoreOdbChannels, fIgnoreScaler, FileAutoDetect(), fInputCalFiles, fInputRootFiles, fInputValFiles, TAnalysisOptions::fIsCorrectingCrossTalk, fLogErrors, fLogFile, fMakeAnalysisTree, fMakeHistos, fMaxWorkers, fNumberOfClients, fNumberOfEvents, fOutputAnalysisFile, fOutputAnalysisHistogramFile, fOutputFragmentFile, fOutputFragmentHistogramFile, fParserLibrary, fReadingMaterial, fReconstructTimeStamp, fSelectorOnly, fSeparateOutOfOrder, fShouldExit, fShowedVersion, fShowLogo, fSkipInputSort, fSortDepth, fStartGui, TAnalysisOptions::fStaticWindow, fStatusInterval, fStatusWidth, fSuppressErrors, TAnalysisOptions::fSuppressionEnergy, TAnalysisOptions::fSuppressionWindow, TAnalysisOptions::fWaveformFitting, fWordOffset, fWriteBadFrags, fWriteDiagnostics, fWriteFragmentTree, GREEN, ArgParser::option(), ArgParser::parse(), ArgParser::parse_file(), TAnalysisOptions::ReadFromFile(), and Version().

Referenced by TGRSIOptions().

◆ LogErrors()

bool TGRSIOptions::LogErrors ( ) const
inline

Definition at line 78 of file TGRSIOptions.h.

References fLogErrors.

◆ LogFile() [1/2]

std::string TGRSIOptions::LogFile ( )
inline

Definition at line 65 of file TGRSIOptions.h.

References fLogFile.

Referenced by TGRSISelector::Terminate().

◆ LogFile() [2/2]

void TGRSIOptions::LogFile ( const std::string &  val)
inline

Definition at line 66 of file TGRSIOptions.h.

References fLogFile.

◆ LongFileDescription()

bool TGRSIOptions::LongFileDescription ( ) const
inline

Definition at line 128 of file TGRSIOptions.h.

References fLongFileDescription.

◆ MacroInputFiles()

const std::vector<std::string>& TGRSIOptions::MacroInputFiles ( )
inline

Definition at line 50 of file TGRSIOptions.h.

References fMacroFiles.

Referenced by Analyze(), TGRSIint::ApplyOptions(), AtExitHandler(), and main().

◆ MakeAnalysisTree()

bool TGRSIOptions::MakeAnalysisTree ( ) const
inline

Definition at line 81 of file TGRSIOptions.h.

References fMakeAnalysisTree.

Referenced by TGRSIint::SetupPipeline().

◆ MakeHistos()

bool TGRSIOptions::MakeHistos ( ) const
inline

Definition at line 100 of file TGRSIOptions.h.

References fMakeHistos.

Referenced by TGRSIint::SetupPipeline().

◆ NumberOfClients()

size_t TGRSIOptions::NumberOfClients ( ) const
inline

Definition at line 110 of file TGRSIOptions.h.

References fNumberOfClients.

Referenced by TAnalysisWriteLoop::TAnalysisWriteLoop().

◆ NumberOfEvents()

size_t TGRSIOptions::NumberOfEvents ( ) const
inline

Definition at line 112 of file TGRSIOptions.h.

References fNumberOfEvents.

Referenced by Analyze().

◆ OptionFiles()

const std::vector<std::string>& TGRSIOptions::OptionFiles ( )
inline

Definition at line 63 of file TGRSIOptions.h.

References fOptionsFile.

◆ OutputAnalysisFile()

const std::string& TGRSIOptions::OutputAnalysisFile ( )
inline

Definition at line 53 of file TGRSIOptions.h.

References fOutputAnalysisFile.

Referenced by TGRSIint::SetupPipeline().

◆ OutputAnalysisHistogramFile()

const std::string& TGRSIOptions::OutputAnalysisHistogramFile ( )
inline

Definition at line 57 of file TGRSIOptions.h.

References fOutputAnalysisHistogramFile.

Referenced by TGRSIint::SetupPipeline().

◆ OutputFilteredFile()

const std::string& TGRSIOptions::OutputFilteredFile ( )
inline

Definition at line 55 of file TGRSIOptions.h.

References fOutputFilteredFile.

◆ OutputFragmentFile()

const std::string& TGRSIOptions::OutputFragmentFile ( )
inline

Definition at line 52 of file TGRSIOptions.h.

References fOutputFragmentFile.

Referenced by TGRSIint::SetupPipeline().

◆ OutputFragmentHistogramFile()

const std::string& TGRSIOptions::OutputFragmentHistogramFile ( )
inline

Definition at line 56 of file TGRSIOptions.h.

References fOutputFragmentHistogramFile.

Referenced by TGRSIint::SetupPipeline().

◆ ParserLibrary() [1/2]

void TGRSIOptions::ParserLibrary ( std::string &  library)
inline

◆ ParserLibrary() [2/2]

const std::string& TGRSIOptions::ParserLibrary ( ) const
inline

Definition at line 138 of file TGRSIOptions.h.

References fParserLibrary.

◆ Print()

◆ ReadFromFile()

Bool_t TGRSIOptions::ReadFromFile ( TFile *  file = nullptr)
static

Definition at line 610 of file TGRSIOptions.cxx.

References CYAN, RESET_COLOR, and SetOptions().

◆ ReadingMaterial()

bool TGRSIOptions::ReadingMaterial ( ) const
inline

Definition at line 82 of file TGRSIOptions.h.

References fReadingMaterial.

Referenced by TGRSIint::ApplyOptions().

◆ ReconstructTimeStamp()

bool TGRSIOptions::ReconstructTimeStamp ( ) const
inline

Definition at line 74 of file TGRSIOptions.h.

References fReconstructTimeStamp.

Referenced by TGRSIDataParser::GriffinDataToFragment().

◆ RootInputFiles()

const std::vector<std::string>& TGRSIOptions::RootInputFiles ( )
inline

Definition at line 43 of file TGRSIOptions.h.

References fInputRootFiles.

Referenced by Analyze(), and TGRSIint::ApplyOptions().

◆ SelectorOnly()

bool TGRSIOptions::SelectorOnly ( ) const
inline

Definition at line 132 of file TGRSIOptions.h.

References fSelectorOnly.

Referenced by Analyze(), and main().

◆ SeparateOutOfOrder()

bool TGRSIOptions::SeparateOutOfOrder ( ) const
inline

◆ SetOptions()

void TGRSIOptions::SetOptions ( TGRSIOptions tmp)
static

Definition at line 601 of file TGRSIOptions.cxx.

References fGRSIOptions.

Referenced by ReadFromFile().

◆ ShouldExit()

bool TGRSIOptions::ShouldExit ( )
inline

Definition at line 41 of file TGRSIOptions.h.

References fShouldExit.

Referenced by main(), and TGRSIint::TGRSIint().

◆ ShouldExitImmediately()

bool TGRSIOptions::ShouldExitImmediately ( ) const
inline

Definition at line 118 of file TGRSIOptions.h.

References fShouldExit.

◆ ShowedVersion()

bool TGRSIOptions::ShowedVersion ( ) const
inline

Definition at line 96 of file TGRSIOptions.h.

References fShowedVersion.

◆ ShowLogo()

bool TGRSIOptions::ShowLogo ( ) const
inline

Definition at line 97 of file TGRSIOptions.h.

References fShowLogo.

◆ SkipInputSort()

bool TGRSIOptions::SkipInputSort ( ) const
inline

Definition at line 115 of file TGRSIOptions.h.

References fSkipInputSort.

◆ SortDepth()

◆ SortMultiple()

bool TGRSIOptions::SortMultiple ( ) const
inline

Definition at line 101 of file TGRSIOptions.h.

References fSortMultiple.

◆ SortRaw()

bool TGRSIOptions::SortRaw ( ) const
inline

Definition at line 98 of file TGRSIOptions.h.

References fSortRaw.

Referenced by TGRSIint::SetupPipeline().

◆ StartGui()

bool TGRSIOptions::StartGui ( ) const
inline

Definition at line 71 of file TGRSIOptions.h.

References fStartGui.

Referenced by TGRSIint::ApplyOptions().

◆ StatusInterval()

unsigned int TGRSIOptions::StatusInterval ( ) const
inline

Definition at line 127 of file TGRSIOptions.h.

References fStatusInterval.

◆ StatusWidth()

size_t TGRSIOptions::StatusWidth ( ) const
inline

Definition at line 126 of file TGRSIOptions.h.

References fStatusWidth.

◆ SuppressErrors() [1/2]

bool TGRSIOptions::SuppressErrors ( ) const
inline

◆ SuppressErrors() [2/2]

void TGRSIOptions::SuppressErrors ( bool  suppress)
inline

Definition at line 134 of file TGRSIOptions.h.

References fSuppressErrors.

◆ UseMidFileOdb()

bool TGRSIOptions::UseMidFileOdb ( ) const
inline

Definition at line 79 of file TGRSIOptions.h.

References fUseMidFileOdb.

◆ ValInputFiles()

const std::vector<std::string>& TGRSIOptions::ValInputFiles ( )
inline

Definition at line 45 of file TGRSIOptions.h.

References fInputValFiles.

Referenced by main(), and TGRSIint::SetupPipeline().

◆ WinInputFiles()

const std::vector<std::string>& TGRSIOptions::WinInputFiles ( )
inline

Definition at line 49 of file TGRSIOptions.h.

References fInputWinFiles.

◆ WordOffset()

int TGRSIOptions::WordOffset ( ) const
inline

Definition at line 92 of file TGRSIOptions.h.

References fWordOffset.

Referenced by TGRSIDataParser::GriffinDataToFragment().

◆ WriteBadFrags()

bool TGRSIOptions::WriteBadFrags ( ) const
inline

Definition at line 90 of file TGRSIOptions.h.

References fWriteBadFrags.

◆ WriteDiagnostics()

bool TGRSIOptions::WriteDiagnostics ( ) const
inline

Definition at line 91 of file TGRSIOptions.h.

References fWriteDiagnostics.

Referenced by TAnalysisWriteLoop::Write(), and TFragWriteLoop::Write().

◆ WriteFragmentTree()

bool TGRSIOptions::WriteFragmentTree ( ) const
inline

Definition at line 89 of file TGRSIOptions.h.

References fWriteFragmentTree.

Referenced by TGRSIint::SetupPipeline().

◆ WriteToFile()

bool TGRSIOptions::WriteToFile ( TFile *  file = nullptr)
static

Writes options information to the tree

Definition at line 568 of file TGRSIOptions.cxx.

References fAnalysisOptions, Get(), and TAnalysisOptions::WriteToFile().

Referenced by TFragWriteLoop::Write().

Member Data Documentation

◆ fAnalysisHistogramLib

std::string TGRSIOptions::fAnalysisHistogramLib
private

The name of the script for histogramming events.

Definition at line 165 of file TGRSIOptions.h.

Referenced by AnalysisHistogramLib(), Clear(), FileAutoDetect(), and Load().

◆ fAnalysisOptions

TAnalysisOptions * TGRSIOptions::fAnalysisOptions = new TAnalysisOptions
staticprivate

contains all options for analysis

Definition at line 214 of file TGRSIOptions.h.

Referenced by AnalysisOptions(), Clear(), Load(), Print(), and WriteToFile().

◆ fAnalysisWriteQueueSize

size_t TGRSIOptions::fAnalysisWriteQueueSize
private

Size of the analysis write Q.

Definition at line 204 of file TGRSIOptions.h.

Referenced by AnalysisWriteQueueSize(), Clear(), Load(), and Print().

◆ fBatch

bool TGRSIOptions::fBatch
private

Flag to use batch mode (-b)

Definition at line 191 of file TGRSIOptions.h.

Referenced by Batch(), Clear(), Load(), and Print().

◆ fCloseAfterSort

bool TGRSIOptions::fCloseAfterSort
private

Flag to close after sorting (-q)

Definition at line 172 of file TGRSIOptions.h.

Referenced by Clear(), CloseAfterSort(), Load(), and Print().

◆ fColumnWidth

size_t TGRSIOptions::fColumnWidth
private

Size of verbose columns.

Definition at line 222 of file TGRSIOptions.h.

Referenced by Clear(), ColumnWidth(), Load(), and Print().

◆ fCompiledFilterFile

std::string TGRSIOptions::fCompiledFilterFile
private

Definition at line 166 of file TGRSIOptions.h.

Referenced by Clear(), and CompiledFilterFile().

◆ fDebug

bool TGRSIOptions::fDebug
private

Flag for debug mode.

Definition at line 201 of file TGRSIOptions.h.

Referenced by Clear(), Debug(), Load(), and Print().

◆ fDownscaling

int TGRSIOptions::fDownscaling
private

Downscaling factor for raw events to be processed.

Definition at line 182 of file TGRSIOptions.h.

Referenced by Clear(), Downscaling(), Load(), and Print().

◆ fExternalRunInfo

std::vector<std::string> TGRSIOptions::fExternalRunInfo
private

A list of the input run info files.

Definition at line 150 of file TGRSIOptions.h.

Referenced by Clear(), and ExternalRunInfo().

◆ fExtractWaves

bool TGRSIOptions::fExtractWaves
private

Flag to keep waveforms (suppress with –no-waveforms)

Definition at line 196 of file TGRSIOptions.h.

Referenced by Clear(), ExtractWaves(), Load(), and Print().

◆ fFragmentHistogramLib

std::string TGRSIOptions::fFragmentHistogramLib
private

The name of the script for histogramming fragments.

Definition at line 164 of file TGRSIOptions.h.

Referenced by Clear(), FileAutoDetect(), FragmentHistogramLib(), and Load().

◆ fFragmentWriteQueueSize

size_t TGRSIOptions::fFragmentWriteQueueSize
private

Size of the Fragment write Q.

Definition at line 203 of file TGRSIOptions.h.

Referenced by Clear(), FragmentWriteQueueSize(), Load(), and Print().

◆ fGRSIOptions

TGRSIOptions * TGRSIOptions::fGRSIOptions = nullptr
staticprivate

Definition at line 142 of file TGRSIOptions.h.

Referenced by Get(), and SetOptions().

◆ fHelp

bool TGRSIOptions::fHelp
private

help requested?

Definition at line 220 of file TGRSIOptions.h.

Referenced by Clear(), Load(), and Print().

◆ fIgnoreEpics

bool TGRSIOptions::fIgnoreEpics
private

Flag to ignore epics.

Definition at line 185 of file TGRSIOptions.h.

Referenced by Clear(), IgnoreEpics(), Load(), and Print().

◆ fIgnoreFileOdb

bool TGRSIOptions::fIgnoreFileOdb
private

Flag to ignore midas file odb.

Definition at line 180 of file TGRSIOptions.h.

Referenced by Clear(), IgnoreFileOdb(), Load(), and Print().

◆ fIgnoreMissingChannel

bool TGRSIOptions::fIgnoreMissingChannel
private

Flag to completely ignore missing channels.

Definition at line 210 of file TGRSIOptions.h.

Referenced by Clear(), IgnoreMissingChannel(), Load(), and Print().

◆ fIgnoreOdbChannels

bool TGRSIOptions::fIgnoreOdbChannels
private

Flag to ignore channels from midas file odb (but do use EPICS from ODB)

Definition at line 181 of file TGRSIOptions.h.

Referenced by Clear(), IgnoreOdbChannels(), Load(), and Print().

◆ fIgnoreScaler

bool TGRSIOptions::fIgnoreScaler
private

Flag to ignore scalers in GRIFFIN.

Definition at line 184 of file TGRSIOptions.h.

Referenced by Clear(), IgnoreScaler(), Load(), and Print().

◆ fInputCalFiles

std::vector<std::string> TGRSIOptions::fInputCalFiles
private

A list of the input cal files.

Definition at line 148 of file TGRSIOptions.h.

Referenced by CalInputFiles(), Clear(), FileAutoDetect(), and Load().

◆ fInputCutFiles

std::vector<std::string> TGRSIOptions::fInputCutFiles
private

A list of input cut files.

Definition at line 153 of file TGRSIOptions.h.

Referenced by Clear(), FileAutoDetect(), and InputCutFiles().

◆ fInputFiles

std::vector<std::string> TGRSIOptions::fInputFiles
private

A list of the input files.

Definition at line 146 of file TGRSIOptions.h.

Referenced by Clear(), FileAutoDetect(), and InputFiles().

◆ fInputOdbFiles

std::vector<std::string> TGRSIOptions::fInputOdbFiles
private

A list of the input odb files.

Definition at line 149 of file TGRSIOptions.h.

Referenced by Clear(), FileAutoDetect(), and InputOdbFiles().

◆ fInputRing

std::string TGRSIOptions::fInputRing
private

The name of hte input ring.

Definition at line 156 of file TGRSIOptions.h.

Referenced by Clear(), and InputRing().

◆ fInputRootFiles

std::vector<std::string> TGRSIOptions::fInputRootFiles
private

A list of the input root files.

Definition at line 147 of file TGRSIOptions.h.

Referenced by Clear(), FileAutoDetect(), Load(), and RootInputFiles().

◆ fInputValFiles

std::vector<std::string> TGRSIOptions::fInputValFiles
private

A list of the input GValue files.

Definition at line 154 of file TGRSIOptions.h.

Referenced by Clear(), FileAutoDetect(), Load(), and ValInputFiles().

◆ fInputWinFiles

std::vector<std::string> TGRSIOptions::fInputWinFiles
private

A list of the input window files.

Definition at line 155 of file TGRSIOptions.h.

Referenced by Clear(), FileAutoDetect(), and WinInputFiles().

◆ fIsOnline

bool TGRSIOptions::fIsOnline
private

Flag to sort online data.

Definition at line 197 of file TGRSIOptions.h.

Referenced by Clear(), IsOnline(), and Print().

◆ fLogErrors

bool TGRSIOptions::fLogErrors
private

Flag to log errors (–log-errors)

Definition at line 173 of file TGRSIOptions.h.

Referenced by Clear(), Load(), LogErrors(), and Print().

◆ fLogFile

std::string TGRSIOptions::fLogFile
private

The name of the output log file.

Definition at line 170 of file TGRSIOptions.h.

Referenced by Clear(), Load(), LogFile(), and Print().

◆ fLongFileDescription

bool TGRSIOptions::fLongFileDescription
private

Definition at line 225 of file TGRSIOptions.h.

Referenced by Clear(), LongFileDescription(), and Print().

◆ fMacroFiles

std::vector<std::string> TGRSIOptions::fMacroFiles
private

A list of the input macro (.C) files.

Definition at line 151 of file TGRSIOptions.h.

Referenced by Clear(), FileAutoDetect(), and MacroInputFiles().

◆ fMakeAnalysisTree

bool TGRSIOptions::fMakeAnalysisTree
private

Flag to make analysis tree (-a)

Definition at line 178 of file TGRSIOptions.h.

Referenced by Clear(), Load(), MakeAnalysisTree(), and Print().

◆ fMakeHistos

bool TGRSIOptions::fMakeHistos
private

Flag to make histograms (-H)

Definition at line 199 of file TGRSIOptions.h.

Referenced by Clear(), Load(), MakeHistos(), and Print().

◆ fMaxWorkers

int TGRSIOptions::fMaxWorkers
private

Max workers used in grsiproof.

Definition at line 228 of file TGRSIOptions.h.

Referenced by Clear(), GetMaxWorkers(), Load(), and Print().

◆ fNumberOfClients

size_t TGRSIOptions::fNumberOfClients
private

Number of analysis write loop clients.

Definition at line 206 of file TGRSIOptions.h.

Referenced by Clear(), Load(), and NumberOfClients().

◆ fNumberOfEvents

size_t TGRSIOptions::fNumberOfEvents
private

Number of events, fragments, etc. to process (0 - all)

Definition at line 208 of file TGRSIOptions.h.

Referenced by Clear(), Load(), and NumberOfEvents().

◆ fOptionsFile

std::vector<std::string> TGRSIOptions::fOptionsFile
private

A list of the input .info files.

Definition at line 168 of file TGRSIOptions.h.

Referenced by Clear(), and OptionFiles().

◆ fOutputAnalysisFile

std::string TGRSIOptions::fOutputAnalysisFile
private

The name of the analysis file to write to.

Definition at line 159 of file TGRSIOptions.h.

Referenced by Clear(), Load(), and OutputAnalysisFile().

◆ fOutputAnalysisHistogramFile

std::string TGRSIOptions::fOutputAnalysisHistogramFile
private

The name of the analysis histogram file.

Definition at line 162 of file TGRSIOptions.h.

Referenced by Clear(), Load(), and OutputAnalysisHistogramFile().

◆ fOutputFilteredFile

std::string TGRSIOptions::fOutputFilteredFile
private

Definition at line 160 of file TGRSIOptions.h.

Referenced by Clear(), and OutputFilteredFile().

◆ fOutputFragmentFile

std::string TGRSIOptions::fOutputFragmentFile
private

The name of the fragment file to write to.

Definition at line 158 of file TGRSIOptions.h.

Referenced by Clear(), Load(), and OutputFragmentFile().

◆ fOutputFragmentHistogramFile

std::string TGRSIOptions::fOutputFragmentHistogramFile
private

The name of the fragment histogram file.

Definition at line 161 of file TGRSIOptions.h.

Referenced by Clear(), Load(), and OutputFragmentHistogramFile().

◆ fParserLibrary

std::string TGRSIOptions::fParserLibrary
private

location of shared object library for data parser and files

Definition at line 232 of file TGRSIOptions.h.

Referenced by Clear(), FileAutoDetect(), Load(), ParserLibrary(), and Print().

◆ fReadingMaterial

bool TGRSIOptions::fReadingMaterial
private

Flag to show reading material (–reading-material)

Definition at line 179 of file TGRSIOptions.h.

Referenced by Clear(), Load(), Print(), and ReadingMaterial().

◆ fReconstructTimeStamp

bool TGRSIOptions::fReconstructTimeStamp
private

Flag to reconstruct missing high bits of time stamps (–reconstruct-timestamp)

Definition at line 176 of file TGRSIOptions.h.

Referenced by Load(), Print(), and ReconstructTimeStamp().

◆ fSelectorOnly

bool TGRSIOptions::fSelectorOnly
private

Flag to turn PROOF off in grsiproof.

Definition at line 229 of file TGRSIOptions.h.

Referenced by Clear(), Load(), Print(), and SelectorOnly().

◆ fSeparateOutOfOrder

bool TGRSIOptions::fSeparateOutOfOrder
private

Flag to build out of order into seperate event tree.

Definition at line 216 of file TGRSIOptions.h.

Referenced by Clear(), Load(), Print(), and SeparateOutOfOrder().

◆ fShouldExit

bool TGRSIOptions::fShouldExit
private

Flag to exit sorting.

Definition at line 218 of file TGRSIOptions.h.

Referenced by Clear(), Load(), Print(), ShouldExit(), and ShouldExitImmediately().

◆ fShowedVersion

bool TGRSIOptions::fShowedVersion
private

Flag to show version.

Definition at line 193 of file TGRSIOptions.h.

Referenced by Clear(), Load(), Print(), and ShowedVersion().

◆ fShowLogo

bool TGRSIOptions::fShowLogo
private

Flag to show logo (suppress with -l)

Definition at line 194 of file TGRSIOptions.h.

Referenced by Clear(), Load(), Print(), and ShowLogo().

◆ fSkipInputSort

bool TGRSIOptions::fSkipInputSort
private

Flag to sort on time or triggers.

Definition at line 211 of file TGRSIOptions.h.

Referenced by Clear(), Load(), Print(), and SkipInputSort().

◆ fSortDepth

int TGRSIOptions::fSortDepth
private

Size of Q that stores fragments to be built into events.

Definition at line 212 of file TGRSIOptions.h.

Referenced by Load(), Print(), and SortDepth().

◆ fSortMultiple

bool TGRSIOptions::fSortMultiple
private

Flag to sort multiple files.

Definition at line 200 of file TGRSIOptions.h.

Referenced by Clear(), Print(), and SortMultiple().

◆ fSortRaw

bool TGRSIOptions::fSortRaw
private

Flag to sort raw file.

Definition at line 195 of file TGRSIOptions.h.

Referenced by Clear(), Print(), and SortRaw().

◆ fStartGui

bool TGRSIOptions::fStartGui
private

Flag to start GUI (-g)

Definition at line 198 of file TGRSIOptions.h.

Referenced by Clear(), Load(), Print(), and StartGui().

◆ fStatusInterval

unsigned int TGRSIOptions::fStatusInterval
private

Time between status updates.

Definition at line 224 of file TGRSIOptions.h.

Referenced by Clear(), Load(), Print(), and StatusInterval().

◆ fStatusWidth

size_t TGRSIOptions::fStatusWidth
private

Size of total verbose status.

Definition at line 223 of file TGRSIOptions.h.

Referenced by Clear(), Load(), Print(), and StatusWidth().

◆ fSuppressErrors

bool TGRSIOptions::fSuppressErrors
private

Flag to suppress errors (–suppress-errors)

Definition at line 175 of file TGRSIOptions.h.

Referenced by Load(), Print(), and SuppressErrors().

◆ fUseMidFileOdb

bool TGRSIOptions::fUseMidFileOdb
private

Flag to read odb from midas.

Definition at line 174 of file TGRSIOptions.h.

Referenced by Clear(), Print(), and UseMidFileOdb().

◆ fWordOffset

int TGRSIOptions::fWordOffset
private

Offset for word count in GRIFFIN header (default 1)

Definition at line 189 of file TGRSIOptions.h.

Referenced by Clear(), Load(), Print(), and WordOffset().

◆ fWriteBadFrags

bool TGRSIOptions::fWriteBadFrags
private

Flag to write bad fragments.

Definition at line 187 of file TGRSIOptions.h.

Referenced by Clear(), Load(), Print(), and WriteBadFrags().

◆ fWriteDiagnostics

bool TGRSIOptions::fWriteDiagnostics
private

Flag to write diagnostics.

Definition at line 188 of file TGRSIOptions.h.

Referenced by Clear(), Load(), Print(), and WriteDiagnostics().

◆ fWriteFragmentTree

bool TGRSIOptions::fWriteFragmentTree
private

Flag to write fragment tree.

Definition at line 186 of file TGRSIOptions.h.

Referenced by Clear(), Load(), Print(), and WriteFragmentTree().