Coherent WaveBurst
Reference Guide
CWB Documentation
Main Page
Namespaces
All Classes
Files
gitlab
ROOT
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
SOFT
cWB
library
master_0bc430d
tools
toolbox
tutorials
TestMerge.C
Go to the documentation of this file.
1
//
2
// Test Merge Segment Lists
3
// Author : Gabriele Vedovato
4
5
6
#define WRITE_OFILE
7
8
{
9
10
int
nDQF
=12;
11
dqfile
DQF
[12]={
12
{0 ,
"S6D_R9_segments/S6D_OFFLINE_L1SCIENCE.txt"
, 0, 0.,
false
,
false
},
13
{0 ,
"S6D_R9_segments/S6D_OFFLINE_L1_DQCAT1SEGMENTS.txt"
, 1, 0., true ,
false
},
14
{0 ,
"S6D_R9_segments/S6D_OFFLINE_L1_DQCAT2SEGMENTS.txt"
, 2, 0., true ,
false
},
15
{0 ,
"S6D_R9_segments/S6D_OFFLINE_L1_DQCAT4SEGMENTS.txt"
, 1, 0., true ,
false
},
16
{1 ,
"S6D_R9_segments/S6D_OFFLINE_H1SCIENCE.txt"
, 0, 0.,
false
,
false
},
17
{1 ,
"S6D_R9_segments/S6D_OFFLINE_H1_DQCAT1SEGMENTS.txt"
, 1, 0., true ,
false
},
18
{1 ,
"S6D_R9_segments/S6D_OFFLINE_H1_DQCAT2SEGMENTS.txt"
, 2, 0., true ,
false
},
19
{1 ,
"S6D_R9_segments/S6D_OFFLINE_H1_DQCAT4SEGMENTS.txt"
, 1, 0., true ,
false
},
20
{2 ,
"S6D_R9_segments/S6D_OFFLINE_V1SCIENCE.txt"
, 0, 0.,
false
,
false
},
21
{2 ,
"S6D_R9_segments/S6D_OFFLINE_V1_DQCAT1SEGMENTS.txt"
, 1, 0., true ,
false
},
22
{2 ,
"S6D_R9_segments/S6D_OFFLINE_V1_DQCAT2SEGMENTS.txt"
, 2, 0., true ,
false
},
23
{2 ,
"S6D_R9_segments/S6D_OFFLINE_V1_DQCAT4SEGMENTS.txt"
, 1, 0., true ,
false
},
24
};
25
26
cwbtb
tb
;
27
28
int
dqcat
= 1;
29
std::vector<waveSegment>
olist
;
30
double
ctime
=tb.readSegList(nDQF, DQF, dqcat, olist);
31
cout <<
"ctime : "
<<
int
(ctime) <<
" sec "
<< ctime/3600. <<
" h "
<< ctime/86400. <<
" day"
<< endl;
32
33
#ifdef WRITE_OFILE
34
tb.dumpSegList(olist,
"olist.txt"
,
false
);
35
#endif
36
37
//olist.clear();
38
39
exit
(0);
40
}
DQF
dqfile DQF[12]
Definition:
TestMerge.C:11
nDQF
nDQF
Definition:
cwb_eced.C:92
int
i() int(T_cor *100))
dqfile
Definition:
Toolbox.hh:65
ctime
double ctime
Definition:
TestMerge.C:30
olist
std::vector< waveSegment > olist
Definition:
TestMerge.C:29
tb
cwbtb tb
Definition:
TestMerge.C:26
dqcat
int dqcat
Definition:
TestMerge.C:28
exit
exit(0)