]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/AliMUONFactoryV2.h
Added <assert.h> include
[u/mrichter/AliRoot.git] / MUON / AliMUONFactoryV2.h
1 #ifndef ALIMUONFACTORYV2_H
2 #define ALIMUONFACTORYV2_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6 /* $Id$ */
7 // Revision of includes 07/05/2004
8
9 /// \ingroup sim
10 /// \class AliMUONFactoryV2
11 /// \brief Factory for muon chambers, segmentations and response
12 ///
13 ////////////////////////////////////////////////////////////
14 ///  Factory for muon chambers, segmentations and response 
15 ///  The number 2 is refering to new segmentation
16 ///
17 ////////////////////////////////////////////////////////////
18
19 #include <TObject.h>
20 #include <TNamed.h>
21
22 class AliMUON;
23 class AliMUONResponseV0;
24
25 class AliMUONFactoryV2 : public  TNamed {
26
27   public:
28     AliMUONFactoryV2(const char* name);
29     AliMUONFactoryV2();
30     virtual ~AliMUONFactoryV2();
31     
32     void Build(AliMUON* where, const char* what);
33     void BuildStation(AliMUON* where, Int_t stationNumber);
34
35   protected:
36     AliMUONFactoryV2(const AliMUONFactoryV2& rhs);
37     AliMUONFactoryV2& operator=(const AliMUONFactoryV2& rhs);
38
39   private:
40     Bool_t IsGeometryDefined(Int_t ichamber);
41     void BuildCommon();
42     void BuildStation1();
43     void BuildStation2();
44     void BuildStation3();
45     void BuildStation4();
46     void BuildStation5();
47     void BuildStation6();
48
49     // data members     
50     AliMUON*           fMUON;           // MUON detector 
51     AliMUONResponseV0* fResponse0;      // default response 
52     TObjArray*         fDESegmentations;// DE segmentations
53
54   ClassDef(AliMUONFactoryV2,0)  // MUON Factory for Chambers and Segmentation
55 };
56 #endif
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71