1 |
mocchiut |
1.1 |
/** |
2 |
|
|
* \file TrkLevel0.cpp |
3 |
|
|
* \author Elena Vannuccini |
4 |
|
|
*/ |
5 |
|
|
#include <TrkLevel0.h> |
6 |
|
|
using namespace pamela::tracker; |
7 |
|
|
|
8 |
|
|
/** |
9 |
|
|
* Pass values from the TrkLevel0 object to a struct cTrkLevel0 (to put data in F77 common). |
10 |
|
|
*/ |
11 |
|
|
void TrkLevel0::GetCommonVar(cTrkLevel0 *l0) { |
12 |
|
|
|
13 |
|
|
Int_t countrk=0; |
14 |
|
|
|
15 |
|
|
l0->good0 = good0; |
16 |
|
|
l0->TOTDATAlength = TOTDATAlength; |
17 |
|
|
for(Int_t ii=0;ii<12;ii++){ |
18 |
|
|
l0->DAQmode[ii] = DAQmode[ii]; |
19 |
|
|
l0->DSPnumber[ii] = DSPnumber[ii]; |
20 |
|
|
l0->DATAlength[ii] = DATAlength[ii]; |
21 |
|
|
l0->eventn[ii] = eventn[ii]; |
22 |
|
|
l0->nclust[ii] = nclust[ii]; |
23 |
|
|
l0->cutc[ii] = cutc[ii]; |
24 |
|
|
l0->cutcl[ii] = cutcl[ii]; |
25 |
|
|
for(Int_t iii=0;iii<3;iii++){ |
26 |
|
|
l0->addrcluster[iii][ii] = addrcluster[ii][iii]; |
27 |
|
|
l0->signcluster[iii][ii] = signcluster[ii][iii]; |
28 |
|
|
}; |
29 |
|
|
l0->fc[ii] = fc[ii]; |
30 |
|
|
l0->compressiontime[ii] = compressiontime[ii]; |
31 |
|
|
l0->fl5[ii] = fl5[ii]; |
32 |
|
|
l0->fl4[ii] = fl4[ii]; |
33 |
|
|
l0->fl3[ii] = fl3[ii]; |
34 |
|
|
l0->fl2[ii] = fl2[ii]; |
35 |
|
|
l0->fl1[ii] = fl1[ii]; |
36 |
|
|
l0->fl6[ii] = fl6[ii]; |
37 |
|
|
l0->checksum[ii] = checksum[ii]; |
38 |
|
|
for(Int_t j=0;j<DATAlength[ii];j++){ |
39 |
|
|
l0->datatracker[countrk] = TrackerData.At(countrk); |
40 |
|
|
++countrk; |
41 |
|
|
}; |
42 |
|
|
l0->pnum[ii] = pnum[ii]; |
43 |
|
|
l0->cmdnum[ii] = cmdnum[ii]; |
44 |
|
|
l0->bid[ii] = bid[ii]; |
45 |
|
|
l0->alarm[ii] = alarm[ii]; |
46 |
|
|
l0->aswr[ii] = aswr[ii]; |
47 |
|
|
}; |
48 |
|
|
|
49 |
|
|
|
50 |
|
|
} |
51 |
|
|
|