GRSISort "v4.0.0.5"
An extension of the ROOT analysis Framework
Loading...
Searching...
No Matches
TCompiledHistograms Class Reference

Detailed Description

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< DynamicLibraryfLibrary {nullptr}
 
std::mutex fMutex
 
TRuntimeObjects fObj
 
TList fObjects
 
+ Inheritance diagram for TCompiledHistograms:
+ Collaboration diagram for TCompiledHistograms:

Constructor & Destructor Documentation

◆ TCompiledHistograms() [1/2]

TCompiledHistograms::TCompiledHistograms ( )

Definition at line 23 of file TCompiledHistograms.cxx.

◆ TCompiledHistograms() [2/2]

TCompiledHistograms::TCompiledHistograms ( std::string inputLib,
std::string funcName )

Member Function Documentation

◆ AddCutFile()

void TCompiledHistograms::AddCutFile ( TFile * cut_file)

Definition at line 176 of file TCompiledHistograms.cxx.

References fCutFiles.

Referenced by TAnalysisHistLoop::AddCutFile(), and TFragHistLoop::AddCutFile().

◆ ClearHistograms()

void TCompiledHistograms::ClearHistograms ( )

Definition at line 43 of file TCompiledHistograms.cxx.

References fMutex, fObjects, and hist.

Referenced by TAnalysisHistLoop::ClearHistograms(), and TFragHistLoop::ClearHistograms().

◆ file_exists()

bool TCompiledHistograms::file_exists ( )
private

Definition at line 75 of file TCompiledHistograms.cxx.

References fLibName.

Referenced by Reload().

◆ Fill() [1/2]

void TCompiledHistograms::Fill ( std::shared_ptr< const TFragment > frag)

◆ Fill() [2/2]

void TCompiledHistograms::Fill ( std::shared_ptr< TUnpackedEvent > detectors)

◆ get_timestamp()

time_t TCompiledHistograms::get_timestamp ( )
private

Definition at line 68 of file TCompiledHistograms.cxx.

References fLibName.

Referenced by TCompiledHistograms(), and Reload().

◆ GetDefaultDirectory()

TDirectory * TCompiledHistograms::GetDefaultDirectory ( )
inline

Definition at line 36 of file TCompiledHistograms.h.

References fDefaultDirectory.

◆ GetGates()

TList * TCompiledHistograms::GetGates ( )
inline

Definition at line 41 of file TCompiledHistograms.h.

References fGates.

Referenced by TAnalysisHistLoop::GetGates(), and TFragHistLoop::GetGates().

◆ GetLibraryName()

std::string TCompiledHistograms::GetLibraryName ( ) const
inline

Definition at line 33 of file TCompiledHistograms.h.

References fLibName.

Referenced by TAnalysisHistLoop::GetLibraryName(), and TFragHistLoop::GetLibraryName().

◆ GetObjects()

TList * TCompiledHistograms::GetObjects ( )
inline

Definition at line 40 of file TCompiledHistograms.h.

References fObjects.

Referenced by TAnalysisHistLoop::GetObjects(), and TFragHistLoop::GetObjects().

◆ Load()

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().

◆ Reload()

void TCompiledHistograms::Reload ( )

Definition at line 116 of file TCompiledHistograms.cxx.

References fFuncName, file_exists(), fLastChecked, fLastModified, fLibName, get_timestamp(), and swap_lib().

Referenced by Fill(), and Fill().

◆ SetDefaultDirectory()

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().

◆ swap_lib()

void TCompiledHistograms::swap_lib ( TCompiledHistograms & other)
private

Definition at line 125 of file TCompiledHistograms.cxx.

References fCheckEvery, fFunc, fFuncName, fLastChecked, fLastModified, fLibName, and fLibrary.

Referenced by Load(), and Reload().

◆ Write()

Int_t TCompiledHistograms::Write ( const char * name = nullptr,
Int_t option = 0,
Int_t bufsize = 0 )
override

Definition at line 81 of file TCompiledHistograms.cxx.

References fObjects.

Referenced by TAnalysisHistLoop::Write(), and TFragHistLoop::Write().

Member Data Documentation

◆ fCheckEvery

int TCompiledHistograms::fCheckEvery {5}
private

Definition at line 62 of file TCompiledHistograms.h.

Referenced by Fill(), Fill(), and swap_lib().

◆ fCutFiles

std::vector<TFile*> TCompiledHistograms::fCutFiles
private

Definition at line 66 of file TCompiledHistograms.h.

Referenced by AddCutFile().

◆ fDefaultDirectory

TDirectory* TCompiledHistograms::fDefaultDirectory {nullptr}
private

Definition at line 68 of file TCompiledHistograms.h.

Referenced by Fill(), Fill(), GetDefaultDirectory(), and SetDefaultDirectory().

◆ fFunc

void(* TCompiledHistograms::fFunc) (TRuntimeObjects &)
private

Definition at line 58 of file TCompiledHistograms.h.

Referenced by TCompiledHistograms(), Fill(), Fill(), and swap_lib().

◆ fFuncName

std::string TCompiledHistograms::fFuncName
private

Definition at line 53 of file TCompiledHistograms.h.

Referenced by TCompiledHistograms(), Reload(), and swap_lib().

◆ fGates

TList TCompiledHistograms::fGates
private

Definition at line 65 of file TCompiledHistograms.h.

Referenced by GetGates().

◆ fLastChecked

time_t TCompiledHistograms::fLastChecked {0}
private

Definition at line 60 of file TCompiledHistograms.h.

Referenced by TCompiledHistograms(), Fill(), Fill(), Reload(), and swap_lib().

◆ fLastModified

time_t TCompiledHistograms::fLastModified {0}
private

Definition at line 59 of file TCompiledHistograms.h.

Referenced by TCompiledHistograms(), Reload(), and swap_lib().

◆ fLibName

std::string TCompiledHistograms::fLibName
private

◆ fLibrary

std::shared_ptr<DynamicLibrary> TCompiledHistograms::fLibrary {nullptr}
private

Definition at line 55 of file TCompiledHistograms.h.

Referenced by TCompiledHistograms(), Fill(), Fill(), and swap_lib().

◆ fMutex

std::mutex TCompiledHistograms::fMutex
private

Definition at line 56 of file TCompiledHistograms.h.

Referenced by ClearHistograms(), Fill(), and Fill().

◆ fObj

TRuntimeObjects TCompiledHistograms::fObj
private

Definition at line 70 of file TCompiledHistograms.h.

Referenced by Fill(), and Fill().

◆ fObjects

TList TCompiledHistograms::fObjects
private

Definition at line 64 of file TCompiledHistograms.h.

Referenced by ClearHistograms(), GetObjects(), SetDefaultDirectory(), and Write().