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 */
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 //====================================================================
20 class AliMUONSegmentIndex : public TNamed {
22 AliMUONSegmentIndex();
23 AliMUONSegmentIndex(const Int_t channelId, const Int_t padX, const Int_t padY, const Int_t cathode);
24 virtual ~AliMUONSegmentIndex();
27 Int_t Compare(const TObject *obj) const;
28 Int_t GetChannelId() const {return fChannelId;}
29 Int_t GetPadX() const {return fPadX;}
30 Int_t GetPadY() const {return fPadX;}
31 Int_t GetCathode() const {return fCathode;}
36 Int_t fChannelId; // Id of the channel within the detection element
41 ClassDef(AliMUONSegmentIndex,1) // Segmenation for MUON detection elements