StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StTrsIos.hh
1 /***************************************************************************
2  *
3  * $Id: StTrsIos.hh,v 1.4 2003/09/02 17:59:16 perev Exp $
4  *
5  * Author: Manuel Calderon de la Barca Sanchez
6  ***************************************************************************
7  *
8  * Description: Base class for the Istream and Ostream classes for
9  * reading & writing TRS data.
10  ***************************************************************************
11  *
12  * $Log: StTrsIos.hh,v $
13  * Revision 1.4 2003/09/02 17:59:16 perev
14  * gcc 3.2 updates + WarnOff
15  *
16  * Revision 1.3 2000/01/10 23:11:32 lasiuk
17  * Include MACROS for compatibility with SUN CC5.0
18  *
19  * Revision 1.2 1999/12/08 02:10:25 calderon
20  * Modified to eliminate warnings on Linux.
21  *
22  * Revision 1.1 1999/10/11 23:55:11 calderon
23  * Version with Database Access and persistent file.
24  * Not fully tested due to problems with cons, it
25  * doesn't find the local files at compile time.
26  * Yuri suggests forcing commit to work directly with
27  * files in repository.
28  *
29  *
30  *
31  **************************************************************************/
32 #ifndef ST_TRS_IOS_HH
33 #define ST_TRS_IOS_HH
34 
35 #include "Stiostream.h"
36 #include <assert.h>
37 #include <string>
38 #include <vector>
39 #include <algorithm>
40 
41 #if defined (__SUNPRO_CC) && __SUNPRO_CC >= 0x500
42 using std::vector;
43 using std::string;
44 #endif
45 
46 class StTpcGeometry;
47 
48 class StTrsIos {
49 
50 public:
51 
52  virtual ~StTrsIos() {};
53 
54 protected:
55  unsigned int mEvents;
56  unsigned int mSectors;
57  unsigned int mRows;
58  StTpcGeometry* mGeomDb;
59 #ifndef ST_NO_TEMPLATE_DEF_ARGS
60  vector<int> padsAtRow;
61 #else
62  vector<int, allocator<int> > padsAtRow;
63 #endif
64 };
65 #endif