]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/mapping/AliMpVSegmentation.h
- Reordering includes and/or
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpVSegmentation.h
CommitLineData
dee1d5f1 1/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2 * See cxx source for full Copyright notice */
3
5f91c9e8 4// $Id$
6914e59d 5// $MpId: AliMpVSegmentation.h,v 1.8 2006/03/02 16:29:11 ivana Exp $
dee1d5f1 6
7/// \ingroup basic
8/// \class AliMpVSegmentation
9/// \brief The abstract base class for the segmentation.
10///
11/// Provides methods related to pads:
12/// conversion between pad indices, pad location, pad position;
13/// finding pad neighbour.
14///
15/// Authors: David Guez, Ivana Hrivnacova; IPN Orsay
5f91c9e8 16
17#ifndef ALI_MP_V_SEGMENTATION_H
18#define ALI_MP_V_SEGMENTATION_H
19
20#include <TObject.h>
5f91c9e8 21
5f91c9e8 22#include "AliMpPadPair.h"
23#include "AliMpPad.h"
6914e59d 24#include "AliMpPlaneType.h"
2998a151 25
6914e59d 26class TArrayI;
2998a151 27class TVector2;
5f91c9e8 28
29class AliMpVPadIterator;
2998a151 30class AliMpIntPair;
31class AliMpArea;
5f91c9e8 32
33class AliMpVSegmentation : public TObject
34{
35 public:
36 AliMpVSegmentation();
37 virtual ~AliMpVSegmentation();
38
39 // factory method
40 virtual AliMpVPadIterator* CreateIterator(const AliMpArea& area) const = 0;
41
42 // methods
43 virtual AliMpPad PadByLocation(const AliMpIntPair& location,
8be59ff4 44 Bool_t warning = true) const = 0;
5f91c9e8 45 virtual AliMpPad PadByIndices (const AliMpIntPair& indices,
8be59ff4 46 Bool_t warning = true) const = 0;
5f91c9e8 47 virtual AliMpPad PadByPosition(const TVector2& position,
8be59ff4 48 Bool_t warning = true) const = 0;
5f91c9e8 49
50 virtual AliMpPadPair PadsUp(const AliMpPad& pad) const;
51 virtual AliMpPadPair PadsDown(const AliMpPad& pad) const;
52 virtual AliMpPadPair PadsLeft(const AliMpPad& pad) const;
53 virtual AliMpPadPair PadsRight(const AliMpPad& pad) const;
54
580c28fd 55 virtual Int_t MaxPadIndexX() = 0;
56 virtual Int_t MaxPadIndexY() = 0;
57
5f91c9e8 58 virtual Bool_t HasPad(const AliMpIntPair& indices) const = 0;
59
6914e59d 60 virtual void GetAllElectronicCardIDs(TArrayI& ecn) const = 0;
61
62 virtual AliMpPlaneType PlaneType() const = 0;
63
64 /// Gives the half-sizes (in cm) of the underlying detection element.
65 virtual TVector2 Dimensions() const = 0;
66
5f91c9e8 67 private:
68 // methods
69 AliMpPadPair FindPads(const TVector2& position1,
70 const TVector2& position2) const;
71
72 ClassDef(AliMpVSegmentation,1) // Segmentation
73};
74
75#endif //ALI_MP_V_SEGMENTATION_H
76