LCOV - code coverage report
Current view: top level - TRD/TRDbase - AliTRDdEdxCalibHistArray.h (source / functions) Hit Total Coverage
Test: coverage.info Lines: 2 6 33.3 %
Date: 2016-06-14 17:26:59 Functions: 2 12 16.7 %

          Line data    Source code
       1             : /**************************************************************************
       2             :  * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
       3             :  *                                                                        *
       4             :  * Author: The ALICE Off-line Project.                                    *
       5             :  * Contributors are mentioned in the code where appropriate.              *
       6             :  *                                                                        *
       7             :  * Permission to use, copy, modify and distribute this software and its   *
       8             :  * documentation strictly for non-commercial purposes is hereby granted   *
       9             :  * without fee, provided that the above copyright notice appears in all   *
      10             :  * copies and that both the copyright notice and this permission notice   *
      11             :  * appear in the supporting documentation. The authors make no claims     *
      12             :  * about the suitability of this software for any purpose. It is          *
      13             :  * provided "as is" without express or implied warranty.                  *
      14             :  **************************************************************************/
      15             : //
      16             : //
      17             : //
      18             : //  Xianguo Lu 
      19             : //  lu@physi.uni-heidelberg.de
      20             : //  Xianguo.Lu@cern.ch
      21             : //
      22             : 
      23             : #ifndef ALITRDDEDXCALIBHISTARRAY_H
      24             : #define ALITRDDEDXCALIBHISTARRAY_H
      25             : 
      26             : 
      27             : #ifndef THNSPARSE_H
      28             : #include "THnBase.h"
      29             : #endif
      30             : 
      31             : class TObjArray;
      32             : class TCollection;
      33             : 
      34             : class AliTRDdEdxCalibHistArray: public TObjArray
      35             : {
      36             :  public:
      37             :   AliTRDdEdxCalibHistArray(const Bool_t kNoInv=kTRUE);
      38             :   AliTRDdEdxCalibHistArray(const AliTRDdEdxCalibHistArray &obj);
      39             :   AliTRDdEdxCalibHistArray & operator=(const AliTRDdEdxCalibHistArray &obj);
      40           0 :   virtual ~AliTRDdEdxCalibHistArray(){} //definition {} important for virtual
      41             :   virtual Long64_t Merge(const TCollection* list);
      42             : 
      43           0 :   static TString GetArrayName(){ return "TRDdEdxCalibHistArray"; }
      44           0 :   static TString GetNameAt(const Int_t iter){ return Form("TRDdEdxCalibHist%d", iter); }
      45         104 :   static Int_t GetIterator(const Bool_t kinvq, const Double_t mag, const Int_t charge){ return kinvq*4 + (mag>0)*2 + (charge>0); }
      46             : 
      47             : 
      48           0 :   THnBase * GetHist(const Bool_t kinvq, const Double_t mag, const Int_t charge){ return (THnBase*) At(GetIterator(kinvq, mag, charge)); }
      49             : 
      50             :  private:
      51             :   
      52          48 :   ClassDef(AliTRDdEdxCalibHistArray,1);
      53             : };
      54             : 
      55             : #endif

Generated by: LCOV version 1.11