/[PAMELA software]/yoda/techmodel/forroutines/tracker/common/common_readraw.f
ViewVC logotype

Annotation of /yoda/techmodel/forroutines/tracker/common/common_readraw.f

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6.2 - (hide annotations) (download)
Sat Jun 24 13:55:34 2006 UTC (18 years, 6 months ago) by kusanagi
Branch: MAIN
CVS Tags: YODA6_3/02, YODA6_3/03
Changes since 6.1: +1 -1 lines
Reset the MAXBRALEN to 100000.
The bug fixed in the previous tag (YODA6_3/01) contained MAXBRALEN=200000. It is has been established that the corruption was not in the misunderstand packet length but in a real corrupted packet, and that the 200000 size just skipped the corrupted packet.
A better bug fix will be soon released.

1 kusanagi 1.1 ***************************************************************
2     *
3     * common for readraw
4     *
5     *
6     * 10/9/2005 modified by david fedele to include general variables
7 kusanagi 6.1 * 23/6/2006 modified by elena to fix a bug
8 kusanagi 1.1 *
9     **************************************************************
10    
11 kusanagi 6.1
12     parameter (MAXBUFFLEN=z'172c8')
13     integer YODAflag
14     integer*4 length_buffer
15     integer*1 buffer(MAXBUFFLEN)
16     integer curpos !current position in buffer
17     integer startcrc
18     integer stopcrc
19     c common/yoda_buffer/YODAflag,length_buffer,buffer,curpos,startcrc,stopcrc
20 kusanagi 1.1
21     integer*2 header(16) !header: 16 2-byte words
22     integer*2 trailer(3) !trailer: 3 2-byte words
23     integer checkheader !header control flag:
24     ! =1 if some error occurred
25     ! =2 if Acquisition header,
26     ! =3 if Calibration header
27     common/pkt_structure/header,checkheader,trailer
28    
29    
30     integer DAQmode_cal !
31     integer DSPnumber_cal !view number
32     integer dataword
33     integer calibrationnumber
34     integer nused_event
35     integer ped_1,ped_2,ped_3
36     integer sig_1,sig_2,sig_3
37     integer nbad_1,nbad_2,nbad_3
38     integer ff
39     integer checksum_cal
40     integer DSPbad_o(nviews,nstrips_view) !online bad strips
41     real DSPped_o(nviews,nstrips_view) !online pedestal
42     real DSPsig_o(nviews,nstrips_view) !online sigma
43     integer crc_calib(3) !crc control per ladder
44     integer crc_hcalib !crc control per header
45    
46     common/calibration_pkt/DAQmode_cal,DSPnumber_cal
47     $ ,dataword,calibrationnumber,
48     $ nused_event,
49     $ ped_1,ped_2,ped_3,
50     $ sig_1,sig_2,sig_3,
51     $ nbad_1,nbad_2,nbad_3,
52     $ ff,checksum_cal
53     $ ,DSPped_o,DSPsig_o,DSPbad_o,crc_calib,crc_hcalib
54    
55 kusanagi 6.1 *
56     * common for data packet
57     *
58 kusanagi 6.2 parameter (MAXBTRALEN=100000)
59 kusanagi 1.1 integer DAQmode_dat !9 = full acquisition mode
60     !10 = compressed acquisition mode
61     !11 = compressed+full acquisition mode
62     integer DSPnumber_dat !view number
63     integer DATAlength_dat !data buffer length
64     integer eventn_dat !DSP event number
65     integer nclust_dat!nclust*2+1 = number of strips to be
66     integer cutc_dat !cut to include strips in a cluster
67     integer cutcl_dat !cut to search for clusters
68     integer addrcluster_dat(3) !address of the greatest cluster(view,ladder)
69     integer signcluster_dat(3) !signal of the greatest cluster(view,ladder)
70     integer fc_dat !compression flag
71     integer compressiontime_dat !DSP program compression time
72     integer fl5_dat !flag
73     integer fl4_dat !flag
74     integer fl3_dat !flag
75     integer fl2_dat !flag
76     integer fl1_dat !flag
77     integer fl6_dat !flag
78     integer checksum_dat !DSP header checksum
79 kusanagi 6.1 integer l_tra
80     integer*2 b_tra(MAXBTRALEN) !DATA BUFFER
81 kusanagi 1.1 integer pnum_dat,cmdnum_dat,bid_dat,alarm_dat,aswr_dat
82     integer crc_dat
83    
84     common/data_pkt/DAQmode_dat,DSPnumber_dat
85     $ ,eventn_dat,nclust_dat
86     $ ,cutc_dat,cutcl_dat
87     $ ,addrcluster_dat,signcluster_dat
88     $ ,fc_dat,compressiontime_dat
89     $ ,fl5_dat,fl4_dat,fl3_dat,fl2_dat,fl1_dat,fl6_dat
90 kusanagi 6.1 $ ,checksum_dat,datalength_dat,l_tra,b_tra
91 kusanagi 1.1 $ ,pnum_dat,cmdnum_dat,bid_dat
92     & ,alarm_dat,aswr_dat
93     & ,crc_dat
94    

  ViewVC Help
Powered by ViewVC 1.1.23