]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Added function GetModuleType to return the detector type for a specific module.
authornilsen <nilsen@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 1 Oct 2001 19:50:27 +0000 (19:50 +0000)
committernilsen <nilsen@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 1 Oct 2001 19:50:27 +0000 (19:50 +0000)
ITS/AliITSgeom.h

index a0a81dc4202f89b3f514ed9bb07daeb07b57b9c8..16462bdb574a8b563f6c32897f33d354b89aed8e 100644 (file)
@@ -87,6 +87,9 @@ class AliITSgeom : public TObject {
     Int_t GetModuleIndex(const Int_t *id){
        return GetModuleIndex(id[0],id[1],id[2]);}
     void  GetModuleId(Int_t index,Int_t &lay,Int_t &lad,Int_t &det);
+    // Returns the detector type
+    Int_t GetModuleType(Int_t index){
+                          return GetGeomMatrix(index)->GetDetectorIndex();}
 //
     Int_t GetStartDet(Int_t dtype );
     Int_t GetLastDet(Int_t dtype);