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

Public Member Functions

 DataFormatManager ()
 
Int_t RegisterFormat ()
 
void Reset ()
 
EventFindReaderFormat ()
 
void SetFormat (Event *format, Int_t task_id, EFormatDepth depth=EFormatDepth::kAll, Bool_t silent=kFALSE)
 
const EventGetFormat (Int_t task_id, EFormatDepth format_depth=EFormatDepth::kAll) const
 
EventGetNewEvent (Int_t task_id, EFormatDepth format_depth=EFormatDepth::kAll) const
 
TrackGetNewTrack (Int_t task_id, EFormatDepth format_depth=EFormatDepth::kAll) const
 
TString GetFormatName (Int_t task_id, EFormatDepth format_depth=EFormatDepth::kAll) const
 
Bool_t FormatExist (Int_t task_id, EFormatDepth format_depth=EFormatDepth::kAll) const
 

Static Public Member Functions

static DataFormatManagerInstance ()
 

Friends

class EventAna
 

Detailed Description

Definition at line 25 of file DataFormatManager.h.

Constructor & Destructor Documentation

◆ DataFormatManager()

Hal::DataFormatManager::DataFormatManager ( )

default constructor

Definition at line 26 of file DataFormatManager.cxx.

◆ ~DataFormatManager()

Hal::DataFormatManager::~DataFormatManager ( )
virtual

Definition at line 112 of file DataFormatManager.cxx.

Member Function Documentation

◆ FindReaderFormat()

Event * Hal::DataFormatManager::FindReaderFormat ( )

try to find anty kind of supported events in tree

Returns
pointer to supported format

Definition at line 90 of file DataFormatManager.cxx.

◆ FormatExist()

Bool_t Hal::DataFormatManager::FormatExist ( Int_t task_id,
EFormatDepth format_depth = EFormatDepth::kAll ) const
Parameters
task_idformat id
Returns
true if format has been registered and set

Definition at line 120 of file DataFormatManager.cxx.

◆ GetFormat()

const Event * Hal::DataFormatManager::GetFormat ( Int_t task_id,
EFormatDepth format_depth = EFormatDepth::kAll ) const

return allocated representatnio of Event used with given format

Parameters
task_idformat/task id
Returns
newly allocated event

Definition at line 149 of file DataFormatManager.cxx.

◆ GetFormatName()

TString Hal::DataFormatManager::GetFormatName ( Int_t task_id,
EFormatDepth format_depth = EFormatDepth::kAll ) const
Parameters
task_idformat id
Returns
name of format with given id

Definition at line 85 of file DataFormatManager.cxx.

◆ GetNewEvent()

Event * Hal::DataFormatManager::GetNewEvent ( Int_t task_id,
EFormatDepth format_depth = EFormatDepth::kAll ) const
Parameters
task_idformat id
Returns
event optimized for given format of data

Definition at line 36 of file DataFormatManager.cxx.

◆ GetNewTrack()

Track * Hal::DataFormatManager::GetNewTrack ( Int_t task_id,
EFormatDepth format_depth = EFormatDepth::kAll ) const

create pointer to track with proper format

Parameters
task_idformat id
Returns
pointer to track in proper format

Definition at line 44 of file DataFormatManager.cxx.

◆ Instance()

DataFormatManager * Hal::DataFormatManager::Instance ( )
static
Returns
instance of this

Definition at line 80 of file DataFormatManager.cxx.

◆ RegisterFormat()

Int_t Hal::DataFormatManager::RegisterFormat ( )

regiter new format

Returns
id of newly registered format

Definition at line 133 of file DataFormatManager.cxx.

◆ Reset()

void Hal::DataFormatManager::Reset ( )

remove all stored formats and events

Definition at line 103 of file DataFormatManager.cxx.

◆ SetFormat()

void Hal::DataFormatManager::SetFormat ( Event * format,
Int_t task_id,
EFormatDepth depth = EFormatDepth::kAll,
Bool_t silent = kFALSE )

force overwrite format at given position

Parameters
formatevent that represent new format
task_idid of overwritten format
silent- silent overwriting (don't display warning

Definition at line 49 of file DataFormatManager.cxx.

Friends And Related Symbol Documentation

◆ EventAna

friend class EventAna
friend

Definition at line 26 of file DataFormatManager.h.


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