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 grep " AliTRDdEdxCalibUtils::" AliTRDdEdxCalibUtils.cxx | grep "=" -v | grep -v "[6]" | grep -v printf |wc
24 grep "(" AliTRDdEdxCalibUtils.h | grep ";" | grep -v grep | grep -v ClassDef | grep -v "{" | grep -v typedef | wc
28 #ifndef ALITRDDEDXCALIBUTILS_H
29 #define ALITRDDEDXCALIBUTILS_H
40 #include "TTreeStream.h"
43 #ifndef ALITRDDEDXCALIBHISTARRAY_H
44 #include "AliTRDdEdxCalibHistArray.h"
57 class AliTRDdEdxCalibUtils
61 static void SetObjArray(TObjArray * obj){fgObjArray = obj;}
62 static TObjArray * GetObjArray();
63 static TObjArray * GetObj(const Bool_t kinvq, const Double_t mag, const Int_t charge);
64 static TObjArray* HistToObj(const THnBase *hh, Int_t run=-999, TList *lout=0x0, TTreeSRedirector *calibStream=0x0);
65 static void DeleteObjArray();
66 static Bool_t GenerateOCDB(const Int_t run=-1, const TString path="local://./");
68 static AliTRDdEdxCalibHistArray * GetHistArray(){return fgHistArray;}
69 static THnBase * GetHistAt(const Int_t iter);
70 static void IniHistArray(TList *list, const Bool_t kNoInv);
71 static Bool_t ReadHistArray(const TString filename, const TString listname);
72 static void FillHist(const AliTRDtrackV1 *trdv1, const Bool_t kinvq, const Double_t mag, const Int_t charge, const Double_t scale) ;
73 static void DeleteHistArray();
75 static Double_t GetCalibTPCscale(const Int_t tpcncls, const Double_t tpcsig);
78 static void FillHist(const Int_t ncls, const TVectorD *arrayQ, const TVectorD *arrayX, THnBase * hcalib, const Double_t scale);
79 static void GetPHCountMeanRMS(const TH1D *hnor, TH1D *&hmean);
82 static AliTRDdEdxCalibHistArray * fgHistArray; //array containing 8 THnBase!
83 static TObjArray * fgObjArray; //array containing 8 TObjArray!