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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6.0 - (show annotations) (download)
Tue Feb 7 17:11:10 2006 UTC (18 years, 11 months ago) by kusanagi
Branch: MAIN
CVS Tags: yodaPreTermistors2_1/00, YODA6_2/01, YODA6_2/00, YODA6_1/00, YODA6_0/00, YODA6_3/00, yodaPreTermistores2_0/00
Changes since 1.1: +0 -0 lines
Several new features in this revision:
a) all the packets are conform to the Mass Memory Format specifications (http://people.roma2.infn.it/~cpu/Mass_Memory_Format.html)
b) unpacking either using the old files structure OR the new one file unpacking.
c) parametrized root files compression factor
d) deleting of the following packet: TofTest, TrkTest, TrkEvent.
e) the Tracker routines now work without the use of temp files.

The point a) allow Yoda to unpack in the root file all the packets generated by the CPU. According to the MassMemoryFormat; that is three possible data are available:

1) almost explicit structure of the packet (like for Log, Tracker, Mcmd, etc....);
2) dummy data collection structure (InitHeader, InitTrailer, CalibHeader, CalibTrailer);
3) just the data of the packet (almost all Alarm and Init procedures). The class regarding this packets have only one parameters, a TArrayC class, which contain the data-block included in the packet (tat is the data below the packet Header).

The point b) has been implemented as a consequence of an agreement about a more compact structure of the unpacked data. Up to now the structure of each unpacked data consisted of a folder, named after the packet type, and three files: xxx.Header.root, xxx.NamePacket.root, xxx.Registry.root.
Starting from this release YODA, by default will unpack the data in a unique root file. The structure of this file will consist of:
- several TTree(s) named after the packet type;
- into each TTree are foreseen three TBranche(s):
    - 'Header'  (the old xxx.Header.root file)
    - 'NameOfThePacket' (the old xxx.Event.root file or the xxx.Event.DETECTOR.root)
    - 'Registry' (the old xxx.Registry.root file)

Anyway is still possible, but deprecated, to unpack using the old structure, passing to the "yoda" command the optional parameter "-multifile"

The point c) has been implemented because is well know that writing time in a TTree is as much fast as much lower is the compression factor for the root file; anyway for a PAMELA dat file, a compression equal to 0 will generate a root file which will be more than two times the original size. To modify the compression parameter just add the optional parameter "-c [0-9]" to the yoda command line.

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

  ViewVC Help
Powered by ViewVC 1.1.23