Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
DataFormatManager.h
1/*
2 * DataFormatManager.h
3 *
4 * Created on: 04-05-2022
5 * Author: Daniel Wielanek
6 * E-mail: daniel.wielanek@gmail.com
7 * Warsaw University of Technology, Faculty of Physics
8 */
9
10#ifndef HALDATAFORMATMANAGER_H_
11#define HALDATAFORMATMANAGER_H_
12
13#include <TObject.h>
14
15#include "Std.h"
16
20namespace Hal {
21 class EventAna;
22 class Event;
23 class Track;
24
25 class DataFormatManager : public TObject {
26 friend class EventAna;
27 Int_t fRegisteredFormats;
28 Event** fDataFormatBuffered; //[fRegisteredFormats]
29 Event** fDataFormatNonBuffered; //[fRegisteredFormats]
30 static DataFormatManager* fgInstance;
31
32 public:
41 Int_t RegisterFormat();
45 void Reset();
57 void SetFormat(Event* format, Int_t task_id, EFormatDepth depth = EFormatDepth::kAll, Bool_t silent = kFALSE);
63 const Event* GetFormat(Int_t task_id, EFormatDepth format_depth = EFormatDepth::kAll) const;
69 Event* GetNewEvent(Int_t task_id, EFormatDepth format_depth = EFormatDepth::kAll) const;
75 Track* GetNewTrack(Int_t task_id, EFormatDepth format_depth = EFormatDepth::kAll) const;
81 TString GetFormatName(Int_t task_id, EFormatDepth format_depth = EFormatDepth::kAll) const;
87 Bool_t FormatExist(Int_t task_id, EFormatDepth format_depth = EFormatDepth::kAll) const;
93 virtual ~DataFormatManager();
94 ClassDef(DataFormatManager, 1)
95 };
96} // namespace Hal
97
98#endif /* HALDATAFORMATMANAGER_H_ */
const Event * GetFormat(Int_t task_id, EFormatDepth format_depth=EFormatDepth::kAll) const
Track * GetNewTrack(Int_t task_id, EFormatDepth format_depth=EFormatDepth::kAll) const
void SetFormat(Event *format, Int_t task_id, EFormatDepth depth=EFormatDepth::kAll, Bool_t silent=kFALSE)
TString GetFormatName(Int_t task_id, EFormatDepth format_depth=EFormatDepth::kAll) const
static DataFormatManager * Instance()
Event * GetNewEvent(Int_t task_id, EFormatDepth format_depth=EFormatDepth::kAll) const
Bool_t FormatExist(Int_t task_id, EFormatDepth format_depth=EFormatDepth::kAll) const