--- DarthVader/ToFLevel2/inc/ToFLevel2.h 2008/04/18 18:55:51 1.21 +++ DarthVader/ToFLevel2/inc/ToFLevel2.h 2010/02/05 12:51:41 1.26 @@ -1,6 +1,6 @@ /** * \file ToFLevel2.h - * \author Gianfranca DeRosa / Wolfgang Menn + * \author Gianfranca DeRosa / Wolfgang Menn / Rita Carbone with E. M. supervision */ #ifndef ToFLevel2_h @@ -25,6 +25,8 @@ #include // Emiliano #include // Emiliano #include // Emiliano +#include + // // Declaration of the core fortran routines // @@ -46,6 +48,35 @@ #define ZTOF32 -24.34 +class ToFGeom : public TObject { + +private: + TArrayI ePlane, eXY; + +public: + ToFGeom() { + int plane[24] = { + 0, 0, 0, 0, 0, 0, 0, 0, + 1, 1, 1, 1, 1, 1, + 2, 2, + 3, 3, + 4, 4, 4, + 5, 5, 5 + }; + int plXY[6]= { 2, 1, 1, 2, 2, 1 }; // X==1, Y==2 */ + ePlane.Set(24,plane); + eXY.Set(6,plXY); + } + + int GetPad( int idpmt) { return (int)((idpmt+0.5)/2.); } + int GetPlane( int idpmt) { return ePlane[ GetPad(idpmt) ]; } + int GetXY( int idpmt) { return eXY[ GetPlane(idpmt) ]; } + + ClassDef(ToFGeom,1); + +}; + + /** * \brief Class which contains the PMT data * @@ -59,7 +90,7 @@ public: Int_t pmt_id; ///