ROOTTools
 
Loading...
Searching...
No Matches
ROOTTools::ThrObjHolder Namespace Reference

Functions

void Write ()
 Call this function to merge and write histograms in the current open TDirectory (i.e. gDirectory)
 
void Write (const std::string &outputFileName)
 Call this function to merge and write histograms in the specified file which will be overwritten if it already exists, otherwise it will be created.
 
std::shared_ptr< TH1F > AddHistogram (ROOT::TThreadedObject< TH1F > *hist, const std::string &directory)
 Not intended for user. Adds TH1F histogram to the corresponding container; this function is called in ThrObj constructor.
 
std::shared_ptr< TH2F > AddHistogram (ROOT::TThreadedObject< TH2F > *hist, const std::string &directory)
 Not intended for user. Adds TH2F histogram to the corresponding container; this function is called in ThrObj constructor.
 
std::shared_ptr< TH3F > AddHistogram (ROOT::TThreadedObject< TH3F > *hist, const std::string &directory)
 Not intended for user. Adds TH3F histogram to the corresponding container; this function is called in ThrObj constructor.
 
std::shared_ptr< TH1D > AddHistogram (ROOT::TThreadedObject< TH1D > *hist, const std::string &directory)
 Not intended for user. Adds TH1D histogram to the corresponding container; this function is called in ThrObj constructor.
 
std::shared_ptr< TH2D > AddHistogram (ROOT::TThreadedObject< TH2D > *hist, const std::string &directory)
 Not intended for user. Adds TH2D histogram to the corresponding container; this function is called in ThrObj constructor.
 
std::shared_ptr< TH3D > AddHistogram (ROOT::TThreadedObject< TH3D > *hist, const std::string &directory)
 Not intended for user. Adds TH3D histogram to the corresponding container; this function is called in ThrObj constructor.
 
std::shared_ptr< TH1L > AddHistogram (ROOT::TThreadedObject< TH1L > *hist, const std::string &directory)
 Not intended for user. Adds TH1L histogram to the corresponding container; this function is called in ThrObj constructor.
 
std::shared_ptr< TH2L > AddHistogram (ROOT::TThreadedObject< TH2L > *hist, const std::string &directory)
 Not intended for user. Adds TH2L histogram to the corresponding container; this function is called in ThrObj constructor.
 
std::shared_ptr< TH3L > AddHistogram (ROOT::TThreadedObject< TH3L > *hist, const std::string &directory)
 Not intended for user. Adds TH3L histogram to the corresponding container; this function is called in ThrObj constructo.
 
void Clear ()
 Not intended for user. Not intended for user. Clears containers with histogram after histograms were merged and written.
 
void AddTFileDirectory (const std::string &directory, const int thrObjIndex)
 Not intended for user. Adds index of ThrObj to the directory index. This function is called in AddHistogram function.
 

Variables

std::vector< std::unique_ptr< ROOT::TThreadedObject< TH1F > > > containerTH1F
 container for TH1F histograms
 
std::vector< std::unique_ptr< ROOT::TThreadedObject< TH2F > > > containerTH2F
 container for TH2F histograms
 
std::vector< std::unique_ptr< ROOT::TThreadedObject< TH3F > > > containerTH3F
 container for TH3F histograms
 
std::vector< std::unique_ptr< ROOT::TThreadedObject< TH1D > > > containerTH1D
 container for TH1D histograms
 
std::vector< std::unique_ptr< ROOT::TThreadedObject< TH2D > > > containerTH2D
 container for TH2D histograms
 
std::vector< std::unique_ptr< ROOT::TThreadedObject< TH3D > > > containerTH3D
 container for TH3D histograms
 
std::vector< std::unique_ptr< ROOT::TThreadedObject< TH1L > > > containerTH1L
 container for TH1L histograms
 
std::vector< std::unique_ptr< ROOT::TThreadedObject< TH2L > > > containerTH2L
 container for TH2L histograms
 
std::vector< std::unique_ptr< ROOT::TThreadedObject< TH3L > > > containerTH3L
 container for TH3L histograms
 
std::vector< std::string > containerTFileDir
 containers of TFile directory names
 
std::array< std::vector< int >, 9 > containerTFileDirIndex
 

Function Documentation

◆ AddHistogram() [1/9]

std::shared_ptr< TH1D > ROOTTools::ThrObjHolder::AddHistogram ( ROOT::TThreadedObject< TH1D > * hist,
const std::string & directory )

Not intended for user. Adds TH1D histogram to the corresponding container; this function is called in ThrObj constructor.

◆ AddHistogram() [2/9]

std::shared_ptr< TH1F > ROOTTools::ThrObjHolder::AddHistogram ( ROOT::TThreadedObject< TH1F > * hist,
const std::string & directory )

Not intended for user. Adds TH1F histogram to the corresponding container; this function is called in ThrObj constructor.

◆ AddHistogram() [3/9]

