1 #ifndef ALIEVE_TRDLoaderImp_H
2 #define ALIEVE_TRDLoaderImp_H
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
10 // by A.Bercuci (A.Bercuci@gsi.de) Fri Oct 27 2006
11 ////////////////////////////////////////////////////////////////////////
13 #ifndef ALIEVE_TRDLoader_H
14 #include "TRDLoader.h"
20 class AliRawReaderDate;
21 class AliRawReaderRoot;
25 class TRDLoaderSim : public TRDLoader
27 friend class TRDLoaderSimEditor;
29 TRDLoaderSim(const Text_t* n="TRDLoaderSim", const Text_t* t=0);
32 Bool_t GoToEvent(int ev);
33 Bool_t LoadHits(TTree *tH);
34 Bool_t Open(const char *file, const char *dir=".");
37 AliRunLoader *fRunLoader; // Run Loader
39 ClassDef(TRDLoaderSim, 1) // Alieve loader for the TRD detector (gAlice)
43 class TRDLoaderRaw : public TRDLoader
46 TRDLoaderRaw(const Text_t* n="TRDLoaderRaw", const Text_t* t=0);
49 Bool_t GoToEvent(int ev);
51 Bool_t Open(const char *file, const char *dir=".");
52 void SetDataType(TRDDataTypes type);
56 void NextEvent(Bool_t rewindOnEnd=kTRUE);
59 AliRawReaderDate *fRawDateReader;
60 AliRawReaderRoot *fRawRootReader;
65 ClassDef(TRDLoaderRaw, 1) // Alieve loader for the TRD detector (raw)
68 class TRDLoaderSimEditor : public TGedFrame
71 TRDLoaderSimEditor(const TGWindow* p=0, Int_t width = 170, Int_t height = 30, UInt_t options = kChildFrame, Pixel_t back = GetDefaultFrameBackground());
72 ~TRDLoaderSimEditor();
74 virtual void SetModel(TObject* obj);
75 virtual void Toggle(Int_t id);
79 TGCheckButton *fLoadHits, *fLoadDigits, *fLoadClusters, *fLoadTracks;
81 ClassDef(TRDLoaderSimEditor,1) // Editor for TRDLoaderSim