]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSgeom.h
First version of combined PID (Yu.Belikov)
[u/mrichter/AliRoot.git] / ITS / AliITSgeom.h
index 9ef4a4c411f738d31a57fc9784e5a2ad2198aeac..02e89f02719be1b0d7fc1d9b6e51ddb95afbfa8f 100644 (file)
 // the information needed to do the coordinate transformation are kept in
 // a specialized structure for ease of implementation.
 /////////////////////////////////////////////////////////////////////////
+#include <Riostream.h>
 #include <TObject.h>
 #include <TObjArray.h>
 #include <TVector.h>
 
 #include "AliITSgeomMatrix.h"
 
-class ofstream;
-class ifstream;
 
 typedef enum {kSPD=0, kSDD=1, kSSD=2, kSSDp=3,kSDDp=4} AliITSDetector;
 
@@ -88,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);