Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
Hal::InputDataInfo Class Reference
Inheritance diagram for Hal::InputDataInfo:
Hal::InputRootDataInfo

Public Member Functions

 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)
 
virtual void Print (Option_t *option="") const
 
Int_t GetNFiles () const
 
Int_t GetFriendsLevel () const
 
TString GetSourceName () const
 
std::vector< std::vector< TString > > GetListOfFiles () const
 
 ClassDef (InputDataInfo, 1)
 

Protected Attributes

std::vector< std::vector< TString > > fFileNames
 
TString fListName
 

Detailed Description

Definition at line 22 of file InputDataInfo.h.

Constructor & Destructor Documentation

◆ InputDataInfo() [1/3]

Hal::InputDataInfo::InputDataInfo ( TString file = "data.root")

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 30 of file InputDataInfo.cxx.

◆ InputDataInfo() [2/3]

Hal::InputDataInfo::InputDataInfo ( std::initializer_list< TString > fileLists)
Parameters
fileListslist of files with lists
treeNameslist of tree names

Definition at line 51 of file InputDataInfo.cxx.

◆ InputDataInfo() [3/3]

Hal::InputDataInfo::InputDataInfo ( 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 58 of file InputDataInfo.cxx.

◆ ~InputDataInfo()

virtual Hal::InputDataInfo::~InputDataInfo ( )
inlinevirtual

Definition at line 66 of file InputDataInfo.h.

Member Function Documentation

◆ AddFile()

void Hal::InputDataInfo::AddFile ( TString file)

Definition at line 75 of file InputDataInfo.cxx.

◆ AddFriend()

void Hal::InputDataInfo::AddFriend ( TString file,
Int_t level )

Definition at line 77 of file InputDataInfo.cxx.

◆ GetFriendsLevel()

Int_t Hal::InputDataInfo::GetFriendsLevel ( ) const

Definition at line 87 of file InputDataInfo.cxx.

◆ GetListOfFiles()

std::vector< std::vector< TString > > Hal::InputDataInfo::GetListOfFiles ( ) const
inline

Definition at line 65 of file InputDataInfo.h.

◆ GetNFiles()

Int_t Hal::InputDataInfo::GetNFiles ( ) const

Definition at line 82 of file InputDataInfo.cxx.

◆ GetSafeFile()

TString Hal::InputDataInfo::GetSafeFile ( Int_t level,
Int_t entry ) const

return name of the file

Parameters
level= level of file, -1 for main file
posJ
Returns

Definition at line 63 of file InputDataInfo.cxx.

◆ GetSafeFiles()

std::vector< TString > Hal::InputDataInfo::GetSafeFiles ( Int_t level) const
Parameters
leveldepth -1 for main file
Returns

Definition at line 70 of file InputDataInfo.cxx.

◆ GetSourceName()

TString Hal::InputDataInfo::GetSourceName ( ) const
inline

Definition at line 64 of file InputDataInfo.h.

◆ OverwriteSourceName()

void Hal::InputDataInfo::OverwriteSourceName ( TString name)
inline

Definition at line 60 of file InputDataInfo.h.

◆ Print()

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

Definition at line 161 of file InputDataInfo.cxx.

Member Data Documentation

◆ fFileNames

std::vector<std::vector<TString> > Hal::InputDataInfo::fFileNames
protected

Definition at line 24 of file InputDataInfo.h.

◆ fListName

TString Hal::InputDataInfo::fListName
protected

Definition at line 25 of file InputDataInfo.h.


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