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 */
9 /// \class AliMUONSegmentIndex
10 /// \brief Segment element indexing in a detection element
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 //====================================================================
25 class AliMUONSegmentIndex : public TNamed {
27 AliMUONSegmentIndex();
28 AliMUONSegmentIndex(Int_t channelId, Int_t padX, Int_t padY, Int_t cathode);
29 virtual ~AliMUONSegmentIndex();
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;}
38 static TString Name(Int_t padx, Int_t pady, Int_t cathode) ;
39 void Print(const char* opt="") const;
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
47 ClassDef(AliMUONSegmentIndex,1) // Segmenation for MUON detection elements