GRSISort "v4.0.0.5"
An extension of the ROOT analysis Framework
|
Definition at line 21 of file TCompiledHistograms.h.
Public Member Functions | |
TCompiledHistograms () | |
TCompiledHistograms (std::string inputLib, std::string funcName) | |
void | AddCutFile (TFile *cut_file) |
void | ClearHistograms () |
void | Fill (std::shared_ptr< const TFragment > frag) |
void | Fill (std::shared_ptr< TUnpackedEvent > detectors) |
TDirectory * | GetDefaultDirectory () |
TList * | GetGates () |
std::string | GetLibraryName () const |
TList * | GetObjects () |
void | Load (const std::string &libName, const std::string &funcName) |
void | Reload () |
void | SetDefaultDirectory (TDirectory *dir) |
Int_t | Write (const char *name=nullptr, Int_t option=0, Int_t bufsize=0) override |
Private Member Functions | |
bool | file_exists () |
time_t | get_timestamp () |
void | swap_lib (TCompiledHistograms &other) |
Private Attributes | |
int | fCheckEvery {5} |
std::vector< TFile * > | fCutFiles |
TDirectory * | fDefaultDirectory {nullptr} |
void(* | fFunc )(TRuntimeObjects &) |
std::string | fFuncName |
TList | fGates |
time_t | fLastChecked {0} |
time_t | fLastModified {0} |
std::string | fLibName |
std::shared_ptr< DynamicLibrary > | fLibrary {nullptr} |
std::mutex | fMutex |
TRuntimeObjects | fObj |
TList | fObjects |
TCompiledHistograms::TCompiledHistograms | ( | ) |
Definition at line 23 of file TCompiledHistograms.cxx.
TCompiledHistograms::TCompiledHistograms | ( | std::string | inputLib, |
std::string | funcName ) |
Definition at line 28 of file TCompiledHistograms.cxx.
References fFunc, fFuncName, fLastChecked, fLastModified, fLibName, fLibrary, and get_timestamp().
void TCompiledHistograms::AddCutFile | ( | TFile * | cut_file | ) |
Definition at line 176 of file TCompiledHistograms.cxx.
References fCutFiles.
Referenced by TAnalysisHistLoop::AddCutFile(), and TFragHistLoop::AddCutFile().
void TCompiledHistograms::ClearHistograms | ( | ) |
Definition at line 43 of file TCompiledHistograms.cxx.
References fMutex, fObjects, and hist.
Referenced by TAnalysisHistLoop::ClearHistograms(), and TFragHistLoop::ClearHistograms().
|
private |
void TCompiledHistograms::Fill | ( | std::shared_ptr< const TFragment > | frag | ) |
Definition at line 136 of file TCompiledHistograms.cxx.
References fCheckEvery, fDefaultDirectory, fFunc, fLastChecked, fLibrary, fMutex, fObj, Reload(), TRuntimeObjects::SetDirectory(), and TRuntimeObjects::SetFragment().
Referenced by TAnalysisHistLoop::Iteration(), and TFragHistLoop::Iteration().
void TCompiledHistograms::Fill | ( | std::shared_ptr< TUnpackedEvent > | detectors | ) |
Definition at line 156 of file TCompiledHistograms.cxx.
References fCheckEvery, fDefaultDirectory, fFunc, fLastChecked, fLibrary, fMutex, fObj, Reload(), TRuntimeObjects::SetDetectors(), and TRuntimeObjects::SetDirectory().
|
private |
Definition at line 68 of file TCompiledHistograms.cxx.
References fLibName.
Referenced by TCompiledHistograms(), and Reload().
|
inline |
Definition at line 36 of file TCompiledHistograms.h.
References fDefaultDirectory.
|
inline |
Definition at line 41 of file TCompiledHistograms.h.
References fGates.
Referenced by TAnalysisHistLoop::GetGates(), and TFragHistLoop::GetGates().
|
inline |
Definition at line 33 of file TCompiledHistograms.h.
References fLibName.
Referenced by TAnalysisHistLoop::GetLibraryName(), and TFragHistLoop::GetLibraryName().
|
inline |
Definition at line 40 of file TCompiledHistograms.h.
References fObjects.
Referenced by TAnalysisHistLoop::GetObjects(), and TFragHistLoop::GetObjects().
void TCompiledHistograms::Load | ( | const std::string & | libName, |
const std::string & | funcName ) |
Definition at line 110 of file TCompiledHistograms.cxx.
References swap_lib().
Referenced by TAnalysisHistLoop::LoadLibrary(), and TFragHistLoop::LoadLibrary().
void TCompiledHistograms::Reload | ( | ) |
Definition at line 116 of file TCompiledHistograms.cxx.
References fFuncName, file_exists(), fLastChecked, fLastModified, fLibName, get_timestamp(), and swap_lib().
void TCompiledHistograms::SetDefaultDirectory | ( | TDirectory * | dir | ) |
Definition at line 183 of file TCompiledHistograms.cxx.
References fDefaultDirectory, fObjects, and hist.
Referenced by TAnalysisHistLoop::OpenFile(), and TFragHistLoop::OpenFile().
|
private |
Definition at line 125 of file TCompiledHistograms.cxx.
References fCheckEvery, fFunc, fFuncName, fLastChecked, fLastModified, fLibName, and fLibrary.
|
override |
Definition at line 81 of file TCompiledHistograms.cxx.
References fObjects.
Referenced by TAnalysisHistLoop::Write(), and TFragHistLoop::Write().
|
private |
Definition at line 62 of file TCompiledHistograms.h.
Referenced by Fill(), Fill(), and swap_lib().
|
private |
Definition at line 66 of file TCompiledHistograms.h.
Referenced by AddCutFile().
|
private |
Definition at line 68 of file TCompiledHistograms.h.
Referenced by Fill(), Fill(), GetDefaultDirectory(), and SetDefaultDirectory().
|
private |
Definition at line 58 of file TCompiledHistograms.h.
Referenced by TCompiledHistograms(), Fill(), Fill(), and swap_lib().
|
private |
Definition at line 53 of file TCompiledHistograms.h.
Referenced by TCompiledHistograms(), Reload(), and swap_lib().
|
private |
Definition at line 65 of file TCompiledHistograms.h.
Referenced by GetGates().
|
private |
Definition at line 60 of file TCompiledHistograms.h.
Referenced by TCompiledHistograms(), Fill(), Fill(), Reload(), and swap_lib().
|
private |
Definition at line 59 of file TCompiledHistograms.h.
Referenced by TCompiledHistograms(), Reload(), and swap_lib().
|
private |
Definition at line 52 of file TCompiledHistograms.h.
Referenced by TCompiledHistograms(), file_exists(), get_timestamp(), GetLibraryName(), Reload(), and swap_lib().
|
private |
Definition at line 55 of file TCompiledHistograms.h.
Referenced by TCompiledHistograms(), Fill(), Fill(), and swap_lib().
|
private |
Definition at line 56 of file TCompiledHistograms.h.
Referenced by ClearHistograms(), Fill(), and Fill().
|
private |
Definition at line 70 of file TCompiledHistograms.h.
|
private |
Definition at line 64 of file TCompiledHistograms.h.
Referenced by ClearHistograms(), GetObjects(), SetDefaultDirectory(), and Write().