]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/AliMUONTest.h
- Adding volume path attribute (moved from AliMUONGeometryModule)
[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;
8b7981ce 18class AliMUONGeometryTransformer;
19class AliMUONSegmentation;
24def874 20class AliMUONGeometrySegmentation;
e118b27e 21
152d6f4e 22enum AliMUONTests {
23 kPrintPads,
24 kDrawPads
25};
e118b27e 26
27class AliMUONTest : public TObject
28{
29 public:
8b7981ce 30 AliMUONTest(const TString& option);
e118b27e 31 AliMUONTest();
32 virtual ~AliMUONTest();
33
8b7981ce 34 // Get segmentation
35 AliMUONGeometrySegmentation* GetSegmentation(
152d6f4e 36 Int_t chamberId, Int_t cath);
37
38 // other tests
39 //
e118b27e 40 void DetElemTransforms();
152d6f4e 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);
8b7981ce 72
73 private:
74 // methods
75 void BuildWithMUON(const TString& configMacro);
76 void BuildWithoutMUON(const TString& option);
e118b27e 77
152d6f4e 78 // data members
8b7981ce 79 const AliMUONGeometryTransformer* fkTransformer; // Geometry parametrisation
80 AliMUONSegmentation* fSegmentation; // Segmentation
81 TCanvas* fCanvas; // The canvas for drawing
152d6f4e 82
e118b27e 83 ClassDef(AliMUONTest,0) // MUON class for tests
84};
85
86#endif //ALI_MUON_TEST_H
87