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