StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
gl3Hit.h
1 //:>------------------------------------------------------------------
2 //: FILE: gl3Hit.h
3 //: HISTORY:
4 //: 4apr2000 first version
5 //: 28jun2000 add Coordinate Transformer class
6 //:<------------------------------------------------------------------
7 #ifndef GL3HIT
8 #define GL3HIT
9 #include <stdio.h>
10 #include <math.h>
11 #include "l3CoordinateTransformer.h"
12 
13 
14 #ifndef TRG_VERSION
15 #define TRG_VERSION 0x32
16 #endif
17 
18 
19 #include "daqFormats.h"
20 #include "L3/L3Formats.h"
21 
22 
23 
24 class gl3Hit {
25 public:
26  short rowSector ;
27  char mezzanninneCard ;
28  char readoutBoard ;
29  unsigned short charge ;
30  unsigned short flags ;
31  float x ;
32  float y ;
33  float z ;
34 public:
35  int trackId ;
36  void* nextHit ;
37  float getX ( ) { return x ; } ;
38  float getY ( ) { return y ; } ;
39  float getZ ( ) { return z ; } ;
40  short getRowSector ( ) { return rowSector ; } ;
41  unsigned short getCharge ( ) { return charge ; } ;
42  unsigned short getFlags ( ) { return flags ; } ;
43  int getTrackId ( ) { return trackId ; } ;
44  void* getNextHit ( ) { return nextHit ; } ;
45  int set ( l3CoordinateTransformer* transformer,
46  int sector, l3_cluster* cluster ) ;
47  int setFlags(unsigned short in) { flags = in; return 0; };
48 
49  void setITPCHit(l3CoordinateTransformer* tranformer, int sector, int row, double pad, double tb, unsigned short charge, unsigned short flags);
50 
51  void print ( ) ;
52 };
53 #endif
Definition: gl3Hit.h:24