![]() |
The Gaudi Framework
v32r2 (46d42edc)
|
Classes | |
union | uuid_data |
Public Member Functions | |
RootDatabaseMerger () | |
Standard constructor. More... | |
virtual | ~RootDatabaseMerger () |
Default destructor. More... | |
bool | exists (const std::string &fid) const |
Check if a database exists. More... | |
MergeStatus | create (const std::string &fid) |
Create new output file. More... | |
MergeStatus | attach (const std::string &fid) |
Attach to existing output file for further merging. More... | |
MergeStatus | close () |
Close output file. More... | |
MergeStatus | merge (const std::string &fid) |
Merge new input to existing output. More... | |
void | dumpSections () |
Dump collected database sections. More... | |
MergeStatus | saveSections () |
Save new sections to the output file. More... | |
MergeStatus | createFID () |
Create and add new FID to the newly merged file. More... | |
MergeStatus | copyAllTrees (TFile *source) |
Copy all data trees from the input file to the output file. More... | |
MergeStatus | copyTree (TFile *source, const std::string &name) |
Copy one single tree from the input file to the output file. More... | |
MergeStatus | copyBranch (TTree *src_tree, TTree *out_tree, const std::string &name) |
Copy single reference branch. More... | |
MergeStatus | copyRefs (TFile *source, const std::string &name) |
Copy one single tree from the input file to the output file. More... | |
MergeStatus | addSections (TTree *in, TTree *out) |
Add section information for the next merge step. More... | |
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.
MergeStatus RootDatabaseMerger::attach | ( | const std::string & | fid | ) |
Attach to existing output file for further merging.
Definition at line 124 of file merge.C.
MergeStatus RootDatabaseMerger::close | ( | ) |
Close output file.
Definition at line 197 of file merge.C.
MergeStatus RootDatabaseMerger::copyAllTrees | ( | TFile * | source | ) |
Copy all data trees from the input file to the output file.
Definition at line 336 of file merge.C.
MergeStatus RootDatabaseMerger::copyBranch | ( | TTree * | src_tree, |
TTree * | out_tree, | ||
const std::string & | name | ||
) |
Copy single reference branch.
Definition at line 319 of file merge.C.
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 403 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 359 of file merge.C.
MergeStatus RootDatabaseMerger::create | ( | const std::string & | fid | ) |
Create new output file.
Definition at line 144 of file merge.C.
MergeStatus RootDatabaseMerger::createFID | ( | ) |
Create and add new FID to the newly merged file.
Close output file.
Definition at line 171 of file merge.C.
void RootDatabaseMerger::dumpSections | ( | ) |
bool RootDatabaseMerger::exists | ( | const std::string & | fid | ) | const |
MergeStatus RootDatabaseMerger::merge | ( | const std::string & | fid | ) |
Merge new input to existing output.
Definition at line 269 of file merge.C.
MergeStatus RootDatabaseMerger::saveSections | ( | ) |
Save new sections to the output file.
Definition at line 211 of file merge.C.
|
private |
|
private |
|
private |