er  dev
Public Member Functions | Protected Attributes | List of all members
ERCalibrationSSD::IOManager Class Reference
Inheritance diagram for ERCalibrationSSD::IOManager:
Inheritance graph
[legend]

Public Member Functions

 IOManager (const TString &workdir)=delete
 
TFile * CreateRootFile (const TString &filePath)
 Creates output ROOT-file Creates a file and all the needed subdirectories. More...
 
TFile * OpenRootFile (const TString &filePath)
 Opens ROOT file. More...
 
std::ofstream CreateTextFile (const TString &filePath)
 Creates output text file Creates a file and all the needed subdirectories. More...
 
std::ifstream OpenTextFile (const TString &filePath)
 Opens output text file. More...
 
void Write (const TObjArray *arr)
 Serilizes list of objects to a current opened ROOT file directory. More...
 
void Write (TObject *obj)
 Serilizes an object to a current opened ROOT file directory. More...
 
void MakeDir (const TString &dirname)
 Creates directory in a current working directory. More...
 
void ChangeDir (const TString &dirname)
 Changes working directory. More...
 

Protected Attributes

TString fWorkDir = "."
 
Bool_t fRecreate = true
 

Detailed Description

Definition at line 436 of file ERCalibrationSSD.cxx.

Member Function Documentation

void ERCalibrationSSD::IOManager::ChangeDir ( const TString &  dirname)

Changes working directory.

Parameters
dirnamesubdirectory name

Definition at line 575 of file ERCalibrationSSD.cxx.

TFile * ERCalibrationSSD::IOManager::CreateRootFile ( const TString &  filePath)

Creates output ROOT-file Creates a file and all the needed subdirectories.

Parameters
filePath- path to a file. Return pointer to a new Root file.

Definition at line 498 of file ERCalibrationSSD.cxx.

std::ofstream ERCalibrationSSD::IOManager::CreateTextFile ( const TString &  filePath)

Creates output text file Creates a file and all the needed subdirectories.

Parameters
filePathpath to a file

Definition at line 518 of file ERCalibrationSSD.cxx.

void ERCalibrationSSD::IOManager::MakeDir ( const TString &  dirname)

Creates directory in a current working directory.

Parameters
dirnamesubdirectory to create name

Definition at line 557 of file ERCalibrationSSD.cxx.

TFile * ERCalibrationSSD::IOManager::OpenRootFile ( const TString &  filePath)

Opens ROOT file.

Parameters
filePathpath to a file

Definition at line 510 of file ERCalibrationSSD.cxx.

std::ifstream ERCalibrationSSD::IOManager::OpenTextFile ( const TString &  filePath)

Opens output text file.

Parameters
filePathpath to a file

Definition at line 530 of file ERCalibrationSSD.cxx.

void ERCalibrationSSD::IOManager::Write ( const TObjArray *  arr)

Serilizes list of objects to a current opened ROOT file directory.

Parameters
arrlist of objects

Definition at line 539 of file ERCalibrationSSD.cxx.

void ERCalibrationSSD::IOManager::Write ( TObject *  obj)

Serilizes an object to a current opened ROOT file directory.

Parameters
objobject to serialize

Definition at line 550 of file ERCalibrationSSD.cxx.


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