LCOV - code coverage report
Current view: top level - ITSMFT/MFT/MFTbase - AliMFTLadderSegmentation.h (source / functions) Hit Total Coverage
Test: coverage.info Lines: 1 6 16.7 %
Date: 2016-06-14 17:26:59 Functions: 1 12 8.3 %

          Line data    Source code
       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             : 
       9             : /// \ingroup MFTbase
      10             : /// \class AliMFTLadderSegmentation
      11             : /// \brief Description of the virtual segmentation of a ladder
      12             : ///
      13             : /// \author Raphael Tieulent <raphael.tieulent@cern.ch>
      14             : /// \date June 9th, 2015
      15             : 
      16             : #include "TClonesArray.h"
      17             : #include "AliMFTVSegmentation.h"
      18             : #include "AliMFTChipSegmentation.h"
      19             : 
      20             : //====================================================================================================================================================
      21             : 
      22             : class AliMFTLadderSegmentation : public AliMFTVSegmentation {
      23             : 
      24             : public:
      25             : 
      26             :   AliMFTLadderSegmentation();
      27             :   AliMFTLadderSegmentation(UInt_t uniqueID);
      28             :   AliMFTLadderSegmentation(const AliMFTLadderSegmentation& ladder);
      29             :   AliMFTLadderSegmentation& operator=(const AliMFTLadderSegmentation& ladder);
      30             : 
      31           0 :   virtual ~AliMFTLadderSegmentation() { if(fChips){fChips->Delete(); delete fChips; fChips=NULL;} }
      32             :   virtual void Print(Option_t* opt="");
      33           0 :   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             :   
      40             :   /// \brief Returns number of Sensor on the ladder
      41           0 :   Int_t GetNSensors() const { return fNSensors; };
      42             :   /// \brief Set number of Sensor on the ladder
      43           0 :   void SetNSensors(Int_t val) {fNSensors = val;};
      44             :   
      45           0 :   AliMFTChipSegmentation* GetChip(Int_t chipNumber) const {return GetSensor(chipNumber);};
      46             : 
      47             : private:
      48             :   
      49             :   Int_t fNSensors;      ///< \brief Number of Sensors holded by the ladder
      50             :   TClonesArray *fChips; ///< \brief Array of pointer to AliMFTChipSegmentation
      51             : 
      52             :   /// \cond CLASSIMP
      53          14 :   ClassDef(AliMFTLadderSegmentation, 1);
      54             :   /// \endcond
      55             : 
      56             : };
      57             : 
      58             : //====================================================================================================================================================
      59             :         
      60             : #endif
      61             : 

Generated by: LCOV version 1.11