]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSClusterParam.h
Fix in ladder width assingment (Stefan)
[u/mrichter/AliRoot.git] / ITS / AliITSClusterParam.h
index 2c489c797b12ad8a0082e8289437ae636e81b90f..75b36109784f8e6e87eadb6371c98a49883be5ce 100644 (file)
 
 
 #include <TObject.h>
-#include "AliITSRecPoint.h"
+//#include "AliITSRecPoint.h"
 
-//class TTree;
+class AliITSRecPoint;
 
 //_____________________________________________________________________________
 class AliITSClusterParam : public TObject {
  public:
   static AliITSClusterParam* Instance();
-  AliITSClusterParam(){}
   virtual           ~AliITSClusterParam(){;}
   virtual void Print(Option_t* option = "") const;
   void SetInstance(AliITSClusterParam *param){fgInstance = param;}
   static void GetNTeor(Int_t layer,const AliITSRecPoint* cl,
-               Float_t theta,Float_t phi,
-               Float_t &ny,Float_t &nz);
+                      Float_t tgl,Float_t tgphitr,
+                      Float_t &ny,Float_t &nz);
+  static Int_t GetError(Int_t layer,const AliITSRecPoint*cl,
+                       Float_t tgl,Float_t tgphitr,Float_t expQ,
+                       Float_t &erry,Float_t &errz,Float_t &covyz,
+                       Bool_t addMisalErr=kTRUE);
   static Int_t GetError(Int_t layer,const AliITSRecPoint*cl,
-                Float_t theta,Float_t phi,Float_t expQ,
-                Float_t &erry,Float_t &errz);
+                       Float_t tgl,Float_t tgphitr,Float_t expQ,
+                       Float_t &erry,Float_t &errz,
+                       Bool_t addMisalErr=kTRUE) {
+                                  Float_t covyz;
+    return GetError(layer,cl,tgl,tgphitr,expQ,erry,errz,covyz,addMisalErr);
+  }
 
   //void FitData(TTree * tree);
   //
- protected:
+ private:
+  AliITSClusterParam(){}
+  AliITSClusterParam(const AliITSClusterParam &source); // copy constructor. Not to be used!
+  AliITSClusterParam& operator=(const AliITSClusterParam &source); // = operator. Not to be used!
   static AliITSClusterParam*   fgInstance; //! Instance of this class (singleton implementation)
+  static Int_t GetErrorOrigRecPoint(const AliITSRecPoint*cl,
+                                   Float_t &erry,Float_t &errz,Float_t &covyz);
+  static Int_t GetErrorParamMI(Int_t layer,const AliITSRecPoint*cl,
+                              Float_t tgl,Float_t tgphitr,Float_t expQ,
+                              Float_t &erry,Float_t &errz);
+  static Int_t GetErrorParamAngle(Int_t layer,const AliITSRecPoint*cl,
+                                 Float_t tgl,Float_t tgphitr,
+                                 Float_t &erry,Float_t &errz);
+  static Int_t GetErrorParamAngleOld(Int_t layer,const AliITSRecPoint*cl,
+                                  Float_t tgl,Float_t tgphitr,
+                                  Float_t &erry,Float_t &errz);
+
   ClassDef(AliITSClusterParam,1)    //  ITS cluster parametrization class
 };