]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EVE/EveDet/AliEveTRDLoaderImp.h
Move contents of EVE/Alieve to EVE/EveDet as most code will remain there.
[u/mrichter/AliRoot.git] / EVE / EveDet / AliEveTRDLoaderImp.h
1 // $Id$
2 // Main authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007
3
4 /**************************************************************************
5  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
6  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
7  * full copyright notice.                                                 *
8  **************************************************************************/
9 #ifndef ALIEVE_TRDLoaderImp_H
10 #define ALIEVE_TRDLoaderImp_H
11
12 ////////////////////////////////////////////////////////////////////////
13 //                                                                     // - ALIEVE implementation -
14 // Single event loader for the TRD detector
15 //    - AliEveTRDLoaderSim - loader for simulations based on gAlice
16 //    - AliEveTRDLoaderRaw - loader for raw data
17 //
18 // by A.Bercuci (A.Bercuci@gsi.de)   Fri Oct 27 2006
19 ////////////////////////////////////////////////////////////////////////
20
21 #ifndef ALIEVE_TRDLoader_H
22 #include "AliEveTRDLoader.h"
23 #endif
24
25
26 class AliRunLoader;
27 class AliTRDrawData;
28 class AliRawReaderDate;
29 class AliRawReaderRoot;
30
31 class TGCheckButton;
32
33         class AliEveTRDLoaderSim : public AliEveTRDLoader
34         {
35         friend class AliEveTRDLoaderSimEditor;
36         public:
37                 AliEveTRDLoaderSim(const Text_t* n="AliEveTRDLoaderSim", const Text_t* t=0);
38                 ~AliEveTRDLoaderSim();
39
40                 Bool_t                  GoToEvent(int ev);
41                 Bool_t                  LoadHits(TTree *tH);
42                 Bool_t                  Open(const char *file, const char *dir=".");
43
44         private:
45                 AliRunLoader                    *fRunLoader; // Run Loader
46
47                 ClassDef(AliEveTRDLoaderSim, 1) // Alieve loader for the TRD detector (gAlice)
48         };
49
50
51         class AliEveTRDLoaderRaw : public AliEveTRDLoader
52         {
53         public:
54                 AliEveTRDLoaderRaw(const Text_t* n="AliEveTRDLoaderRaw", const Text_t* t=0);
55                 ~AliEveTRDLoaderRaw();
56
57                 Bool_t                  GoToEvent(int ev);
58                 Bool_t                  LoadEvent();
59                 Bool_t                  Open(const char *file, const char *dir=".");
60                 void                            SetDataType(TRDDataTypes type);
61
62
63         private:
64                 void NextEvent(Bool_t rewindOnEnd=kTRUE);
65
66         private:
67                 AliRawReaderDate        *fRawDateReader;
68                 AliRawReaderRoot        *fRawRootReader;
69                 AliTRDrawData                   *fRaw;
70                 Bool_t                                          fDataRoot;
71                 Int_t                                                   fEventOld;
72
73                 ClassDef(AliEveTRDLoaderRaw, 1) // Alieve loader for the TRD detector (raw)
74         };
75
76         class AliEveTRDLoaderSimEditor : public TGedFrame
77         {
78         public:
79                 AliEveTRDLoaderSimEditor(const TGWindow* p=0, Int_t width = 170, Int_t height = 30, UInt_t options = kChildFrame, Pixel_t back = GetDefaultFrameBackground());
80                 ~AliEveTRDLoaderSimEditor();
81
82                 virtual void    SetModel(TObject* obj);
83                 virtual void    Toggle(Int_t id);
84
85         protected:
86                 AliEveTRDLoaderSim* fM;
87                 TGCheckButton *fLoadHits, *fLoadDigits, *fLoadClusters, *fLoadTracks;
88
89                 ClassDef(AliEveTRDLoaderSimEditor,1) // Editor for AliEveTRDLoaderSim
90         };
91 #endif