#ifndef ALIMUONSEGMENTINDEX_H #define ALIMUONSEGMENTINDEX_H /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * See cxx source for full Copyright notice */ /* $Id$ */ //=================================================================== // Segment element indexing in a detection element // Gines MARTINEZ, SUBATECH July 04 // This class is the basic component of // AliMUONSegmentationDetectionElement and contains al the // info about a segment (pad or strip): // Id-indetectionelement, ix ,iy // Detailed information in Alice Technical Note xxxxxxxx (2004) //==================================================================== #include #include class AliMUONSegmentIndex : public TNamed { public: AliMUONSegmentIndex(); AliMUONSegmentIndex(Int_t channelId, Int_t padX, Int_t padY, Int_t cathode); virtual ~AliMUONSegmentIndex(); Int_t Compare(const TObject *obj) const; Int_t GetChannelId() const {return fChannelId;} Int_t GetPadX() const {return fPadX;} Int_t GetPadY() const {return fPadY;} Int_t GetCathode() const {return fCathode;} static TString Name(Int_t padx, Int_t pady, Int_t cathode) ; void Print() const; private: Int_t fChannelId; // Id of the channel within the detection element Int_t fPadX; // pad index in the X direction Int_t fPadY; // pad index in the y direction Int_t fCathode; // cathode plane 0 bending 1 non bending ClassDef(AliMUONSegmentIndex,1) // Segmenation for MUON detection elements }; #endif