BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
merge.C File Reference
#include "TChain.h"
#include "TChainElement.h"
#include "TClass.h"
#include "TDirectory.h"
#include "TFile.h"
#include "TFileMerger.h"
#include "TKey.h"
#include "TObjArray.h"
#include "TSystem.h"
#include "TTree.h"
#include <cstdio>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
Include dependency graph for merge.C:

Go to the source code of this file.

Functions

vector< TString > split_file_list (const char *pcFileList)
TString find_tree_name_in_directory (TDirectory *directory, const TString &prefix="")
TString find_tree_name_in_file (const TString &fileName)
TString detect_tree_name_from_partial_files (const vector< TString > &files)
bool file_contains_tree (const TString &fileName, const TString &treeName)
void merge (const char *pcFileList, int mode=1)

Function Documentation

◆ detect_tree_name_from_partial_files()

TString detect_tree_name_from_partial_files ( const vector< TString > & files)

Definition at line 104 of file merge.C.

References find_tree_name_in_file(), i, and TString::Length().

Referenced by merge().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ file_contains_tree()

bool file_contains_tree ( const TString & fileName,
const TString & treeName )

Definition at line 122 of file merge.C.

References TTree::Class(), TFile::Close(), TDirectoryFile::Get(), TObject::InheritsFrom(), TObject::IsZombie(), and TFile::Open().

Referenced by merge().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ find_tree_name_in_directory()

TString find_tree_name_in_directory ( TDirectory * directory,
const TString & prefix = "" )

Definition at line 50 of file merge.C.

References TDirectory::Class(), TTree::Class(), find_tree_name_in_directory(), TClass::GetClass(), TDirectory::GetListOfKeys(), TClass::InheritsFrom(), and TString::Length().

Referenced by find_tree_name_in_directory(), and find_tree_name_in_file().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ find_tree_name_in_file()

TString find_tree_name_in_file ( const TString & fileName)

Definition at line 82 of file merge.C.

References TFile::Close(), find_tree_name_in_directory(), TObject::IsZombie(), and TFile::Open().

Referenced by detect_tree_name_from_partial_files().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ merge()

◆ split_file_list()

vector< TString > split_file_list ( const char * pcFileList)

Definition at line 33 of file merge.C.

Referenced by merge().

Here is the caller graph for this function: