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

Contents of /yoda/techmodel/forroutines/tracker/common/level0.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_3/19, YODA6_3/18, YODA6_3/13, YODA6_3/12, YODA6_3/11, YODA6_3/10, YODA6_3/17, YODA6_3/16, YODA6_3/15, YODA6_3/14, YODA6_3/06, YODA6_1/00, YODA6_0/00, YODA6_3/04, YODA6_3/05, YODA6_3/20, YODA6_3/07, YODA6_3/00, YODA6_3/01, YODA6_3/02, YODA6_3/03, YODA6_3/08, YODA6_3/09, yodaPreTermistores2_0/00, HEAD
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 tracker LEVEL0 data
4 *
5 *************************************************************************
6
7
8 integer good0 !flag to mark good or noise events
9
10 c HEADER block:
11 c header variables for each view:
12 integer DAQmode(12) !9 = full acquisition mode
13 !10 = compressed acquisition mode
14 !11 = compressed+full acquisition mode
15 integer DSPnumber(12) !view number
16 integer DATAlength(12) !data buffer length
17 integer eventn(12) !DSP event number
18 integer nclust(12) !nclust*2+1 = number of strips to be
19 ! included in cluster
20 integer cutc(12) !cut to include strips in a cluster
21 integer cutcl(12) !cut to search for clusters
22 integer addrcluster(12,3) !address of the greatest cluster(view,ladder)
23 integer signcluster(12,3) !signal of the greatest cluster(view,ladder)
24 integer fc(12) !compression flag
25 integer compressiontime(12) !DSP program compression time
26 integer fl5(12) !flag
27 integer fl4(12) !flag
28 integer fl3(12) !flag
29 integer fl2(12) !flag
30 integer fl1(12) !flag
31 integer fl6(12) !flag
32 integer checksum(12) !DSP header checksum
33 integer pnum(12) !peripheral number
34 integer cmdnum(12) !command number
35 integer bid(12) !board identifier
36 integer alarm(12) !alarm
37 integer aswr(12) !response length
38 integer crc(12) !DSP crc controll
39
40 c DATA block:
41 integer TOTDATAlength !sum of all views datalength (to assign
42 * ! dimension to datatracker array)
43 integer datatracker(49152)!data tracker buffer (.DAT raw data)
44
45 common/level0/
46 $ DAQmode,DSPnumber,DATAlength,eventn,nclust,cutc,cutcl
47 $ ,addrcluster,signcluster,fc,compressiontime
48 $ ,fl5,fl4,fl3,fl2,fl1,fl6,checksum,TOTDATAlength
49 $ ,datatracker,pnum,cmdnum,bid,alarm,aswr,good0,crc
50
51 SAVE/level0/

  ViewVC Help
Powered by ViewVC 1.1.23