AliRoot Core  da88d91 (da88d91)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMFTHalfDiskSegmentation.h
Go to the documentation of this file.
1 #ifndef AliMFTHalfDiskSegmentation_H
2 #define AliMFTHalfDiskSegmentation_H
3 
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5  * See cxx source for full Copyright notice */
6 
7 // $Id$
8 
15 
16 #include "TXMLEngine.h"
17 
19 #include "AliMFTVSegmentation.h"
20 
21 class TClonesArray;
22 
23 //====================================================================================================================================================
24 
26 
27 public:
28 
30  AliMFTHalfDiskSegmentation(UInt_t uniqueID);
32 
34 
35  virtual void Clear(const Option_t* /*opt*/);
36 
37  virtual void Print(Option_t* opt="");
38 
39  void CreateLadders(TXMLEngine* xml, XMLNodePointer_t node);
40 
42  Int_t GetNLaddersBuild() const {return fLadders->GetEntriesFast();};
43 
45  Int_t GetNLadders() const {return fNLadders;};
46 
48  void SetNLadders(Int_t val) {fNLadders = val;};
49 
50 
53  AliMFTLadderSegmentation* GetLadder(Int_t iLadder) { return ( (iLadder>=0 && iLadder<GetNLadders()) ? (AliMFTLadderSegmentation*) fLadders->At(iLadder) : NULL ) ; }
54 
56  Double_t GetZ() const {const Double_t *pos = GetTransformation()->GetTranslation(); return pos[2];};
57 
58  Int_t GetNChips();
59 
60 private:
61 
62  Int_t fNLadders;
63 
64  TClonesArray *fLadders;
65 
67  ClassDef(AliMFTHalfDiskSegmentation, 1);
69 
70 };
71 
72 //====================================================================================================================================================
73 
74 #endif
75 
Class for the description of the structure a Half-Disk.
Int_t fNLadders
Number of ladder holded by the half-disk.
virtual void Clear(const Option_t *)
Clear the TClonesArray holding the ladder segmentations.
TGeoCombiTrans * GetTransformation() const
Returns the Transformation Combining a Rotation followed by a Translation.
Double_t GetZ() const
Returns the Z position of the half-disk.
Abstract base class for MFT Segmentation description.
AliMFTLadderSegmentation * GetLadder(Int_t iLadder)
Returns pointer to the ladder segmentation object.
void SetNLadders(Int_t val)
Set the number of Ladder on the Half-Disk.
Int_t GetNLadders() const
Get the number of Ladder on the Half-Disk.
virtual void Print(Option_t *opt="")
Description of the virtual segmentation of a ladder.
void CreateLadders(TXMLEngine *xml, XMLNodePointer_t node)
Creates the Ladders on this half-Disk based on the information contained in the XML file...
Int_t GetNLaddersBuild() const
Get the number of Ladder on the Half-Disk really constructed.
TClonesArray * fLadders
Array of pointer to AliMFTLadderSegmentation.
AliMFTHalfDiskSegmentation()
Default constructor.
Int_t GetNChips()
Returns the number of sensors on the Half-Disk.