moench great stuff

git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@541 951219d9-93cf-4727-9268-0efd64621fa3
This commit is contained in:
l_msdetect
2013-05-06 14:17:09 +00:00
parent 9c2c76237f
commit 1ed4017988
2 changed files with 16 additions and 12 deletions

View File

@ -1008,7 +1008,7 @@ int slsReceiverFuncs::moench_read_frame(){
offset = 4;
int packetOffset = 0;
int thisFrameNumber = (index & (MOENCH_FRAME_INDEX_MASK)) >> MOENCH_FRAME_INDEX_OFFSET;
cout<<"this frame number:"<<thisFrameNumber<<endl;
//cout<<"this frame number:"<<thisFrameNumber<<endl;
int packetIndex,x,y;
int iPacket = 0;
offset = 4;
@ -1017,13 +1017,13 @@ int slsReceiverFuncs::moench_read_frame(){
while (iPacket < numPackets){printf("iPacketr:%d\n",iPacket);
//read packet index
cout << endl;
cout <<"buffer:"<<hex<<(*((int*)(((char*)origVal)+packetOffset)))<<endl;
//cout <<"buffer:"<<hex<<(*((int*)(((char*)origVal)+packetOffset)))<<endl;
packetIndex = (*((int*)(((char*)origVal)+packetOffset))) & MOENCH_PACKET_INDEX_MASK;
packetIndex--;
if(packetIndex ==-1) packetIndex = 39;
cout<<"packet index:"<<hex<<packetIndex<<endl<<dec;
cout << "buffer size: " << bufferSize << " packetOffset: " << packetOffset << endl;
//cout<<"packet index:"<<hex<<packetIndex<<endl<<dec;
// cout << "buffer size: " << bufferSize << " packetOffset: " << packetOffset << endl;
//if its valid
if ((packetIndex < 40) && (packetIndex >= 0)){
// if(packetIndex == 1){
@ -1061,9 +1061,9 @@ int slsReceiverFuncs::moench_read_frame(){
iPacket++;
packetOffset = packetOffset + offset + onePacketSize;
}*/
cout<<"found or exited"<<endl;
//cout<<"found or exited"<<endl;
}
cout<<"exited loop"<<endl;
cout<<"******************* exited loop"<<endl;
}
//********************************************************