]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/AliMUONSegmentManuIndex.h
6309b81e2ed805b1b3da848cb3c95177acb364e3
[u/mrichter/AliRoot.git] / MUON / AliMUONSegmentManuIndex.h
1 #ifndef ALIMUONSEGMENTMANUINDEX_H
2 #define ALIMUONSEGMENTMANUINDEX_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 for electronics   
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,  #manu, #manuchannel 
15 //  Detailed information in Alice Technical Note xxxxxxxx (2004)
16 //====================================================================
17
18 #include <TNamed.h>
19
20
21 class AliMUONSegmentManuIndex : public TNamed {
22  public:
23   AliMUONSegmentManuIndex();
24   AliMUONSegmentManuIndex(const Int_t channelId, const Int_t manuId, const Int_t busPatchId, const Int_t manuChannelId);
25
26   virtual ~AliMUONSegmentManuIndex();
27
28   Int_t Compare(const TObject *obj) const;
29
30   Int_t GetChannelId()     const{return fChannelId;}
31   Int_t GetManuId()        const{return fManuId;}
32   Int_t GetBusPatchId()    const{return fBusPatchId;}
33   Int_t GetManuChannelId() const{return fManuChannelId;}
34   
35   void Print() const;
36
37  private:
38   Int_t fChannelId; // Id of the channel within the detection element
39   Int_t fManuId; // Manu id in the detection element
40   Int_t fBusPatchId; // BusPatchId in the detection element up to 4 for slats
41   Int_t fManuChannelId; // ChannelId in the manu card 1-64
42   
43   ClassDef(AliMUONSegmentManuIndex,1) // Segmenation for MUON detection elements
44     
45 };
46
47 #endif
48
49
50
51
52
53