]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSgeomTGeo.h
update for the NUA
[u/mrichter/AliRoot.git] / ITS / AliITSgeomTGeo.h
index a6cddd34a2f9c99d5faa56278a75c57b85efdae1..0313cc76cd55e446770478abd4f1e4c5daf3ab72 100644 (file)
@@ -24,6 +24,8 @@ class AliITSgeomTGeo : public TObject {
   AliITSgeomTGeo() { } // Default constructor
   virtual ~AliITSgeomTGeo() { } // Destructor
 
+  // This function returns the total number of ITS modules 
+  static Int_t GetNModules() {return fgkNModules;}
   // This function returns the number of detectors/ladder for a given layer 
   static Int_t GetNDetectors(Int_t lay) {return fgkNDetectors[lay-1];}
   // This function returns the number of ladders for a given layer
@@ -75,10 +77,23 @@ class AliITSgeomTGeo : public TObject {
   static Bool_t GetTrackingMatrix(Int_t lay,Int_t lad,Int_t det, TGeoHMatrix &m)
     { return GetTrackingMatrix(GetModuleIndex(lay,lad,det),m); }
 
- private:
+  static Bool_t LocalToGlobal(Int_t index, const Double_t *loc, Double_t *glob);
+  static Bool_t LocalToGlobal(Int_t lay, Int_t lad, Int_t det,
+                             const Double_t *loc, Double_t *glob)
+    { return LocalToGlobal(GetModuleIndex(lay,lad,det), loc, glob);}
+
+  static Bool_t GlobalToLocal(Int_t index, const Double_t *glob, Double_t *loc);
+  static Bool_t GlobalToLocal(Int_t lay, Int_t lad, Int_t det,
+                             const Double_t *glob, Double_t *loc)
+    { return GlobalToLocal(GetModuleIndex(lay,lad,det), glob, loc);}
+
+  static Bool_t LocalToGlobalVect(Int_t index, const Double_t *loc, Double_t *glob);
+  static Bool_t GlobalToLocalVect(Int_t index, const Double_t *glob, Double_t *loc);
 
   enum {kNLayers = 6}; // The number of layers.
 
+ private:
+
   static Bool_t       GetLayer(Int_t index,Int_t &lay,Int_t &index2);
   static TGeoPNEntry* GetPNEntry(Int_t index);