]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/UPGRADE/AliITSURecoDet.h
Added to TrackerGlo possibility to fill control histos with residuals,pulls,chi2
[u/mrichter/AliRoot.git] / ITS / UPGRADE / AliITSURecoDet.h
index edb63bc3c81c9524ef000994367261407a7c771c..618713c10c6f679e21ec98fb2ecf8f29f32de6fd 100644 (file)
@@ -5,6 +5,7 @@
 #include <TObjArray.h>
 #include "AliITSURecoLayer.h"
 class AliITSUGeomTGeo;
+class TTree;
 
 ///////////////////////////////////////////////////////////////////////
 //                                                                   //
@@ -26,6 +27,8 @@ class AliITSURecoDet : public TNamed
   Int_t              GetNLayers()                  const {return fNLayers;}
   Int_t              GetNLayersActive()            const {return fNLayersActive;}
   Int_t              GetLrIDActive(Int_t lrActID)  const;
+  Int_t              FindLastLayerID(Double_t r, int dir)  const;
+  Int_t              FindFirstLayerID(Double_t r, int dir) const;
   AliITSURecoLayer*  GetLayer(Int_t i)             const;
   AliITSURecoLayer*  GetLayerActive(Int_t i)       const;
   AliITSUGeomTGeo*   GetGeom()                     const {return fGeom;}
@@ -36,11 +39,14 @@ class AliITSURecoDet : public TNamed
   void               AddLayer(const AliITSURecoLayer* lr);
   //
   void               ProcessClusters(Int_t mode=0);
+  void               CreateClusterArrays();
+  Int_t              LoadClusters(TTree* treeRP);
   //
   virtual void       Print(Option_t* option = "")  const;
   //
  protected:
   Bool_t             Build();
+  void               IndexLayers();
   //
  protected:
   Int_t              fNLayers;        // total number of layers
@@ -51,6 +57,9 @@ class AliITSURecoDet : public TNamed
   TObjArray          fLayersActive;   // active layers
   AliITSUGeomTGeo*   fGeom;           // ITS geometry
   //
+ protected:
+  static const Char_t*     fgkBeamPipeVolName;    // name of the beam pipe volume
+
  private:
   AliITSURecoDet(const AliITSURecoDet &source); 
   AliITSURecoDet& operator=(const AliITSURecoDet &source); 
@@ -71,14 +80,14 @@ inline Int_t AliITSURecoDet::GetLrIDActive(Int_t lrActID) const
 inline AliITSURecoLayer* AliITSURecoDet::GetLayer(Int_t i) const 
 {
   // get layer with global id=i
-  return i<fNLayers ? (AliITSURecoLayer*)fLayers.UncheckedAt(i):0;
+  return i>=0&&i<fNLayers ? (AliITSURecoLayer*)fLayers.UncheckedAt(i):0;
 }
 
 //_____________________________________________________________
 inline AliITSURecoLayer* AliITSURecoDet::GetLayerActive(Int_t i) const
 {
   // get layer with activeID=i
-  return i<fNLayersActive ? (AliITSURecoLayer*)fLayersActive.UncheckedAt(i):0;
+  return i>=0&&i<fNLayersActive ? (AliITSURecoLayer*)fLayersActive.UncheckedAt(i):0;
 }
 
 //______________________________________________________