AliRoot Core  da88d91 (da88d91)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMFTLadderSegmentation.h
Go to the documentation of this file.
1 #ifndef AliMFTLadderSegmentation_H
2 #define AliMFTLadderSegmentation_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 "TClonesArray.h"
17 #include "AliMFTVSegmentation.h"
18 #include "AliMFTChipSegmentation.h"
19 
20 //====================================================================================================================================================
21 
23 
24 public:
25 
27  AliMFTLadderSegmentation(UInt_t uniqueID);
30 
31  virtual ~AliMFTLadderSegmentation() { if(fChips){fChips->Delete(); delete fChips; fChips=NULL;} }
32  virtual void Print(Option_t* opt="");
33  virtual void Clear(const Option_t* /*opt*/) { if(fChips){fChips->Clear();} }
34 
35  AliMFTChipSegmentation* GetSensor(Int_t sensor) const ;
36 
37 
38  void CreateSensors();
39 
41  Int_t GetNSensors() const { return fNSensors; };
43  void SetNSensors(Int_t val) {fNSensors = val;};
44 
45  AliMFTChipSegmentation* GetChip(Int_t chipNumber) const {return GetSensor(chipNumber);};
46 
47 private:
48 
49  Int_t fNSensors;
50  TClonesArray *fChips;
51 
53  ClassDef(AliMFTLadderSegmentation, 1);
55 
56 };
57 
58 //====================================================================================================================================================
59 
60 #endif
61 
virtual void Print(Option_t *opt="")
Chip Segmentation description.
Int_t fNSensors
Number of Sensors holded by the ladder.
Abstract base class for MFT Segmentation description.
TClonesArray * fChips
Array of pointer to AliMFTChipSegmentation.
void CreateSensors()
Creates the Sensors Segmentation array on the Ladder.
void SetNSensors(Int_t val)
Set number of Sensor on the ladder.
Int_t GetNSensors() const
Returns number of Sensor on the ladder.
virtual void Clear(const Option_t *)
AliMFTChipSegmentation * GetSensor(Int_t sensor) const
AliMFTLadderSegmentation()
Default constructor.
Description of the virtual segmentation of a ladder.
AliMFTChipSegmentation * GetChip(Int_t chipNumber) const
AliMFTLadderSegmentation & operator=(const AliMFTLadderSegmentation &ladder)