]> git.uio.no Git - u/mrichter/AliRoot.git/blame - EVE/Alieve/TRDLoaderImp.h
Put black-listed classes out of Alieve namespace.
[u/mrichter/AliRoot.git] / EVE / Alieve / TRDLoaderImp.h
CommitLineData
edf0c4a0 1#ifndef ALIEVE_TRDLoaderImp_H
2#define ALIEVE_TRDLoaderImp_H
3
4////////////////////////////////////////////////////////////////////////
5// // - ALIEVE implementation -
6// Single event loader for the TRD detector
7// - TRDLoaderSim - loader for simulations based on gAlice
8// - TRDLoaderRaw - loader for raw data
9//
10// by A.Bercuci (A.Bercuci@gsi.de) Fri Oct 27 2006
11////////////////////////////////////////////////////////////////////////
12
13#ifndef ALIEVE_TRDLoader_H
14#include "TRDLoader.h"
15#endif
16
17
18class AliRunLoader;
19class AliTRDrawData;
20class AliRawReaderDate;
21class AliRawReaderRoot;
22
23class TGCheckButton;
24namespace Alieve {
25 class TRDLoaderSim : public TRDLoader
26 {
27 friend class TRDLoaderSimEditor;
28 public:
29 TRDLoaderSim(const Text_t* n="TRDLoaderSim", const Text_t* t=0);
30 ~TRDLoaderSim();
31
32 Bool_t GoToEvent(int ev);
33 Bool_t LoadHits(TTree *tH);
34 Bool_t Open(const char *file, const char *dir=".");
35
36 private:
37 AliRunLoader *fRunLoader; // Run Loader
38
39 ClassDef(TRDLoaderSim, 1) // Alieve loader for the TRD detector (gAlice)
40 };
41
42
43 class TRDLoaderRaw : public TRDLoader
44 {
45 public:
46 TRDLoaderRaw(const Text_t* n="TRDLoaderRaw", const Text_t* t=0);
47 ~TRDLoaderRaw();
48
49 Bool_t GoToEvent(int ev);
50 Bool_t LoadEvent();
51 Bool_t Open(const char *file, const char *dir=".");
52 void SetDataType(TRDDataTypes type);
53
54
55 private:
56 void NextEvent(Bool_t rewindOnEnd=kTRUE);
57
58 private:
59 AliRawReaderDate *fRawDateReader;
60 AliRawReaderRoot *fRawRootReader;
61 AliTRDrawData *fRaw;
62 Bool_t fDataRoot;
63 Int_t fEventOld;
64
65 ClassDef(TRDLoaderRaw, 1) // Alieve loader for the TRD detector (raw)
66 };
67
68 class TRDLoaderSimEditor : public TGedFrame
69 {
70 public:
71 TRDLoaderSimEditor(const TGWindow* p=0, Int_t width = 170, Int_t height = 30, UInt_t options = kChildFrame, Pixel_t back = GetDefaultFrameBackground());
72 ~TRDLoaderSimEditor();
73
74 virtual void SetModel(TObject* obj);
75 virtual void Toggle(Int_t id);
76
77 protected:
78 TRDLoaderSim* fM;
79 TGCheckButton *fLoadHits, *fLoadDigits, *fLoadClusters, *fLoadTracks;
80
81 ClassDef(TRDLoaderSimEditor,1) // Editor for TRDLoaderSim
82 };
83}
84#endif