- add protection against invalid sector/stack information in on-line track matching
[u/mrichter/AliRoot.git] / TRD / AliTRDdEdxCalibHistArray.h
CommitLineData
6951a056 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
31class TObjArray;
32class TCollection;
33
34class 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 virtual ~AliTRDdEdxCalibHistArray(){} //definition {} important for virtual
41 virtual Long64_t Merge(const TCollection* list);
42
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); }
46
47
48 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 ClassDef(AliTRDdEdxCalibHistArray,1);
53};
54
55#endif