Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
Hal::InputRootDataInfo Class Reference

#include <InputDataInfo.h>

Inheritance diagram for Hal::InputRootDataInfo:
Hal::InputDataInfo

Public Member Functions

 InputRootDataInfo (TString file="data.root", TString treename="")
 
 InputRootDataInfo (std::initializer_list< TString > fileLists, std::initializer_list< TString > treeNames={})
 
 InputRootDataInfo (std::vector< std::vector< TString > > files)
 
TChain * GetChain ()
 
virtual void Print (Option_t *option="") const
 
- Public Member Functions inherited from Hal::InputDataInfo
 InputDataInfo (TString file="data.root")
 
 InputDataInfo (std::initializer_list< TString > fileLists)
 
 InputDataInfo (std::vector< std::vector< TString > > files)
 
TString GetSafeFile (Int_t level, Int_t entry) const
 
std::vector< TString > GetSafeFiles (Int_t level) const
 
void AddFile (TString file)
 
void AddFriend (TString file, Int_t level)
 
void OverwriteSourceName (TString name)
 
Int_t GetNFiles () const
 
Int_t GetFriendsLevel () const
 
TString GetSourceName () const
 
std::vector< std::vector< TString > > GetListOfFiles () const
 
 ClassDef (InputDataInfo, 1)
 

Additional Inherited Members

- Protected Attributes inherited from Hal::InputDataInfo
std::vector< std::vector< TString > > fFileNames
 
TString fListName
 

Detailed Description

class for storing information about input root trees, contains also information about tree names

Definition at line 73 of file InputDataInfo.h.

Constructor & Destructor Documentation

◆ InputRootDataInfo() [1/3]

Hal::InputRootDataInfo::InputRootDataInfo ( TString file = "data.root",
TString treename = "" )

default ctor

Parameters
filesingle root file, or list of root files (.list extension) or xml file (.xml extension)
treenametree name if, empty, try to find a tree

Definition at line 117 of file InputDataInfo.cxx.

◆ InputRootDataInfo() [2/3]

Hal::InputRootDataInfo::InputRootDataInfo ( std::initializer_list< TString > fileLists,
std::initializer_list< TString > treeNames = {} )
Parameters
fileListslist of files with lists
treeNameslist of tree names

Definition at line 135 of file InputDataInfo.cxx.

◆ InputRootDataInfo() [3/3]

Hal::InputRootDataInfo::InputRootDataInfo ( std::vector< std::vector< TString > > files)
Parameters
filesdirect list of files vec[0] = list of main root files vec[1] - list of friends etc.

Definition at line 140 of file InputDataInfo.cxx.

Member Function Documentation

◆ GetChain()

TChain * Hal::InputRootDataInfo::GetChain ( )
Returns
TChain with data, works only with root files

Definition at line 142 of file InputDataInfo.cxx.

◆ Print()

void Hal::InputRootDataInfo::Print ( Option_t * option = "") const
virtual

Reimplemented from Hal::InputDataInfo.

Definition at line 191 of file InputDataInfo.cxx.


The documentation for this class was generated from the following files: