KaliVeda
Toolkit for HIC analysis
Loading...
Searching...
No Matches
KVRunListCreator Class Reference

Detailed Description

Set up a list of runs from a directory containing data files.

Definition at line 14 of file KVRunListCreator.h.

#include <KVRunListCreator.h>

Public Member Functions

 KVRunListCreator (const TString &dir, const TString &datatype="", const TString &fmt="")
 
virtual ~KVRunListCreator ()
 
const Char_tGetFileFormat ()
 
const Char_tGetRunDir ()
 
const KVUniqueNameListGetRunInfos () const
 
Int_t ScanDirectory ()
 Return number of runs found.
 
void SetFileFormat (const Char_t *fmt)
 
void SetRunDir (const Char_t *dir)
 

Private Attributes

TString fDataType
 type of data (KVRawDataReader plugin name)
 
TString fFileFormat
 format string for run file names
 
std::unique_ptr< KVRawDataReaderfReader
 
KVUniqueNameList fRunInfos
 
TString fRunSheetDir
 full path to directory holding runs
 

Constructor & Destructor Documentation

◆ KVRunListCreator()

KVRunListCreator::KVRunListCreator ( const TString dir,
const TString datatype = "",
const TString fmt = "" 
)

Give directory to scan, optional format for runfile names "datatype" should correspond to a known plugin for reading raw data files, see available plugins for KVRawDataReader (output of method KVBase::GetListOfPluginURIs("KVRawDataReader"))

Definition at line 16 of file KVRunListCreator.cpp.

◆ ~KVRunListCreator()

virtual KVRunListCreator::~KVRunListCreator ( )
inlinevirtual

Definition at line 26 of file KVRunListCreator.h.

Member Function Documentation

◆ GetFileFormat()

const Char_t * KVRunListCreator::GetFileFormat ( )
inline

Definition at line 36 of file KVRunListCreator.h.

◆ GetRunDir()

const Char_t * KVRunListCreator::GetRunDir ( )
inline

Definition at line 28 of file KVRunListCreator.h.

◆ GetRunInfos()

const KVUniqueNameList & KVRunListCreator::GetRunInfos ( ) const
inline

Definition at line 45 of file KVRunListCreator.h.

◆ ScanDirectory()

Int_t KVRunListCreator::ScanDirectory ( )

Return number of runs found.

Definition at line 38 of file KVRunListCreator.cpp.

◆ SetFileFormat()

void KVRunListCreator::SetFileFormat ( const Char_t fmt)
inline

Definition at line 40 of file KVRunListCreator.h.

◆ SetRunDir()

void KVRunListCreator::SetRunDir ( const Char_t dir)
inline

Definition at line 32 of file KVRunListCreator.h.

Member Data Documentation

◆ fDataType

TString KVRunListCreator::fDataType
private

type of data (KVRawDataReader plugin name)

Definition at line 18 of file KVRunListCreator.h.

◆ fFileFormat

TString KVRunListCreator::fFileFormat
private

format string for run file names

Definition at line 17 of file KVRunListCreator.h.

◆ fReader

std::unique_ptr<KVRawDataReader> KVRunListCreator::fReader
private

Definition at line 21 of file KVRunListCreator.h.

◆ fRunInfos

KVUniqueNameList KVRunListCreator::fRunInfos
private

Definition at line 20 of file KVRunListCreator.h.

◆ fRunSheetDir

TString KVRunListCreator::fRunSheetDir
private

full path to directory holding runs

Definition at line 16 of file KVRunListCreator.h.