1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
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 **************************************************************************/
19 // lu@physi.uni-heidelberg.de
23 #ifndef ALITRDDEDXCALIBHISTARRAY_H
24 #define ALITRDDEDXCALIBHISTARRAY_H
34 class AliTRDdEdxCalibHistArray: public TObjArray
37 AliTRDdEdxCalibHistArray(const Bool_t kNoInv=kTRUE);
38 AliTRDdEdxCalibHistArray(const AliTRDdEdxCalibHistArray &obj);
39 AliTRDdEdxCalibHistArray & operator=(const AliTRDdEdxCalibHistArray &obj);
40 virtual ~AliTRDdEdxCalibHistArray(){} //definition {} important for virtual
41 virtual Long64_t Merge(const TCollection* list);
43 static TString GetArrayName(){ return "TRDdEdxCalibHistArray"; }
44 static TString GetNameAt(const Int_t iter){ return Form("TRDdEdxCalibHist%d", iter); }
45 static Int_t GetIterator(const Bool_t kinvq, const Double_t mag, const Int_t charge){ return kinvq*4 + (mag>0)*2 + (charge>0); }
48 THnBase * GetHist(const Bool_t kinvq, const Double_t mag, const Int_t charge){ return (THnBase*) At(GetIterator(kinvq, mag, charge)); }
52 ClassDef(AliTRDdEdxCalibHistArray,1);