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

Public Member Functions

 IOManager (TString name="root_virtual.root", HalOTF::Source *source=nullptr, Int_t entries=1)
 
void SetOutput (TString name)
 
void SetOutTreeName (TString name)
 
Int_t GetEntries () const
 
Int_t GetEntry (Int_t i, Int_t flag)
 
TFile * GetInFile ()
 
void AddFriend (TString)
 
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)
 
virtual void UpdateBranches ()
 
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)
 
virtual void LockUnusedBranches ()
 
TString GetFirstDataFileName () const
 
TString GetFirstFriendFileName (Int_t level) const
 
std::vector< TString > GetFileNameList (Int_t level) const
 

Protected Member Functions

void RegisterInternal (const char *name, const char *folderName, TNamed *obj, Bool_t toFile)
 
void RegisterInternal (const char *name, const char *Foldername, TCollection *obj, Bool_t toFile)
 
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 22 of file OTFIOManager.h.

Constructor & Destructor Documentation

◆ IOManager()

HalOTF::IOManager::IOManager ( TString name = "root_virtual.root",
HalOTF::Source * source = nullptr,
Int_t entries = 1 )

Definition at line 27 of file OTFIOManager.cxx.

◆ ~IOManager()

HalOTF::IOManager::~IOManager ( )
virtual

Reimplemented from Hal::IOManager.

Definition at line 49 of file OTFIOManager.cxx.

Member Function Documentation

◆ AddFriend()

void HalOTF::IOManager::AddFriend ( TString )
inline

Definition at line 44 of file OTFIOManager.h.

◆ CloseManager()

void HalOTF::IOManager::CloseManager ( )
virtual

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

Reimplemented from Hal::IOManager.

Definition at line 77 of file OTFIOManager.cxx.

◆ FillTree()

void HalOTF::IOManager::FillTree ( )
virtual

fill tree with data

Implements Hal::IOManager.

Definition at line 75 of file OTFIOManager.cxx.

◆ GetEntries()

Int_t HalOTF::IOManager::GetEntries ( ) const
virtual
Returns
number of entries in data

Implements Hal::IOManager.

Definition at line 47 of file OTFIOManager.cxx.

◆ GetEntry()

Int_t HalOTF::IOManager::GetEntry ( Int_t i,
Int_t flag )
virtual

get entry from data

Parameters
ientry number
flagentry flag if 1 get all branches
Returns

Implements Hal::IOManager.

Definition at line 67 of file OTFIOManager.cxx.

◆ GetInFile()

TFile * HalOTF::IOManager::GetInFile ( )

Definition at line 55 of file OTFIOManager.cxx.

◆ InitInternal()

Bool_t HalOTF::IOManager::InitInternal ( )
protectedvirtual

Implements Hal::IOManager.

Definition at line 37 of file OTFIOManager.cxx.

◆ RegisterInternal() [1/2]

void HalOTF::IOManager::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 61 of file OTFIOManager.cxx.

◆ RegisterInternal() [2/2]

void HalOTF::IOManager::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 57 of file OTFIOManager.cxx.

◆ SetInChain()

void HalOTF::IOManager::SetInChain ( TChain * tempChain,
Int_t ident = -1 )
virtual

not used

Parameters
tempChain
ident

Implements Hal::IOManager.

Definition at line 65 of file OTFIOManager.cxx.

◆ SetOutput()

void HalOTF::IOManager::SetOutput ( TString )
inlinevirtual

set name of the output file

Parameters
name

Reimplemented from Hal::IOManager.

Definition at line 39 of file OTFIOManager.h.

◆ SetOutTreeName()

void HalOTF::IOManager::SetOutTreeName ( TString name)
inline

Definition at line 40 of file OTFIOManager.h.


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