std::shared_ptr< TH1L > ROOTTools::ThrObjHolder::AddHistogram ( ROOT::TThreadedObject< TH1L > * hist,
const std::string & directory )

Not intended for user. Adds TH1L histogram to the corresponding container; this function is called in ThrObj constructor.

◆ AddHistogram() [4/9]

std::shared_ptr< TH2D > ROOTTools::ThrObjHolder::AddHistogram ( ROOT::TThreadedObject< TH2D > * hist,
const std::string & directory )

Not intended for user. Adds TH2D histogram to the corresponding container; this function is called in ThrObj constructor.

◆ AddHistogram() [5/9]

std::shared_ptr< TH2F > ROOTTools::ThrObjHolder::AddHistogram ( ROOT::TThreadedObject< TH2F > * hist,
const std::string & directory )

Not intended for user. Adds TH2F histogram to the corresponding container; this function is called in ThrObj constructor.

◆ AddHistogram() [6/9]

std::shared_ptr< TH2L > ROOTTools::ThrObjHolder::AddHistogram ( ROOT::TThreadedObject< TH2L > * hist,
const std::string & directory )

Not intended for user. Adds TH2L histogram to the corresponding container; this function is called in ThrObj constructor.

◆ AddHistogram() [7/9]

std::shared_ptr< TH3D > ROOTTools::ThrObjHolder::AddHistogram ( ROOT::TThreadedObject< TH3D > * hist,
const std::string & directory )

Not intended for user. Adds TH3D histogram to the corresponding container; this function is called in ThrObj constructor.

◆ AddHistogram() [8/9]

std::shared_ptr< TH3F > ROOTTools::ThrObjHolder::AddHistogram ( ROOT::TThreadedObject< TH3F > * hist,
const std::string & directory )

Not intended for user. Adds TH3F histogram to the corresponding container; this function is called in ThrObj constructor.

◆ AddHistogram() [9/9]

std::shared_ptr< TH3L > ROOTTools::ThrObjHolder::AddHistogram ( ROOT::TThreadedObject< TH3L > * hist,
const std::string & directory )

Not intended for user. Adds TH3L histogram to the corresponding container; this function is called in ThrObj constructo.

◆ AddTFileDirectory()

void ROOTTools::ThrObjHolder::AddTFileDirectory ( const std::string & directory,
const int thrObjIndex )

Not intended for user. Adds index of ThrObj to the directory index. This function is called in AddHistogram function.

◆ Clear()

void ROOTTools::ThrObjHolder::Clear ( )

Not intended for user. Not intended for user. Clears containers with histogram after histograms were merged and written.

◆ Write() [1/2]

void ROOTTools::ThrObjHolder::Write ( )

Call this function to merge and write histograms in the current open TDirectory (i.e. gDirectory)

◆ Write() [2/2]

void ROOTTools::ThrObjHolder::Write ( const std::string & outputFileName)

Call this function to merge and write histograms in the specified file which will be overwritten if it already exists, otherwise it will be created.

Parameters
[in]outputFileNamename of the output file

Variable Documentation

◆ containerTFileDir

std::vector<std::string> ROOTTools::ThrObjHolder::containerTFileDir

containers of TFile directory names

◆ containerTFileDirIndex

std::array<std::vector<int>, 9> ROOTTools::ThrObjHolder::containerTFileDirIndex

◆ containerTH1D

std::vector<std::unique_ptr<ROOT::TThreadedObject<TH1D> > > ROOTTools::ThrObjHolder::containerTH1D

container for TH1D histograms

◆ containerTH1F

std::vector<std::unique_ptr<ROOT::TThreadedObject<TH1F> > > ROOTTools::ThrObjHolder::containerTH1F

container for TH1F histograms

◆ containerTH1L

std::vector<std::unique_ptr<ROOT::TThreadedObject<TH1L> > > ROOTTools::ThrObjHolder::containerTH1L

container for TH1L histograms

◆ containerTH2D

std::vector<std::unique_ptr<ROOT::TThreadedObject<TH2D> > > ROOTTools::ThrObjHolder::containerTH2D

container for TH2D histograms

◆ containerTH2F

std::vector<std::unique_ptr<ROOT::TThreadedObject<TH2F> > > ROOTTools::ThrObjHolder::containerTH2F

container for TH2F histograms

◆ containerTH2L

std::vector<std::unique_ptr<ROOT::TThreadedObject<TH2L> > > ROOTTools::ThrObjHolder::containerTH2L

container for TH2L histograms

◆ containerTH3D

std::vector<std::unique_ptr<ROOT::TThreadedObject<TH3D> > > ROOTTools::ThrObjHolder::containerTH3D

container for TH3D histograms

◆ containerTH3F

std::vector<std::unique_ptr<ROOT::TThreadedObject<TH3F> > > ROOTTools::ThrObjHolder::containerTH3F

container for TH3F histograms

◆ containerTH3L

std::vector<std::unique_ptr<ROOT::TThreadedObject<TH3L> > > ROOTTools::ThrObjHolder::containerTH3L

container for TH3L histograms