// the information needed to do the coordinate transformation are kept in
// a specialized structure for ease of implementation.
/////////////////////////////////////////////////////////////////////////
-#include <fstream.h>
+#include <Riostream.h>
#include <TObject.h>
#include <TObjArray.h>
#include <TVector.h>
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);