]> git.uio.no Git - u/mrichter/AliRoot.git/blame - OADB/AliOADBTrackFix.h
Implemented a remapper for parent identification in the particle tree when adding...
[u/mrichter/AliRoot.git] / OADB / AliOADBTrackFix.h
CommitLineData
6b385c92 1#ifndef ALIOADBTRACKFIX_H
6cffd6bf 2#define ALIOADBTRACKFIX_H
3/* Copyright(c) 1998-2007, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6
7//-------------------------------------------------------------------------
8// OADB class for run dependent track fixing parameters
9// Convention for phi-dependent data: 0 : 2pi
10// Author: ruben.shahoyan@cern.ch
11//-------------------------------------------------------------------------
12
13#include <TNamed.h>
14class TGraph;
15
16class AliOADBTrackFix : public TNamed
17{
18 public :
19 enum CorMode_t {kCorModeGlob, kCorModeTPCInner, kNCorModes};
20 //
21 AliOADBTrackFix();
22 AliOADBTrackFix(const char* name);
23 virtual ~AliOADBTrackFix();
24 //
25 Double_t GetPtInvCorr(int mode, double sideAfrac, double phi=0) const;
26 //
27 TGraph* GetPtInvCorrGraph(int mode,int side) const {return (TGraph*)fPtInvCor[mode][side];}
28 Double_t GetXIniPtInvCorr(int mode) const {return fXIniPtInvCorr[mode];}
29 //
30 void SetPtInvCorr(int mode,int side, const TGraph* gr);
31 void SetXIniPtInvCorr(int mode, double x=0) {fXIniPtInvCorr[mode] = x;}
32 //
33 private:
34 AliOADBTrackFix(const AliOADBTrackFix& cont);
35 AliOADBTrackFix& operator=(const AliOADBTrackFix& cont);
36
37 protected:
38 const TGraph *fPtInvCor[kNCorModes][2]; // graphs with 1/pt correction vs phi for A,C sides
39 Double_t fXIniPtInvCorr[kNCorModes]; // if >0 use as the reper X for slope,position correction of corresponding mode
40 //
41 ClassDef(AliOADBTrackFix, 1);
42};
43
44#endif