New plots for trending injector efficiencies (Melinda)
[u/mrichter/AliRoot.git] / ITS / AliITSClusterParam.h
1 #ifndef ALIITSCLUSTERPARAM_H
2 #define ALIITSCLUSTERPARAM_H
3 /* Copyright(c) 1998-2007, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6 /* $Id$ */
7
8 ////////////////////////////////////////////////////
9 //                                                //
10 //  ITS cluster error and shape parameterization  //
11 //  andrea.dainese@lnl.infn.it                    //
12 ////////////////////////////////////////////////////
13
14
15 #include <TObject.h>
16 #include "AliITSRecPoint.h"
17
18 //class TTree;
19
20 //_____________________________________________________________________________
21 class AliITSClusterParam : public TObject {
22  public:
23   static AliITSClusterParam* Instance();
24   AliITSClusterParam(){}
25   virtual           ~AliITSClusterParam(){;}
26   virtual void  Print(Option_t* option = "") const;
27   void SetInstance(AliITSClusterParam *param){fgInstance = param;}
28   static void GetNTeor(Int_t layer,const AliITSRecPoint* cl,
29                        Float_t tgl,Float_t tgphitr,
30                        Float_t &ny,Float_t &nz);
31   static Int_t GetError(Int_t layer,const AliITSRecPoint*cl,
32                         Float_t tgl,Float_t tgphitr,Float_t expQ,
33                         Float_t &erry,Float_t &errz,Float_t &covyz,
34                         Bool_t addMisalErr=kTRUE);
35   static Int_t GetError(Int_t layer,const AliITSRecPoint*cl,
36                         Float_t tgl,Float_t tgphitr,Float_t expQ,
37                         Float_t &erry,Float_t &errz,
38                         Bool_t addMisalErr=kTRUE) {
39                                   Float_t covyz;
40     return GetError(layer,cl,tgl,tgphitr,expQ,erry,errz,covyz,addMisalErr);
41   }
42
43   //void FitData(TTree * tree);
44   //
45  protected:
46   static AliITSClusterParam*   fgInstance; //! Instance of this class (singleton implementation)
47   static Int_t GetErrorOrigRecPoint(const AliITSRecPoint*cl,
48                                     Float_t &erry,Float_t &errz,Float_t &covyz);
49   static Int_t GetErrorParamMI(Int_t layer,const AliITSRecPoint*cl,
50                                Float_t tgl,Float_t tgphitr,Float_t expQ,
51                                Float_t &erry,Float_t &errz);
52   static Int_t GetErrorParamAngle(Int_t layer,const AliITSRecPoint*cl,
53                                   Float_t tgl,Float_t tgphitr,
54                                   Float_t &erry,Float_t &errz);
55   static Int_t GetErrorParamAngleOld(Int_t layer,const AliITSRecPoint*cl,
56                                   Float_t tgl,Float_t tgphitr,
57                                   Float_t &erry,Float_t &errz);
58
59   ClassDef(AliITSClusterParam,1)    //  ITS cluster parametrization class
60 };
61
62 #endif