Chain ROOT trees in a list of files defined by a file pattern.
More...
#include <Chain.h>
|
void | AddFile (const string aPattern) |
| Adds files to the chain. More...
|
|
string | GetFilePath (const unsigned int aFileIndex) |
| Returns the file path of a given ROOT file. More...
|
|
string | GetInputFilePattern (void) |
| Returns the input file pattern provided in the constructor. More...
|
|
unsigned int | GetN (void) |
| Returns the number of ROOT files where the designated tree was found. More...
|
|
|
| Chain (const string aChainName, const string aPattern, const bool aVerbose=false) |
| Constructor of the Chain class. More...
|
|
virtual | ~Chain (void) |
| Destructor of the Chain class. More...
|
|
|
void | ChainPOSIX (const string aRootFilePattern) |
| Constructor for POSIX files. More...
|
|
void | ChainXROOTD (const vector< string > aRootFiles) |
| Constructor for Xrootd files. More...
|
|
Chain ROOT trees in a list of files defined by a file pattern.
This class inherits from the TChain class from ROOT. Only the constructor was modified and a few functions was added.
- Author
- Florent Robinet
◆ Chain()
Chain::Chain |
( |
const string |
aChainName, |
|
|
const string |
aPattern, |
|
|
const bool |
aVerbose = false |
|
) |
| |
Constructor of the Chain class.
- Parameters
-
[in] | aChainName | TTree name to be found in the ROOT files. |
[in] | aPattern | File pattern. Any unix-type patterns is supported (list of files separated by spaces, *, ?) |
[in] | aVerbose | Flag to activate the verbosity. |
◆ ~Chain()
Destructor of the Chain class.
◆ AddFile()
void Chain::AddFile |
( |
const string |
aPattern | ) |
|
Adds files to the chain.
The TTrees named 'aChainName' found in 'aPattern' are added at the end of the chain.
- Parameters
-
[in] | aPattern | File pattern. Any unix-type patterns is supported (list of files separated by spaces, *, ?) |
◆ ChainPOSIX()
void Chain::ChainPOSIX |
( |
const string |
aRootFilePattern | ) |
|
|
private |
Constructor for POSIX files.
- Parameters
-
[in] | aRootFilePattern | ROOT files pattern. |
◆ ChainXROOTD()
void Chain::ChainXROOTD |
( |
const vector< string > |
aRootFiles | ) |
|
|
private |
Constructor for Xrootd files.
- Parameters
-
[in] | aRootFiles | List of root files |
◆ GetFilePath()
string Chain::GetFilePath |
( |
const unsigned int |
aFileIndex | ) |
|
|
inline |
Returns the file path of a given ROOT file.
- Parameters
-
[in] | aFileIndex | File index. |
- Precondition
- the file index must be valid
- See also
- GetN()
◆ GetInputFilePattern()
string Chain::GetInputFilePattern |
( |
void |
| ) |
|
|
inline |
Returns the input file pattern provided in the constructor.
◆ GetN()
unsigned int Chain::GetN |
( |
void |
| ) |
|
|
inline |
Returns the number of ROOT files where the designated tree was found.
◆ fchainname
◆ fverbose
◆ rootfilename
vector<string> Chain::rootfilename |
|
private |
◆ spattern
The documentation for this class was generated from the following files: