]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/AliMUONTest.h
New versions of GDC and CDH raw data headers. Some CDH getters are added
[u/mrichter/AliRoot.git] / MUON / AliMUONTest.h
1 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2  * See cxx source for full Copyright notice                               */
3
4 // $Id$
5 //
6 /// \ingroup sim
7 /// \class AliMUONTest
8 /// \brief Class with functions for testing new segmentation
9 ///
10 /// Author: Ivana Hrivnacova, IPN Orsay
11
12 #ifndef ALI_MUON_TEST_H
13 #define ALI_MUON_TEST_H
14
15 #include <TObject.h>
16
17 class AliMUONGeometryTransformer;
18 class AliMUONSegmentation;
19 class AliMUONGeometrySegmentation;
20
21 class TCanvas;
22 class TString;
23
24 class AliMUONTest : public  TObject 
25 {
26   public:
27     AliMUONTest(const TString& option);
28     AliMUONTest();
29     virtual ~AliMUONTest();
30    
31
32     // methods for printing pads
33     //                                                    
34     void PrintPadsForAll() const;
35     void PrintPadsForSegmentation(Int_t moduleId, Int_t cath) const;
36     void PrintPadsForDetElement(Int_t detElemId, Int_t cath) const;
37     void PrintPad(Int_t& counter, 
38                   Int_t detElemId, Int_t ix, Int_t iy,
39                   AliMUONGeometrySegmentation* segmentation) const;
40
41     // methods for drawing pads
42     //                                                    
43     void DrawPadsForAll() const;
44     void DrawPadsForSegmentation(Int_t moduleId, Int_t cath) const;
45     void DrawPadsForDetElement(Int_t detElemId, Int_t cath) const;
46     void DrawPad(Int_t& counter, 
47                  Int_t detElemId, Int_t ix, Int_t iy,
48                  AliMUONGeometrySegmentation* segmentation) const;
49
50     // other tests
51     //
52     void DetElemTransforms() const;
53
54   protected:
55     AliMUONTest(const AliMUONTest& rhs);
56     AliMUONTest& operator = (const AliMUONTest& rhs);
57     
58   private:  
59     // methods
60     void BuildWithMUON(const TString& configMacro);
61     void BuildWithoutMUON(const TString& option);
62
63     void PrintPad(Int_t& counter, 
64                   Int_t detElemId, Int_t ix, Int_t iy,
65                   AliMUONGeometrySegmentation* segmentation);
66     void DrawPad(Int_t& counter, 
67                   Int_t detElemId, Int_t ix, Int_t iy,
68                   AliMUONGeometrySegmentation* segmentation);
69     // data members
70     const AliMUONGeometryTransformer* fkTransformer; ///< Geometry parametrisation
71     AliMUONSegmentation*  fSegmentation;  ///< Segmentation
72     TCanvas*              fCanvas;        ///< The canvas for drawing                                  
73
74     ClassDef(AliMUONTest,0)  // MUON class for tests
75 };
76
77 #endif //ALI_MUON_TEST_H
78