]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/AliMUONTest.h
BuildStation6 made consistent with AliMUONFactoryV2
[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//
692de412 6/// \ingroup sim
7/// \class AliMUONTest
8/// \brief Class with functions for testing new segmentation
9///
10/// Author: Ivana Hrivnacova, IPN Orsay
e118b27e 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
40 // selected tests
41 //
42 void ForWhole(AliMUONTests test);
43 void ForSegmentation(
44 AliMUONTests test,
45 AliMUONGeometrySegmentation* segmentation);
46 void ForDetElement(
47 AliMUONTests test,
48 Int_t detElemId,
49 AliMUONGeometrySegmentation* segmentation);
50 void Before(AliMUONTests test);
51 void After(AliMUONTests test);
52
53 // tests per pad
54 //
55 void PrintPad(Int_t& counter,
56 Int_t detElemId, Int_t ix, Int_t iy,
57 AliMUONGeometrySegmentation* segmentation);
58 void DrawPad(Int_t& counter,
59 Int_t detElemId, Int_t ix, Int_t iy,
60 AliMUONGeometrySegmentation* segmentation);
61
62
f48459ab 63 void DrawSegmentation(AliMUONGeometrySegmentation *seg);
152d6f4e 64 // TBR
65
66
e118b27e 67 protected:
68 AliMUONTest(const AliMUONTest& rhs);
69 AliMUONTest& operator = (const AliMUONTest& rhs);
70
152d6f4e 71 private:
72 AliMUONGeometrySegmentation* CreateSt1Segmentation(
73 Int_t chamberId, Int_t cathod);
580c28fd 74 AliMUONGeometrySegmentation* CreateSt2Segmentation(
75 Int_t chamberId, Int_t cathod);
152d6f4e 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