]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONGeometryTransformer.h
Adding GetNofModuleTransformers() method
[u/mrichter/AliRoot.git] / MUON / AliMUONGeometryTransformer.h
index 9931291e755746a78b414a133a83c76b0aeb6fd6..596c51d56281eaf87d73cad1c93033874dd017ee 100644 (file)
 #define ALI_MUON_GEOMETRY_TRANSFORMER_H
 
 #include <TObject.h>
+#include <TObjArray.h>
 #include <TGeoMatrix.h>
 
-class TObjArray;
-
 class AliMUONGeometryModuleTransformer;
 
 class AliMUONGeometryTransformer : public TObject
@@ -49,6 +48,7 @@ class AliMUONGeometryTransformer : public TObject
                  Double_t& xg, Double_t& yg, Double_t& zg) const;
 
     // get methods
+    Int_t GetNofModuleTransformers() const;
     const AliMUONGeometryModuleTransformer* GetModuleTransformer(
                                Int_t index, Bool_t warn = true) const;
 
@@ -93,6 +93,10 @@ class AliMUONGeometryTransformer : public TObject
   ClassDef(AliMUONGeometryTransformer,1)  // Geometry parametrisation
 };
 
+// inline methods
+inline Int_t AliMUONGeometryTransformer::GetNofModuleTransformers() const
+{ return fModuleTransformers->GetEntriesFast(); }
+
 #endif //ALI_MUON_GEOMETRY_TRANSFORMER_H