/[PAMELA software]/rawreader/inc/flag.h
ViewVC logotype

Contents of /rawreader/inc/flag.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sun Jan 28 10:55:29 2007 UTC (17 years, 10 months ago) by cafagna
Branch: MAIN
CVS Tags: v1r15, HEAD
Changes since 1.3: +1 -1 lines
File MIME type: text/plain
Main two features of this version are:
1)  the estimation of absolute time is stored  in DB and in timesync.dat
file
2) There is CLN2_flag which gives possibility:
 a) to avoid creation of cln2 files Cln2_flag=0,
 b) if Cln2_flag=1 cln2 file is created with all data in raw file
 c) if Cln2_flag=2 cln2 file is created with only new data in raw file

1 #define CODE1 0xFF //VRL
2 #define CODE2 0x46 //kadr
3 #define CODE3 0xD5 //header
4
5 #define CODE_BYTE1 0xFA //PAMELA
6 #define CODE_BYTE2 0xFE //packet
7 #define CODE_BYTE3 0xDE //header
8
9 #define NumberPack (int)(53) //Number of PAMELA packets
10
11 #define copy(x) ((x)>0 ? "cp" : "copy")
12 #define dir(y) ((y)>0 ? "mkdir" : "md")
13
14 #define Nmax (int)(1.*powf(10.,8.))//maximum allowable size of buffer, in bytes
15
16 #define Limit (int)(1.*powf(10.,5.))//maximum size of PAMELA packet, in bytes
17
18 #define GLOBAL_LEN_ER 1 //Flag to account for length error in PAMELA packets
19 #define VRL_HEADER 1 //Flag to account for VRL headers
20
21 #define CLN2_FLAG 1 //Flag to create Cln2 structure - 1; to reject old data in cln2 - 2.
22 #define CLN1_MEPHI 0 //Flag to put Cln1 file in special directory

  ViewVC Help
Powered by ViewVC 1.1.23