]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSmodule.h
Code causing warning messages corrected.
[u/mrichter/AliRoot.git] / ITS / AliITSmodule.h
index d7f968bac3f301f2befd61abe66607c3d7ab8d92..74b76e3224429e7996606ba13f2b00c65fca6337 100644 (file)
@@ -7,11 +7,12 @@
 
 #include <TObject.h>
 #include <TObjArray.h>
-#include <TArrayI.h>
+#include <TArrayI.h>  // used in inline functions GetHitTrackIndex,GetHitHitIndex, and GetHitTrackAndHitIndex.
 
 class AliITS;
 class AliITShit;
 
+
 class AliITSmodule:public TObject{
 
 //________________________________________________________________
@@ -86,25 +87,30 @@ class AliITSmodule:public TObject{
     // Adds pointer of hit belonging to this module
     // and returns number of hits in this module
     Int_t  AddHit(AliITShit *hit,Int_t TrackIndex,Int_t HitIndex);
+    Int_t GetHitTrackIndex(Int_t i) {// get hit track index
+       return fTrackIndex->At(i);}
+    Int_t GetHitHitIndex(Int_t i) { 
+       // return the hit index number in TreeH for the given sorted hit in
+       // the module.
+       return fHitIndex->At(i);}
+    void GetHitTrackAndHitIndex(Int_t i,Int_t &TrackIndex,Int_t &HitIndex) {
+    // return the hit index number for the given hit. Hits are kept on
+    // file according to their track index and hit index numbers.
+      TrackIndex = fTrackIndex->At(i);HitIndex = fHitIndex->At(i);}
+    // Computes mean global location from hits that make up a track passing
+    // through a volume.
+    Bool_t MedianHitG(AliITShit *h1,AliITShit *h2,
+                     Float_t &x,Float_t &y,Float_t &z);
     void MedianHitG(Int_t index, Float_t hitx1,Float_t hity1,Float_t hitz1, 
                     Float_t hitx2,Float_t hity2,Float_t hitz2, Float_t &xMg, 
                     Float_t &yMg, Float_t &zMg);
+    // Computes mean local location from hits that make up a track passing
+    // through a volume.
+    Bool_t MedianHitL(AliITShit *h1,AliITShit *h2,
+                     Float_t &x,Float_t &y,Float_t &z);
     void MedianHitL(Int_t index, AliITShit *itsHit1, AliITShit *itsHit2, 
-                    Float_t &xMl, Float_t &yMl, Float_t &zMl);
+                    Float_t &xMl, Float_t &yMl, Float_t &zMl){};
     Double_t PathLength(Int_t index, AliITShit *itsHit1, AliITShit *itsHit2);
-    Int_t GetHitTrackIndex(Int_t i) { 
-      // get hit track index
-      return fTrackIndex->At(i);
-    }
-    Int_t GetHitHitIndex(Int_t i) { 
-      // return the hit index number in TreeH for the given sorted hit in the module.
-      return fHitIndex->At(i);
-    }
-    void GetHitTrackAndHitIndex(Int_t i,Int_t &TrackIndex,Int_t &HitIndex) {
-    // return the hit index number for the given hit. Hits are kept on
-    // file according to their track index and hit index numbers.
-      TrackIndex = fTrackIndex->At(i);HitIndex = fHitIndex->At(i);
-    }
     // returns both the track and hit index numbers for the given hit. Hits
     // are kept on file according to their track index and hit index numbers.
     void MedianHit(Int_t index, Float_t xg,Float_t yg,Float_t zg,
@@ -147,12 +153,13 @@ class AliITSmodule:public TObject{
     //________________________________________________________________
     //
     AliITS       *fITS;       // Pointer to ITS detector
-    Int_t        fIndex;      //Index of this module in ITSmodules TObjectArray
+    Int_t         fIndex;      //Index of this module in ITSmodules TObjectArray
     TObjArray    *fHitsM;     // Pointer to list of hits on this module
-    TArrayI      *fTrackIndex,*fHitIndex; // track index, hit index
-
-    ClassDef(AliITSmodule,1) // Copy the hits into a more useful order
+    TArrayI      *fTrackIndex; // track index
+    TArrayI      *fHitIndex; // hit index
 
+    ClassDef(AliITSmodule,0) // Copy the hits into a more useful order
+       // Version set to zero so that we do not write out this class.
 };
 
 #endif