721 |
// |
// |
722 |
DataCALO[fCALOlength] = Getevtcalo() ; |
DataCALO[fCALOlength] = Getevtcalo() ; |
723 |
fCALOlength++; |
fCALOlength++; |
724 |
cout<<" evtcalo?"<<Getevtcalo()<<endl; |
//cout<<" evtcalo?"<<Getevtcalo()<<endl; |
725 |
// |
// |
726 |
// Start here with data |
// Start here with data |
727 |
// |
// |
881 |
// |
// |
882 |
// Write the length |
// Write the length |
883 |
// |
// |
884 |
DataCALO[fSecPointer+1] = fCALOlength-fSecPointer+1 ; |
DataCALO[fSecPointer+1] = (fCALOlength-fSecPointer+1)-2 ; |
885 |
|
// total length of the packet: -2: because the words with status and length are not included |
886 |
DataCALO[fNofTStripsPointer] = NofTransmittedStrips ; |
DataCALO[fNofTStripsPointer] = NofTransmittedStrips ; |
887 |
// |
// |
888 |
// here we calculate and save the CRC |
// here we calculate and save the CRC |