]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/AliMUONTest.h
- Added handling of tracks and file mask (used when merging different files).
[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
8b7981ce 17class AliMUONGeometryTransformer;
18class AliMUONSegmentation;
24def874 19class AliMUONGeometrySegmentation;
e118b27e 20
a3953bc5 21class TCanvas;
22class TString;
23
152d6f4e 24enum AliMUONTests {
25 kPrintPads,
26 kDrawPads
27};
e118b27e 28
29class AliMUONTest : public TObject
30{
31 public:
8b7981ce 32 AliMUONTest(const TString& option);
e118b27e 33 AliMUONTest();
34 virtual ~AliMUONTest();
35
8b7981ce 36 // Get segmentation
37 AliMUONGeometrySegmentation* GetSegmentation(
152d6f4e 38 Int_t chamberId, Int_t cath);
39
40 // other tests
41 //
e118b27e 42 void DetElemTransforms();
152d6f4e 43
44 // selected tests
45 //
46 void ForWhole(AliMUONTests test);
47 void ForSegmentation(
48 AliMUONTests test,
49 AliMUONGeometrySegmentation* segmentation);
50 void ForDetElement(
51 AliMUONTests test,
52 Int_t detElemId,
53 AliMUONGeometrySegmentation* segmentation);
54 void Before(AliMUONTests test);
55 void After(AliMUONTests test);
56
57 // tests per pad
58 //
59 void PrintPad(Int_t& counter,
60 Int_t detElemId, Int_t ix, Int_t iy,
61 AliMUONGeometrySegmentation* segmentation);
62 void DrawPad(Int_t& counter,
63 Int_t detElemId, Int_t ix, Int_t iy,
64 AliMUONGeometrySegmentation* segmentation);
65
66
f48459ab 67 void DrawSegmentation(AliMUONGeometrySegmentation *seg);
152d6f4e 68 // TBR
69
70
e118b27e 71 protected:
72 AliMUONTest(const AliMUONTest& rhs);
73 AliMUONTest& operator = (const AliMUONTest& rhs);
8b7981ce 74
75 private:
76 // methods
77 void BuildWithMUON(const TString& configMacro);
78 void BuildWithoutMUON(const TString& option);
e118b27e 79
152d6f4e 80 // data members
8b7981ce 81 const AliMUONGeometryTransformer* fkTransformer; // Geometry parametrisation
82 AliMUONSegmentation* fSegmentation; // Segmentation
83 TCanvas* fCanvas; // The canvas for drawing
152d6f4e 84
e118b27e 85 ClassDef(AliMUONTest,0) // MUON class for tests
86};
87
88#endif //ALI_MUON_TEST_H
89