]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/mapping/AliMpSlatSegmentation.h
Update manu serial number files (Christian)
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpSlatSegmentation.h
CommitLineData
dee1d5f1 1/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2 * See cxx source for full Copyright notice */
3
4// $Id$
13985652 5// $MpId: AliMpSlatSegmentation.h,v 1.12 2006/05/24 13:58:24 ivana Exp $
dee1d5f1 6
7/// \ingroup slat
8/// \class AliMpSlatSegmentation
9/// \brief Implementation of AliMpVSegmentation for St345 slats.
10///
1964cd2e 11/// Note that integer indices start at (0,0) on the bottom-left of the slat,
12/// while floating point positions are relative to the center of the slat
13/// (where the slat is to be understood as N PCBs of fixed size = 40cm
14/// even if not all pads of a given PCBs are actually physically there).
15///
13985652 16/// \author Laurent Aphecetche
dee1d5f1 17
18#ifndef ALI_MP_SLAT_SEGMENTATION_H
19#define ALI_MP_SLAT_SEGMENTATION_H
20
21#ifndef ROOT_TString
22#include "TString.h"
23#endif
24
25#ifndef ALI_MP_V_SEGMENTATION_H
26#include "AliMpVSegmentation.h"
27#endif
28
29#ifndef ALI_MP_PAD_H
30#include "AliMpPad.h"
31#endif
32
33class AliMpMotifPosition;
34class AliMpPCB;
35class AliMpSlat;
36
37class AliMpSlatSegmentation : public AliMpVSegmentation
38{
39 public:
40 AliMpSlatSegmentation();
41af6fb0 41 AliMpSlatSegmentation(const AliMpSlat* slat, Bool_t own = false);
dee1d5f1 42 virtual ~AliMpSlatSegmentation();
43
44 virtual AliMpVPadIterator* CreateIterator(const AliMpArea& area) const;
264a9c47 45 virtual AliMpVPadIterator* CreateIterator() const;
dee1d5f1 46
264a9c47 47 virtual Int_t GetNeighbours(const AliMpPad& pad, TObjArray& neighbours,
48 Bool_t includeSelf=kFALSE,
49 Bool_t includeVoid=kFALSE) const;
50
1faed5a9 51 const char* GetName() const;
52
53 Bool_t HasPad(const AliMpIntPair& indices) const;
54
026b7442 55 Int_t MaxPadIndexX() const;
56 Int_t MaxPadIndexY() const;
57 Int_t NofPads() const;
1faed5a9 58
dee1d5f1 59 virtual AliMpPad PadByLocation(const AliMpIntPair& location,
60 Bool_t warning) const;
61
62 virtual AliMpPad PadByIndices(const AliMpIntPair& indices,
63 Bool_t warning) const;
64
65 virtual AliMpPad PadByPosition(const TVector2& position,
66 Bool_t warning) const;
67
85fec35d 68 virtual void Print(Option_t* opt) const;
63bcb3c3 69
dee1d5f1 70 const AliMpSlat* Slat() const;
71
63bcb3c3 72 void GetAllElectronicCardIDs(TArrayI& ecn) const;
73
cddd101e 74 AliMp::PlaneType PlaneType() const;
63bcb3c3 75
76 TVector2 Dimensions() const;
77
13e7956b 78 private:
884a73f1 79 AliMpSlatSegmentation(const AliMpSlatSegmentation& right);
80 AliMpSlatSegmentation& operator = (const AliMpSlatSegmentation& right);
13e7956b 81
41af6fb0 82 const AliMpSlat* fkSlat; ///< Slat
83 Bool_t fIsOwner;///< Slat ownership
dee1d5f1 84
41af6fb0 85 ClassDef(AliMpSlatSegmentation,2) // A slat for stations 3,4,5
dee1d5f1 86};
87
88#endif