LCOV - code coverage report
Current view: top level - ITS/ITSbase - AliITSclusterV2.h (source / functions) Hit Total Coverage
Test: coverage.info Lines: 1 25 4.0 %
Date: 2016-06-14 17:26:59 Functions: 1 34 2.9 %

          Line data    Source code
       1             : #ifndef ALIITSCLUSTERV2_H
       2             : #define ALIITSCLUSTERV2_H
       3             : /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
       4             :  * See cxx source for full Copyright notice                               */
       5             : 
       6             : //-------------------------------------------------------------------------
       7             : //                        ITS Cluster Class
       8             : //
       9             : //      Origin: Iouri Belikov, CERN, Jouri.Belikov@cern.ch 
      10             : //-------------------------------------------------------------------------
      11             : 
      12             : #include "TMath.h"
      13             : #include "AliCluster.h"
      14             : #include "AliITSRecoParam.h"
      15             : 
      16             : //_____________________________________________________________________________
      17           0 : class AliITSclusterV2 : public AliCluster {
      18             : public:
      19             :   AliITSclusterV2(); 
      20             :   AliITSclusterV2(Int_t *lab,Float_t *hit, Int_t *info); 
      21           0 :   void Use(Int_t = 0) {fQ=-fQ;}
      22           0 :   void UnUse() {fQ=TMath::Abs(fQ);}
      23           0 :   void SetQ(Float_t q) {fQ=q;}
      24           0 :   void SetDetectorIndex(Int_t i) { fIndex=i; }
      25           0 :   void SetLayer(Int_t layer) {fLayer=layer;}
      26           0 :   void SetNz(Int_t nz) {fNz =nz;}
      27           0 :   void SetNy(Int_t ny){fNy=ny;}
      28           0 :   void SetChargeRatio(Float_t ratio) { fChargeRatio = ratio;}
      29           0 :   void SetPhiR(Float_t y) { fChargeRatio=y; }
      30           0 :   void SetType(Int_t type){ fType=type;}
      31           0 :   void SetDeltaProbability(Float_t prob){fDeltaProb = prob;}
      32             : 
      33           0 :   Int_t IsUsed() const {return (fQ<0)?1:0;}
      34           0 :   Float_t GetQ() const {return TMath::Abs(fQ);}
      35           0 :   Int_t GetDetectorIndex() const { return 0x3FF&fIndex; }
      36           0 :   Int_t GetLayer() const {return fLayer;}
      37           0 :   Int_t GetNz() const {return fNz;}
      38           0 :   Int_t GetNy() const {return fNy;}
      39           0 :   Float_t GetChargeRatio() const {return fChargeRatio;}
      40           0 :   Float_t GetPhiR() const {return fChargeRatio;}
      41           0 :   Int_t GetPindex() const { return 0xFFF00000&fIndex; }  //SSD clusters only
      42           0 :   Int_t GetNindex() const { return 0xFFC00&fIndex; }  //SSD clusters only
      43           0 :   Int_t GetType() const {return fType;}  // type of the cluster
      44           0 :   Float_t GetDeltaProbability() const{return fDeltaProb;} //probability to belong to the delta ray
      45             : private:
      46             :   Int_t    fIndex;    // detector index
      47             :   Float_t  fQ ;       // Q of cluster (in ADC counts)
      48             :   Char_t   fLayer;    // layer number
      49             :   Short_t   fNz;       //number of digits in Z direction
      50             :   Short_t   fNy;       //number of digits in y direction 
      51             :   Float_t  fChargeRatio; //charge ratio
      52             :   Int_t    fType;         //quality factor of the cluster
      53             :   Float_t  fDeltaProb;    // probability to be deleta electron
      54         118 :   ClassDef(AliITSclusterV2,2)  // ITS clusters
      55             : };
      56             : 
      57             : #endif
      58             : 
      59             : 

Generated by: LCOV version 1.11