]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Adding GetNofModuleTransformers() method
authorivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 2 Dec 2005 09:40:04 +0000 (09:40 +0000)
committerivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 2 Dec 2005 09:40:04 +0000 (09:40 +0000)
MUON/AliMUONGeometryTransformer.cxx
MUON/AliMUONGeometryTransformer.h

index d01ab51cc2a8dd19e6986460390876f16fd085ee..db04b12e2b34680afa285c2f89e85176b25fb790 100644 (file)
@@ -24,7 +24,6 @@
 #include <sstream>
 
 #include <Riostream.h>
-#include <TObjArray.h>
 #include <TSystem.h>
 
 #include "AliLog.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