![]() |
The Gaudi Framework
master (ff829712)
|
Classes | |
union | uuid_data |
Public Member Functions | |
RootDatabaseMerger () | |
Standard constructor. | |
virtual | ~RootDatabaseMerger () |
Default destructor. | |
bool | exists (const std::string &fid) const |
Check if a database exists. | |
MergeStatus | create (const std::string &fid) |
Create new output file. | |
MergeStatus | attach (const std::string &fid) |
Attach to existing output file for further merging. | |
MergeStatus | close () |
Close output file. | |
MergeStatus | merge (const std::string &fid) |
Merge new input to existing output. | |
void | dumpSections () |
Dump collected database sections. | |
MergeStatus | saveSections () |
Save new sections to the output file. | |
MergeStatus | createFID () |
Create and add new FID to the newly merged file. | |
MergeStatus | copyAllTrees (TFile *source) |
Copy all data trees from the input file to the output file. | |
MergeStatus | copyTree (TFile *source, const std::string &name) |
Copy one single tree from the input file to the output file. | |
MergeStatus | copyBranch (TTree *src_tree, TTree *out_tree, const std::string &name) |
Copy single reference branch. | |
MergeStatus | copyRefs (TFile *source, const std::string &name) |
Copy one single tree from the input file to the output file. | |
MergeStatus | addSections (TTree *in, TTree *out) |
Add section information for the next merge step. | |
Private Types | |
typedef std::vector< ContainerSection > | ContainerSections |
typedef std::map< std::string, ContainerSections > | DatabaseSections |
Private Attributes | |
DatabaseSections | m_sections |
std::unique_ptr< TFile > | m_output |
bool | m_treeSections = false |
|
private |
|
private |
|
default |
Standard constructor.
|
virtual |
MergeStatus RootDatabaseMerger::addSections | ( | TTree * | in, |
TTree * | out ) |
Add section information for the next merge step.
Definition at line 289 of file merge.C.
MergeStatus RootDatabaseMerger::attach | ( | const std::string & | fid | ) |
Attach to existing output file for further merging.
Definition at line 121 of file merge.C.
MergeStatus RootDatabaseMerger::close | ( | ) |
Close output file.
MergeStatus RootDatabaseMerger::copyAllTrees | ( | TFile * | source | ) |
Copy all data trees from the input file to the output file.
Definition at line 333 of file merge.C.
MergeStatus RootDatabaseMerger::copyBranch | ( | TTree * | src_tree, |
TTree * | out_tree, | ||
const std::string & | name ) |
Copy single reference branch.
MergeStatus RootDatabaseMerger::copyRefs | ( | TFile * | source, |
const std::string & | name ) |
Copy one single tree from the input file to the output file.
Copy refs of one single tree from the input file to the output file.
Definition at line 400 of file merge.C.
MergeStatus RootDatabaseMerger::copyTree | ( | TFile * | source, |
const std::string & | name ) |
Copy one single tree from the input file to the output file.
Definition at line 356 of file merge.C.
MergeStatus RootDatabaseMerger::create | ( | const std::string & | fid | ) |
Create new output file.
Definition at line 141 of file merge.C.
MergeStatus RootDatabaseMerger::createFID | ( | ) |
Create and add new FID to the newly merged file.
Close output file.
Definition at line 168 of file merge.C.
void RootDatabaseMerger::dumpSections | ( | ) |
Dump collected database sections.
Definition at line 251 of file merge.C.
bool RootDatabaseMerger::exists | ( | const std::string & | fid | ) | const |
MergeStatus RootDatabaseMerger::merge | ( | const std::string & | fid | ) |
Merge new input to existing output.
Definition at line 266 of file merge.C.
MergeStatus RootDatabaseMerger::saveSections | ( | ) |
Save new sections to the output file.
Definition at line 208 of file merge.C.
|
private |
|
private |
|
private |