]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/AliMUONSegmentIndex.h
- Modified comment lines to be compatible with Doxygen
[u/mrichter/AliRoot.git] / MUON / AliMUONSegmentIndex.h
1 #ifndef ALIMUONSEGMENTINDEX_H
2 #define ALIMUONSEGMENTINDEX_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
8 /// \ingroup base
9 /// \class AliMUONSegmentIndex
10 /// \brief Segment element indexing in a detection element 
11
12 //===================================================================
13 //  Segment element indexing in a detection element    
14 //        Gines MARTINEZ, SUBATECH July 04                
15 //  This class is the basic component of 
16 //  AliMUONSegmentationDetectionElement and contains al the 
17 //  info about a segment (pad or strip):
18 //          Id-indetectionelement,  ix ,iy 
19 //  Detailed information in Alice Technical Note xxxxxxxx (2004)
20 //====================================================================
21
22 #include <TNamed.h>
23 #include <TString.h>
24
25 class AliMUONSegmentIndex : public TNamed {
26  public:
27   AliMUONSegmentIndex();
28   AliMUONSegmentIndex(Int_t channelId, Int_t padX, Int_t padY, Int_t cathode);
29   virtual ~AliMUONSegmentIndex();
30   
31
32   Int_t Compare(const TObject *obj) const;
33   Int_t GetChannelId() const {return fChannelId;}
34   Int_t GetPadX()      const {return fPadX;} 
35   Int_t GetPadY()      const {return fPadY;} 
36   Int_t GetCathode()   const {return fCathode;} 
37   
38   static TString Name(Int_t padx, Int_t pady, Int_t cathode) ;
39   void Print(const char* opt="") const;
40
41  private:
42   Int_t fChannelId; // Id of the channel within the detection element
43   Int_t fPadX;      // pad index in the X direction
44   Int_t fPadY;      // pad index in the y direction
45   Int_t fCathode;   // cathode plane 0 bending 1 non bending
46   
47   ClassDef(AliMUONSegmentIndex,1) // Segmenation for MUON detection elements    
48 };
49 #endif
50
51
52
53
54
55