]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/AliMUONTest.h
Changes needed on Sun with Root v4-03-04
[u/mrichter/AliRoot.git] / MUON / AliMUONTest.h
CommitLineData
e118b27e 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// Class AliMUONTest
7// -----------------
8// Class with functions for testing
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
152d6f4e 17class TCanvas;
24def874 18class AliMUONGeometrySegmentation;
e118b27e 19
152d6f4e 20enum AliMUONTests {
21 kPrintPads,
22 kDrawPads
23};
e118b27e 24
25class AliMUONTest : public TObject
26{
27 public:
28 AliMUONTest(const TString& configMacro);
29 AliMUONTest();
30 virtual ~AliMUONTest();
31
152d6f4e 32 // create segmentation
33 AliMUONGeometrySegmentation* CreateSegmentation(
34 Int_t chamberId, Int_t cath);
35
36 // other tests
37 //
e118b27e 38 void DetElemTransforms();
152d6f4e 39 void PrintPadPositionsOld();
40
41
42 // selected tests
43 //
44 void ForWhole(AliMUONTests test);
45 void ForSegmentation(
46 AliMUONTests test,
47 AliMUONGeometrySegmentation* segmentation);
48 void ForDetElement(
49 AliMUONTests test,
50 Int_t detElemId,
51 AliMUONGeometrySegmentation* segmentation);
52 void Before(AliMUONTests test);
53 void After(AliMUONTests test);
54
55 // tests per pad
56 //
57 void PrintPad(Int_t& counter,
58 Int_t detElemId, Int_t ix, Int_t iy,
59 AliMUONGeometrySegmentation* segmentation);
60 void DrawPad(Int_t& counter,
61 Int_t detElemId, Int_t ix, Int_t iy,
62 AliMUONGeometrySegmentation* segmentation);
63
64
f48459ab 65 void DrawSegmentation(AliMUONGeometrySegmentation *seg);
152d6f4e 66 // TBR
67
68
e118b27e 69 protected:
70 AliMUONTest(const AliMUONTest& rhs);
71 AliMUONTest& operator = (const AliMUONTest& rhs);
72
152d6f4e 73 private:
74 AliMUONGeometrySegmentation* CreateSt1Segmentation(
75 Int_t chamberId, Int_t cathod);
76 AliMUONGeometrySegmentation* CreateSlatSegmentation(
77 Int_t chamberId, Int_t cathod);
58d53b65 78 AliMUONGeometrySegmentation* CreateTriggerSegmentation(
79 Int_t chamberId, Int_t cathod);
152d6f4e 80
81 // data members
82 TCanvas* fCanvas; // The canvas for drawing
83
e118b27e 84 ClassDef(AliMUONTest,0) // MUON class for tests
85};
86
87#endif //ALI_MUON_TEST_H
88