// ------------------------------------------------------------------------- // ----- CbmEmcReader header file ----- // ----- Created 14/08/06 by S.Spataro ----- // ------------------------------------------------------------------------- #ifndef CBMEMCREADER_HH #define CBMEMCREADER_HH 1 #include #include "TString.h" using namespace std; class DataG4 { public: DataG4(){} ~DataG4(){} int crystal, row, module; double theta, phi, tau; double posX, posY, posZ; double pDz, pTheta, pPhi, pDy1, pDx1, pDx2, pAlp1, pDy2, pDx3, pDx4, pAlp2; }; class CbmEmcReader { public: CbmEmcReader(TString name); ~CbmEmcReader(); vector g4data; TString sName; void fill_vector(); int GetMaxModules(); int GetMaxRows(int module); int GetMaxCrystals(int module, int row); int GetMinModules(); int GetMinRows(int module); int GetMinCrystals(int module, int row); DataG4 GetData(int module, int row, int crystal); }; #endif //CBMEMCREADER_HH