AliRoot Core  a565103 (a565103)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMFTHalfSegmentation.h
Go to the documentation of this file.
1 #ifndef AliMFTHalfSegmentation_H
2 #define AliMFTHalfSegmentation_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 #include "AliMFTSegmentation.h"
18 #include "AliMFTConstants.h"
19 #include "AliMFTVSegmentation.h"
20 
21 //====================================================================================================================================================
22 
24 
26 
27 public:
28 
30  AliMFTHalfSegmentation(const Char_t *initFile, const Short_t id);
32 
33  virtual ~AliMFTHalfSegmentation();
34  virtual void Clear(const Option_t* /*opt*/);
35 
36  Bool_t GetID() const {return (GetUniqueID()>>12);};
37 
38  Int_t GetNHalfDisks() const { return fMFTHalfDisks->GetEntries(); }
39 
40  AliMFTHalfDiskSegmentation* GetHalfDisk(Int_t iDisk) const { if (iDisk>=0 && iDisk<fMFTHalfDisks->GetEntries()) return (AliMFTHalfDiskSegmentation*) fMFTHalfDisks->At(iDisk); else return NULL; }
41 
42 private:
43 
44  void FindHalf(TXMLEngine* xml, XMLNodePointer_t node, XMLNodePointer_t &retnode);
45  void CreateHalfDisks(TXMLEngine* xml, XMLNodePointer_t node);
46 
47  TClonesArray *fMFTHalfDisks;
48 
50  ClassDef(AliMFTHalfSegmentation, 1);
52 
53 };
54 
55 //====================================================================================================================================================
56 
57 #endif
58 
Class for the description of the structure a Half-Disk.
AliMFTHalfDiskSegmentation * GetHalfDisk(Int_t iDisk) const
void FindHalf(TXMLEngine *xml, XMLNodePointer_t node, XMLNodePointer_t &retnode)
Find Half-Disk in the XML file (private)
Abstract base class for MFT Segmentation description.
AliMFTHalfSegmentation()
Default constructor.
TClonesArray * fMFTHalfDisks
Array of pointer to AliMFTHalfDiskSegmentation.
Segmentation class for each half of the ALICE Muon Forward Tracker.
virtual void Clear(const Option_t *)
Clear the TClonesArray holding the AliMFTHalfDiskSegmentation objects.
void CreateHalfDisks(TXMLEngine *xml, XMLNodePointer_t node)
Create the Half-Disks.