LCOV - code coverage report
Current view: top level - ITSMFT/MFT/MFTrec - AliMFTCAHit.h (source / functions) Hit Total Coverage
Test: coverage.info Lines: 1 22 4.5 %
Date: 2016-06-14 17:26:59 Functions: 1 23 4.3 %

          Line data    Source code
       1             : #ifndef AliMFTCAHit_H
       2             : #define AliMFTCAHit_H
       3             : 
       4             : #include "TObject.h"
       5             : 
       6             : //_________________________________________________________________________________
       7             : class AliMFTCAHit : public TObject {
       8             :   
       9             : public:
      10             :   
      11             :   AliMFTCAHit();
      12           0 :   ~AliMFTCAHit() {};
      13             :   
      14             :   AliMFTCAHit (const AliMFTCAHit &hit);
      15             :   AliMFTCAHit &operator=(const AliMFTCAHit&);
      16             :   
      17             :   void SetPos(Double_t x, Double_t y, Double_t z) {
      18           0 :     fPos[0] = x; fPos[1] = y; fPos[2] = z; }
      19           0 :   const Double_t *GetPos() { return fPos; }
      20             :   void SetTrackGID(Int_t gid, Int_t la, Int_t id, Int_t detid) {
      21           0 :     fTrackGID = gid;
      22           0 :     fLayer = la;
      23           0 :     fID = id;
      24           0 :     fDetElemID = detid;
      25           0 :     fIsFace = fLayer%2;
      26           0 :   }
      27           0 :   const Int_t GetTrackGID()  { return fTrackGID;  }
      28           0 :   const Int_t GetLayer()     { return fLayer;     }
      29           0 :   const Int_t GetID()        { return fID;        }
      30           0 :   const Int_t GetDetElemID() { return fDetElemID; }
      31           0 :   const Int_t IsFace()       { return fIsFace;    }
      32             :   
      33           0 :   void SetUsed() { fIsUsed = kTRUE; }
      34           0 :   const Bool_t IsUsed() { return fIsUsed; }
      35             :   
      36           0 :   void SetInRoad(Int_t i) { fInRoad[fNRoads++] = i; }
      37           0 :   const Int_t GetNRoads() { return fNRoads; }
      38           0 :   const Int_t GetInRoad(Int_t i) { return fInRoad[i]; }
      39             : 
      40           0 :   void SetMFTClsId(Int_t id) { fMFTClsId = id; }
      41           0 :   const Int_t GetMFTClsId() { return fMFTClsId; }
      42             :   
      43             : private:
      44             :   
      45             :   Int_t    fTrackGID;     // From MC track with global identifier
      46             :   Int_t    fLayer;        // Layer number
      47             :   Int_t    fID;           // Index of the hit in the layer
      48             :   Double_t fPos[3];       // X,Y,Z position
      49             :   Bool_t   fIsUsed;       // for TrackFinder
      50             :   Int_t    fDetElemID;    // ladder ID
      51             :   Int_t    fNRoads;       // the number of found roads which contain thhis hit
      52             :   Int_t    fInRoad[100];  // index of the roads
      53             :   Int_t    fIsFace;       // "0" if on the disk side towards the IP, or "1"
      54             :   Int_t    fNInL;         // number of hit in layer
      55             :   Int_t    fMFTClsId;     // ID of MFT cluster, to combine with IsFace()
      56             :   
      57          12 :   ClassDef(AliMFTCAHit,2);
      58             :   
      59             : };
      60             : #endif

Generated by: LCOV version 1.11