LCOV - code coverage report
Current view: top level - HLT/TPCLib/tracking-ca - AliHLTTPCCASliceOutCluster.h (source / functions) Hit Total Coverage
Test: coverage.info Lines: 0 11 0.0 %
Date: 2016-06-14 17:26:59 Functions: 0 6 0.0 %

          Line data    Source code
       1             : //-*- Mode: C++ -*-
       2             : // ************************************************************************
       3             : // This file is property of and copyright by the ALICE HLT Project        *
       4             : // ALICE Experiment at CERN, All rights reserved.                         *
       5             : // See cxx source for full Copyright notice                               *
       6             : //                                                                        *
       7             : //*************************************************************************
       8             : 
       9             : 
      10             : #ifndef ALIHLTTPCCASLICEOUTCLUSTER_H
      11             : #define ALIHLTTPCCASLICEOUTCLUSTER_H
      12             : 
      13             : #include "AliHLTTPCCACompressedInputData.h"
      14             : #include "AliHLTTPCCADataCompressor.h"
      15             : 
      16             : /**
      17             :  * @class AliHLTTPCCASliceOutCluster
      18             :  * AliHLTTPCCASliceOutCluster class contains clusters which are assigned to slice tracks.
      19             :  * It is used to send the data from TPC slice trackers to the GlobalMerger
      20             :  */
      21             : class AliHLTTPCCASliceOutCluster
      22             : {
      23             :   public:
      24             : 
      25             :   GPUh() void Set( UInt_t id, UInt_t row, float x, float y, float z ){
      26             :     UInt_t rowtype;
      27             :     //if( row<64 ) rowtype = 0;
      28             :     //else if( row<128 ) rowtype = (UInt_t(2)<<30);
      29             :     //else rowtype = (1<<30);
      30             :     //fId = id|rowtype;
      31           0 :     if( row<64 ) rowtype = 0;
      32           0 :     else if( row<128 ) rowtype = 2;
      33             :     else rowtype = 1;
      34           0 :     fRowType = rowtype;
      35           0 :     fId = id;
      36           0 :     fX = x; fY = y; fZ = z;
      37           0 :   }
      38             : 
      39           0 :   GPUh() float GetX() const {return fX;}
      40           0 :   GPUh() float GetY() const {return fY;}
      41           0 :   GPUh() float GetZ() const {return fZ;}
      42           0 :   GPUh() UInt_t GetId() const {return fId; } //fId & 0x3FFFFFFF;}
      43           0 :   GPUh() UInt_t GetRowType() const {return fRowType; }//fId>>30;}
      44             : 
      45             :   private:
      46             : 
      47             :   UInt_t  fId; // Id ( slice, patch, cluster )    
      48             :   UInt_t  fRowType; // row type
      49             :   Float_t fX;// coordinates
      50             :   Float_t fY;// coordinates
      51             :   Float_t fZ;// coordinates
      52             : };
      53             : 
      54             : #endif 

Generated by: LCOV version 1.11