/[PAMELA software]/rawreader/src/Trunc.cpp
ViewVC logotype

Diff of /rawreader/src/Trunc.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by cafagna, Fri Sep 1 10:56:22 2006 UTC revision 1.2 by cafagna, Sun Dec 10 12:21:25 2006 UTC
# Line 1  Line 1 
1  //Cut file determination///////////////////////////////  //Cut file determination///////////////////////////////
2  #include "descript.h"  #include "descript.h"
3    #include "flag.h"
4    
5  int restrict(int buffer3[], long long int numP[], int Rout)  int restrict(int buffer3[], long long int numP[], int Rout)
6  {  {
# Line 7  int restrict(int buffer3[], long long in Line 8  int restrict(int buffer3[], long long in
8   int counter=0;   int counter=0;
9   for (i=7;i<1017;i++)   for (i=7;i<1017;i++)
10   {   {
11    if ((buffer3[i]==(int)(CODE1)&&buffer3[i+1]==(int)(CODE2)&& buffer3[i+2]==(int)(CODE3)&&buffer3[i+3]==Rout&&numP[2]==numP[1]+1)||    if ((buffer3[i]==(int)(CODE1)&&buffer3[i+1]==(int)(CODE2)&& buffer3[i+2]==(int)(CODE3)&&buffer3[i+3]==Rout)||
       (buffer3[i]==(int)(CODE1)&&buffer3[i+1]==(int)(CODE2)&& buffer3[i+2]==(int)(CODE3)&&buffer3[i+3]==Rout&&numP[2]==numP[0]+2)||  
12        (buffer3[i]==(int)(CODE1)&&buffer3[i+1]==(int)(CODE2)&& buffer3[i+2]==(int)(CODE3)&&numP[2]==1))        (buffer3[i]==(int)(CODE1)&&buffer3[i+1]==(int)(CODE2)&& buffer3[i+2]==(int)(CODE3)&&numP[2]==1))
13    {counter=i;}    {counter=i;}
14   }   }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.23