]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TRD/AliTRDCalibraExbAltFit.h
Fix for proper PID configuration for both sets of cuts
[u/mrichter/AliRoot.git] / TRD / AliTRDCalibraExbAltFit.h
CommitLineData
a0bb5615 1#ifndef ALITRDCALIBRAEXBALTFIT_H
2#define ALITRDCALIBRAEXBALTFIT_H
3
4/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
6
7/* $Id: AliTRDCalibraExbAltFit.h 46327 2011-01-10 13:29:56Z cblume $ */
8
9///////////////////////////////////////////////////////////////////////////////
10// //
11// TRD calibration class for online calibration //
12// //
13///////////////////////////////////////////////////////////////////////////////
14
15//#include "TObjArray.h"
16#include "TObject.h"
17
18//class TVectorD;
19class TObjArray;
20class TH2S;
21class TTreeSRedirector;
22
23class AliTRDCalibraExbAltFit : public TObject {
24
25 public:
26
27 AliTRDCalibraExbAltFit();
28 AliTRDCalibraExbAltFit(const AliTRDCalibraExbAltFit &ped);
29 AliTRDCalibraExbAltFit(const TObjArray &obja);
30 virtual ~AliTRDCalibraExbAltFit();
31 virtual Long64_t Merge(const TCollection* list);
32 virtual void Copy(TObject &c) const;
33
34 AliTRDCalibraExbAltFit& operator = (const AliTRDCalibraExbAltFit &source);
35
36 void Update(Int_t detector, Float_t tnp, Float_t pars1);
37 void FillPEArray();
38 void Add(const AliTRDCalibraExbAltFit *ped);
39 TH2S *GetFitterHisto(Int_t detector, Bool_t force=kFALSE);
40 TH2S *GetFitterHistoForce(Int_t detector);
41 TH2S *GetFitterHistoNoForce(Int_t detector) const { return (TH2S*)fFitterHistoArray.UncheckedAt(detector);};
42 Bool_t GetParam(Int_t detector, TVectorD *param);
43 Bool_t GetError(Int_t detector, TVectorD *error);
44
45 TObjArray *GetPArray() { return &fFitterPArray; };
46 TObjArray *GetEArray() { return &fFitterEArray; };
47 TObjArray GetHistoArray() const { return fFitterHistoArray; };
48
2a1a7b36 49 void SetRobustFit(Bool_t robustFit) { fRobustFit = robustFit; };
50
a0bb5615 51 private:
52
53 Int_t fVersion; // Version of the object
54
55 TObjArray fFitterHistoArray; // TObjArray of histo2D for debugging Fitters
56 TObjArray fFitterPArray; // Array of result parameters from fitters for the detectors
57 TObjArray fFitterEArray; // Array of result errors from fitters for the detectors
58
2a1a7b36 59 Bool_t fRobustFit; // Robust fit
60
a0bb5615 61
2a1a7b36 62 ClassDef(AliTRDCalibraExbAltFit,2) // Online ExB Calibration
a0bb5615 63
64};
65
66
67
68#endif
69