Provide fast access to ROOT objects inside a TFile.
More...
#include "NAGASH/TFileHelper.h"
|
| | TFileHelper (std::shared_ptr< MSGTool > msg, const std::string &name) |
| | Constructor.
|
| |
| virtual | ~TFileHelper () |
| | Destructor.
|
| |
| void | Close () |
| | Close the ROOT file.
|
| |
| TH1 * | Get (const std::string &name) |
| | Get TH1 object.
|
| |
| const std::vector< std::string > & | GetListOfHistNames () |
| | Get a vector stores the list of the names of histogram.
|
| |
| TGraph * | GetTGraph (const std::string &name) |
| | Get TGraph object.
|
| |
| TTree * | GetTree (const std::string &name) |
| | Get TTree object.
|
| |
Provide fast access to ROOT objects inside a TFile.
Definition at line 18 of file TFileHelper.h.
◆ TFileHelper()
| NAGASH::TFileHelper::TFileHelper |
( |
std::shared_ptr< MSGTool > |
msg, |
|
|
const std::string & |
name |
|
) |
| |
|
inline |
Constructor.
- Parameters
-
| msg | input MSGTool. |
| name | name of the ROOT file. |
Definition at line 24 of file TFileHelper.h.
◆ ~TFileHelper()
| virtual NAGASH::TFileHelper::~TFileHelper |
( |
| ) |
|
|
inlinevirtual |
◆ Close()
| void NAGASH::TFileHelper::Close |
( |
| ) |
|
|
inline |
◆ Get()
| TH1 * NAGASH::TFileHelper::Get |
( |
const std::string & |
name | ) |
|
|
inline |
Get TH1 object.
- Parameters
-
| name | name of the TH1 object. |
Definition at line 80 of file TFileHelper.h.
◆ GetListOfHistNames()
| const std::vector< std::string > & NAGASH::TFileHelper::GetListOfHistNames |
( |
| ) |
|
|
inline |
Get a vector stores the list of the names of histogram.
- Returns
Definition at line 170 of file TFileHelper.h.
◆ GetTGraph()
| TGraph * NAGASH::TFileHelper::GetTGraph |
( |
const std::string & |
name | ) |
|
|
inline |
Get TGraph object.
- Parameters
-
| name | name of the TGraph object |
Definition at line 129 of file TFileHelper.h.
◆ GetTree()
| TTree * NAGASH::TFileHelper::GetTree |
( |
const std::string & |
name | ) |
|
|
inline |
Get TTree object.
- Parameters
-
| name | name of the TTree object. |
Definition at line 104 of file TFileHelper.h.
◆ histnames
| std::vector<std::string> NAGASH::TFileHelper::histnames |
|
private |
◆ infile
| TFile* NAGASH::TFileHelper::infile = nullptr |
|
private |
◆ isopen
| bool NAGASH::TFileHelper::isopen = false |
|
private |
◆ map_name_graph
| std::map<std::string, TKey *> NAGASH::TFileHelper::map_name_graph |
|
private |
◆ map_name_hist
| std::map<std::string, TKey *> NAGASH::TFileHelper::map_name_hist |
|
private |
◆ map_name_tree
| std::map<std::string, TKey *> NAGASH::TFileHelper::map_name_tree |
|
private |
The documentation for this class was generated from the following file: