Coding conventions (Laurent)
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpTriggerSegmentation.h
CommitLineData
ff7d3d1a 1/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2* See cxx source for full Copyright notice */
3
4// $Id$
efb408b3 5// $MpId: AliMpTriggerSegmentation.h,v 1.5 2006/03/17 16:42:36 ivana Exp $
ff7d3d1a 6
9b97f64e 7/// \ingroup trigger
ff7d3d1a 8/// \class AliMpTriggerSegmentation
9/// \brief Implementation of AliMpVSegmentation for trigger slats.
85fec35d 10/// \author Laurent Aphecetche
ff7d3d1a 11
12#ifndef ALI_MP_TRIGGER_SEGMENTATION_H
13#define ALI_MP_TRIGGER_SEGMENTATION_H
14
15#ifndef ROOT_TString
16#include "TString.h"
17#endif
18
19#ifndef ALI_MP_V_SEGMENTATION_H
20#include "AliMpVSegmentation.h"
21#endif
22
23#ifndef ALI_MP_PAD_H
24#include "AliMpPad.h"
25#endif
26
27class AliMpMotifPosition;
28class AliMpPCB;
29class AliMpTrigger;
30
31class AliMpTriggerSegmentation : public AliMpVSegmentation
32{
33public:
34 AliMpTriggerSegmentation();
35 AliMpTriggerSegmentation(const AliMpTrigger* slat);
36 virtual ~AliMpTriggerSegmentation();
37
38 virtual AliMpVPadIterator* CreateIterator(const AliMpArea& area) const;
39
40 const char* GetName() const;
41
42 Bool_t HasPad(const AliMpIntPair& indices) const;
43
026b7442 44 Int_t MaxPadIndexX() const;
45 Int_t MaxPadIndexY() const;
efb408b3 46 Int_t NofPads() const { return fNofStrips; }
ff7d3d1a 47
48 virtual AliMpPad PadByLocation(const AliMpIntPair& location,
49 Bool_t warning) const;
50
51 virtual AliMpPad PadByIndices(const AliMpIntPair& indices,
52 Bool_t warning) const;
53
54 virtual AliMpPad PadByPosition(const TVector2& position,
55 Bool_t warning) const;
56
57 const AliMpTrigger* Slat() const;
58
63bcb3c3 59 virtual void GetAllElectronicCardIDs(TArrayI& ecn) const;
60
61 AliMpPlaneType PlaneType() const;
62
63 TVector2 Dimensions() const;
64
884a73f1 65protected:
66 AliMpTriggerSegmentation(const AliMpTriggerSegmentation& right);
67 AliMpTriggerSegmentation& operator = (const AliMpTriggerSegmentation& right);
68
ff7d3d1a 69private:
70 const AliMpTrigger* fkSlat; // Slat
efb408b3 71 Int_t fNofStrips; // Number of strips in this slat
72 ClassDef(AliMpTriggerSegmentation,2) // Segmentation for slat trigger stations
ff7d3d1a 73};
74
75#endif