00001 /*************************************************************************** 00002 * 00003 * $Id: StTrsIos.hh,v 1.4 2003/09/02 17:59:16 perev Exp $ 00004 * 00005 * Author: Manuel Calderon de la Barca Sanchez 00006 *************************************************************************** 00007 * 00008 * Description: Base class for the Istream and Ostream classes for 00009 * reading & writing TRS data. 00010 *************************************************************************** 00011 * 00012 * $Log: StTrsIos.hh,v $ 00013 * Revision 1.4 2003/09/02 17:59:16 perev 00014 * gcc 3.2 updates + WarnOff 00015 * 00016 * Revision 1.3 2000/01/10 23:11:32 lasiuk 00017 * Include MACROS for compatibility with SUN CC5.0 00018 * 00019 * Revision 1.2 1999/12/08 02:10:25 calderon 00020 * Modified to eliminate warnings on Linux. 00021 * 00022 * Revision 1.1 1999/10/11 23:55:11 calderon 00023 * Version with Database Access and persistent file. 00024 * Not fully tested due to problems with cons, it 00025 * doesn't find the local files at compile time. 00026 * Yuri suggests forcing commit to work directly with 00027 * files in repository. 00028 * 00029 * 00030 * 00031 **************************************************************************/ 00032 #ifndef ST_TRS_IOS_HH 00033 #define ST_TRS_IOS_HH 00034 00035 #include "Stiostream.h" 00036 #include <assert.h> 00037 #include <string> 00038 #include <vector> 00039 #include <algorithm> 00040 00041 #if defined (__SUNPRO_CC) && __SUNPRO_CC >= 0x500 00042 using std::vector; 00043 using std::string; 00044 #endif 00045 00046 class StTpcGeometry; 00047 00048 class StTrsIos { 00049 00050 public: 00051 00052 virtual ~StTrsIos() {}; 00053 00054 protected: 00055 unsigned int mEvents; 00056 unsigned int mSectors; 00057 unsigned int mRows; 00058 StTpcGeometry* mGeomDb; 00059 #ifndef ST_NO_TEMPLATE_DEF_ARGS 00060 vector<int> padsAtRow; 00061 #else 00062 vector<int, allocator<int> > padsAtRow; 00063 #endif 00064 }; 00065 #endif
1.5.9