StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
HLTFormats.h
1 /* Written 11/23/99 cle
2  */
3 
4 /******************* NOTE ********************************************
5  * This file should never be included directly. It is included from *
6  * /DAQ/include/daqFormats.h after the necessary structs are defined *
7  *********************************************************************/
8 
9 #ifndef _HLT_FORMATS_H
10 #define _HLT_FORMATS_H
11 
12 //#define HLT_GL3_VERSION 0x20100107
13 #define HLT_GL3_VERSION 0x20110114
14 
15 // Global tracks:
16 
17 namespace star {
18  namespace rts {
19  namespace hlt {
20  enum EHLTBANKS {
21  kHLT_NONE
22  ,kHLT_EVE
23  ,kHLT_TOF
24  ,kHLT_PVPD
25  ,kHLT_EMC
26  ,kHLT_GT
27  ,kHLT_PT
28  ,kHLT_NODE
29  ,kHLT_HIPT
30  ,kHLT_DIEP
31  ,kHLT_HF
32  };
33 
34  const unsigned int NMaxGTracks = 10000;
35  const unsigned int NMaxPTracks = 10000;
36  const unsigned int NMaxTofHits = 10000;
37  const unsigned int NMaxPvpdHits = 10000;
38  const unsigned int NMaxNodes = 10000;
39  const unsigned int NMaxBemcTowers = 4800;
40  const unsigned int NMaxSN = 1000;
41 
42  struct hlt_track {
43  int id ;
44  unsigned short flag ;
45  char innerMostRow ;
46  char outerMostRow ;
47  unsigned char nHits ;
48  char reserved ;
49  unsigned char ndedx;
50  char q ;
51  float chi2[2];
52  float dedx;
53  float pt ;
54  float phi0;
55  float psi ;
56  float r0 ;
57  float tanl;
58  float z0 ;
59  float length ;
60  float dpt ;
61  float dpsi;
62  float dz0 ;
63  float dtanl ;
64  }; //16 dwords
65 
69 
70  struct HLT_GT {
71  unsigned int nGlobalTracks;
72  struct hlt_track globalTrack[NMaxGTracks];
73  };
74 
75  struct HLT_PT {
76  unsigned int nPrimaryTracks;
77  struct hlt_track primaryTrack[NMaxPTracks];
78  };
79 
80  struct hlt_TofHit{
81  short trayId;
82  short channel;
83  float tdc;
84  float tot;
85  float tof;
86  float triggertime;
87  };
89 
90 
91  struct HLT_TOF {
92  unsigned int nTofHits;
93  struct hlt_TofHit tofHit[NMaxTofHits];
94  };
95 
96  struct HLT_PVPD {
97  unsigned int nPvpdHits;
98  struct hlt_TofHit pvpdHit[NMaxPvpdHits];
99  };
100 
101  struct hlt_emcTower {
102  int adc;
103  float energy;
104 
105  float phi;
106  float eta;
107  float z;
108  int softId;
109  int daqId;
110  };
112 
113  struct HLT_EMC {
114  unsigned int nEmcTowers;
115  struct hlt_emcTower emcTower[NMaxNodes];
116  };
117 
118  struct hlt_node {
121  int tofHitSN;
123 
124  double emcMatchPhiDiff;
125  double emcMatchZEdge;
126 
127  int projChannel;
128  float localY;
129  float localZ;
130  float beta;
131  float tof;
132  float pathlength;
133  };
135 
136  struct HLT_NODE {
137  unsigned int nNodes;
138  struct hlt_node node[NMaxBemcTowers];
139  };
140 
141  struct HLT_EVE {
142  unsigned int version ;
143  unsigned int hltDecision;
144  float vertexX;
145  float vertexY;
146  float vertexZ;
147  float lmVertexX;
148  float lmVertexY;
149  float lmVertexZ;
150  float vpdVertexZ;
151  float T0;
152  float innerSectorGain;
153  float outerSectorGain;
154 
155  };
157 
159  int dau1NodeSN;
160  int dau2NodeSN;
161  float invariantMass;
162  float pt;
163  float psi;
164  float tanl;
165  int dau1SelectionBit;
166  int dau2SelectionBit;
167  };
169 
171  struct HLT_DIEP {
172  unsigned int nEPairs;
173  struct hlt_diElectronPair ePair[NMaxSN];
174  };
175 
177  struct HLT_HIPT {
178  unsigned int nHighPt;
179  int highPtNodeSN[NMaxSN];
180  };
181 
183  struct HLT_HF {
184  unsigned int nHeavyFragments;
185  int heavyFragmentSN[NMaxSN];
186  };
187 
188  } // hlt
189  } // rts
190 } // star
191 #endif
int globalTrackSN
serial number in HLT_GT
Definition: HLTFormats.h:119
float psi
azimuthal angle of the momentum at (r,..
Definition: HLTFormats.h:55
unsigned char nHits
Number of points assigned to that track.
Definition: HLTFormats.h:47
float dedx
dE/dx information
Definition: HLTFormats.h:52
int primaryTrackSN
serial number in HLT_PT
Definition: HLTFormats.h:120
float chi2[2]
chi squared of the momentum fit
Definition: HLTFormats.h:51
float r0
r (in cyl. coord.) for the first point
Definition: HLTFormats.h:56
float z0
z coordinate of the first point
Definition: HLTFormats.h:58
Definition: tof.h:15
Bank of nodes.
Definition: HLTFormats.h:118
int id
primary key
Definition: HLTFormats.h:43
Bank of bemc tower hits.
Definition: HLTFormats.h:101
int emcTowerSN
serial number in HLT_EMC
Definition: HLTFormats.h:122
float tanl
tg of the dip angle at (r,phi,z)
Definition: HLTFormats.h:57
unsigned short flag
Primaries flag=1, Secondaries flag=0.
Definition: HLTFormats.h:44
heavy fragment bank
Definition: HLTFormats.h:177
Bank with event level qualities.
Definition: HLTFormats.h:141
short channel
= nModule*6+nCell
Definition: HLTFormats.h:82
unsigned int hltDecision
HLT trigger bits.
Definition: HLTFormats.h:143
Bank of tof or pvpd hits.
Definition: HLTFormats.h:80
float phi0
azimuthal angle of the first point
Definition: HLTFormats.h:54
float pt
pt (transverse momentum) at (r,phi,z)
Definition: HLTFormats.h:53
int tofHitSN
serial number in HLT_TOF
Definition: HLTFormats.h:121
unsigned char ndedx
nr of clusters contributing to the dedx value
Definition: HLTFormats.h:49