]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/AliMUONSegmentPosition.h
New classes for Segmentation and Mapping
[u/mrichter/AliRoot.git] / MUON / AliMUONSegmentPosition.h
CommitLineData
74f8c8e3 1#ifndef ALIMUONSEGMENTPOSITION_H
2#define ALIMUONSEGMENTPOSITION_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 position in local coordinates of the detection element
10// Gines MARTINEZ, SUBATECH July 04
11// This class is one of the basic component of
12// AliMUONSegmentationDetectionElement and contains al the
13// info about a segment (pad or strip):
14// Id-indetectionelement, x_local, y_local
15// Detailed information in Alice Technical Note xxxxxxxx (2004)
16//====================================================================
17
18#include <TNamed.h>
19
20class AliMUONSegmentPosition : public TNamed
21{
22 public:
23 AliMUONSegmentPosition();
24 AliMUONSegmentPosition(const Int_t channelId, const Float_t x, const Float_t y, const Int_t cathode);
25 virtual ~AliMUONSegmentPosition();
26
27 Int_t Compare(const TObject *obj) const;
28 Int_t GetChannelId()const {return fChannelId;}
29 Float_t GetXlocal() const {return fX;}
30 Float_t GetYlocal() const {return fY;}
31 Int_t GetCathode() const {return fCathode;}
32
33 void Print() const;
34 private:
35 Int_t fChannelId; // Id of the channel within the detection element
36 Float_t fX;
37 Float_t fY;
38 Int_t fCathode;
39
40 ClassDef(AliMUONSegmentPosition,1) // Loal positions of segments
41
42};
43#endif
44
45
46
47
48
49