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

Public Member Functions

 RootIOManager (TString name)
 
 RootIOManager (InputDataInfo *info)
 
void SetOutput (TString name)
 
void SetOutTreeName (TString name)
 
Int_t GetEntries () const
 
Int_t GetEntry (Int_t i, Int_t flag=1)
 
virtual void UpdateBranches ()
 
void LockUnusedBranches ()
 
void SetInChain (TChain *tempChain, Int_t ident=-1)
 
void FillTree ()
 
virtual void CloseManager ()
 
- Public Member Functions inherited from Hal::IOManager
 IOManager (InputDataInfo *info)
 
Bool_t Init ()
 
virtual void SetField (MagField *field)
 
virtual MagFieldGetField () const
 
void Register (const char *name, const char *folderName, TNamed *obj, Bool_t toFile)
 
void Register (const char *name, const char *Foldername, TCollection *obj, Bool_t toFile)
 
BranchInfo::EFlag GetBranchStatus (const char *BrName)
 
virtual TObject * GetObject (const char *BrName)
 
void ActivateBranch (TString brName)
 
TString GetSourceName () const
 
std::vector< TString > GetBranchNameList ()
 
void PrintInfo ()
 
virtual TList * GetBranchesList () const
 
Int_t GetNFiles () const
 
std::vector< TString > GetFilesNames (Int_t entry=0) const
 
Int_t GetFriendsLevel () const
 
void AddFile (TString name)
 
void AddFriend (TString friendName, Int_t level)
 
TString GetFirstDataFileName () const
 
TString GetFirstFriendFileName (Int_t level) const
 
std::vector< TString > GetFileNameList (Int_t level) const
 

Static Public Member Functions

static std::vector< TString > GetListOfBranches (TChain *chain, Bool_t friends)
 

Protected Member Functions

void PushTObject (TObject **obj)
 
virtual void RegisterInternal (const char *name, const char *folderName, TNamed *obj, Bool_t toFile)
 
virtual void RegisterInternal (const char *name, const char *Foldername, TCollection *obj, Bool_t toFile)
 
TChain * GetInChain ()
 
virtual Bool_t InitInternal ()
 
- Protected Member Functions inherited from Hal::IOManager
void AddBranch (TString name, TObject *object, BranchInfo::EFlag flag)
 
BranchInfo FindBranch (TString name) const
 

Additional Inherited Members

- Protected Attributes inherited from Hal::IOManager
InputDataInfofDataInfo = {nullptr}
 
std::vector< Hal::BranchInfofBranches
 

Detailed Description

Definition at line 26 of file RootIOManager.h.

Constructor & Destructor Documentation

◆ RootIOManager() [1/2]

Hal::RootIOManager::RootIOManager ( TString name)
Parameters
namefile with data do not use this constructor

Definition at line 35 of file RootIOManager.cxx.

◆ RootIOManager() [2/2]

Hal::RootIOManager::RootIOManager ( InputDataInfo * info)

main constructor

Parameters
info

Definition at line 37 of file RootIOManager.cxx.

◆ ~RootIOManager()

Hal::RootIOManager::~RootIOManager ( )
virtual

Definition at line 50 of file RootIOManager.cxx.

Member Function Documentation

◆ CloseManager()

void Hal::RootIOManager::CloseManager ( )
virtual

close manager (close root file, write the tree with data)

Reimplemented from Hal::IOManager.

Definition at line 94 of file RootIOManager.cxx.

◆ FillTree()

void Hal::RootIOManager::FillTree ( )
virtual

fill tree with data

Implements Hal::IOManager.

Definition at line 92 of file RootIOManager.cxx.

◆ GetEntries()

Int_t Hal::RootIOManager::GetEntries ( ) const
virtual
Returns
number of entries in file

Implements Hal::IOManager.

Definition at line 48 of file RootIOManager.cxx.

◆ GetEntry()

Int_t Hal::RootIOManager::GetEntry ( Int_t i,
Int_t flag = 1 )
virtual

get entry from input root file

Parameters
i
flag- flag
Returns

Implements Hal::IOManager.

Definition at line 99 of file RootIOManager.cxx.

◆ GetInChain()

TChain * Hal::RootIOManager::GetInChain ( )
inlineprotected

Definition at line 42 of file RootIOManager.h.

◆ GetListOfBranches()

std::vector< TString > Hal::RootIOManager::GetListOfBranches ( TChain * chain,
Bool_t friends )
static

return list of branches in chain (for some reason root doesn't check the friend chains

Parameters
chain
friendsif true return friend's branches
Returns

Definition at line 115 of file RootIOManager.cxx.

◆ InitInternal()

Bool_t Hal::RootIOManager::InitInternal ( )
protectedvirtual

Implements Hal::IOManager.

Definition at line 39 of file RootIOManager.cxx.

◆ LockUnusedBranches()

void Hal::RootIOManager::LockUnusedBranches ( )
virtual

set to 0 status of unused branches

Reimplemented from Hal::IOManager.

Definition at line 106 of file RootIOManager.cxx.

◆ PushTObject()

void Hal::RootIOManager::PushTObject ( TObject ** obj)
protected

add object to branches

Definition at line 104 of file RootIOManager.cxx.

◆ RegisterInternal() [1/2]

void Hal::RootIOManager::RegisterInternal ( const char * name,
const char * Foldername,
TCollection * obj,
Bool_t toFile )
protectedvirtual

internal function for data registering

Parameters
name
Foldername
obj
toFile

Implements Hal::IOManager.

Definition at line 86 of file RootIOManager.cxx.

◆ RegisterInternal() [2/2]

void Hal::RootIOManager::RegisterInternal ( const char * name,
const char * folderName,
TNamed * obj,
Bool_t toFile )
protectedvirtual

Internal function for data registering

Parameters
name
folderName
obj
toFile

Implements Hal::IOManager.

Definition at line 82 of file RootIOManager.cxx.

◆ SetInChain()

void Hal::RootIOManager::SetInChain ( TChain * tempChain,
Int_t ident = -1 )
virtual

not used

Parameters
tempChain
ident

Implements Hal::IOManager.

Definition at line 90 of file RootIOManager.cxx.

◆ SetOutput()

void Hal::RootIOManager::SetOutput ( TString name)
inlinevirtual

set name of the output file

Parameters
name

Reimplemented from Hal::IOManager.

Definition at line 60 of file RootIOManager.h.

◆ SetOutTreeName()

void Hal::RootIOManager::SetOutTreeName ( TString name)
inline

set name of the output tree

Definition at line 64 of file RootIOManager.h.

◆ UpdateBranches()

void Hal::RootIOManager::UpdateBranches ( )
virtual

not used

Reimplemented from Hal::IOManager.

Definition at line 58 of file RootIOManager.cxx.


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