16 |
#include <iostream> |
#include <iostream> |
17 |
#include <sstream> |
#include <sstream> |
18 |
#include <fstream> |
#include <fstream> |
19 |
|
#include <TAxis.h> |
20 |
|
#include <TH1F.h> |
21 |
|
#include <TROOT.h> |
22 |
|
#include <cstdlib> |
23 |
// |
// |
24 |
#include <TPaveText.h> |
#include <TPaveText.h> |
25 |
#include <TLatex.h> |
#include <TLatex.h> |
40 |
|
|
41 |
using namespace std; |
using namespace std; |
42 |
|
|
43 |
typedef struct trkword{ |
struct trkword{ |
44 |
int type; |
int type; |
45 |
int decode; |
int decode; |
46 |
}; |
}; |
345 |
// = = = = = = = = = = = = = = = = = = = = = = = = = |
// = = = = = = = = = = = = = = = = = = = = = = = = = |
346 |
Int_t ndsp=0; |
Int_t ndsp=0; |
347 |
|
|
348 |
Int_t whistomax[3072]; |
// Int_t whistomax[3072]; |
349 |
Int_t whisto[3072]; |
Int_t whisto[3072]; |
350 |
Int_t whistocomp[3072]; |
// Int_t whistocomp[3072]; |
351 |
Int_t whistofull[3072]; |
Int_t whistofull[3072]; |
352 |
|
|
353 |
// // transmitted words |
// // transmitted words |
354 |
Int_t word = 0; |
Int_t word = 0; |
355 |
Int_t iword = 0; |
Int_t iword = 0; |
356 |
Int_t ii=0,ifull[12],icomp[12],imax[12],nn=0; |
// Int_t ii=0,ifull[12],icomp[12],imax[12],nn=0; |
357 |
|
Int_t ii=0,nn=0; |
358 |
trkword thisword; |
trkword thisword; |
359 |
|
|
360 |
Int_t address,ladder; |
Int_t address,ladder; |
363 |
for(Int_t n = 0; n<12; n++){ |
for(Int_t n = 0; n<12; n++){ |
364 |
ndsp = trk->DSPnumber[n]; |
ndsp = trk->DSPnumber[n]; |
365 |
nn = ndsp-1; |
nn = ndsp-1; |
366 |
ifull[nn]=0; |
// ifull[nn]=0; |
367 |
icomp[nn]=0; |
// icomp[nn]=0; |
368 |
imax[nn]=0; |
// imax[nn]=0; |
369 |
|
|
370 |
for(Int_t vi = 0; vi< 3072; vi++){ |
for(Int_t vi = 0; vi< 3072; vi++){ |
371 |
whistomax[vi] = -200; |
// whistomax[vi] = -200; |
372 |
whistocomp[vi] = -200; |
// whistocomp[vi] = -200; |
373 |
whistofull[vi] = -200; |
whistofull[vi] = -200; |
374 |
whisto[vi] = -200; |
whisto[vi] = -200; |
375 |
} |
} |
402 |
// end of compressed data - FILL HISTO |
// end of compressed data - FILL HISTO |
403 |
//cout << ">>> COMPRESSED data" << "\n"; |
//cout << ">>> COMPRESSED data" << "\n"; |
404 |
for(ii = 0; ii < 3072; ii++){ |
for(ii = 0; ii < 3072; ii++){ |
405 |
whistocomp[ii]=whisto[ii]; |
// whistocomp[ii]=whisto[ii]; |
406 |
whisto[ii] = -200; |
whisto[ii] = -200; |
407 |
} |
} |
408 |
address = 0; |
address = 0; |