coherent WaveBurst
Library Reference Guide
home
cWB_docker
git
cWB
library
wat
tutorials
reviewMonster.C
Go to the documentation of this file.
1
{ gSystem->CompileMacro(
"revMonster.cc"
);
2
3
// create the time series and the corresponding TF Maps for 7 resolutions
4
5
init
();
6
7
// here we subtract the signal in TFMap_1 from the signal in TFMap_2
8
// using the overlap coefficients in the catalog accessed via the 'monster' class.
9
// this code assumes tfmap1 > tfmap2 but in general there is no such restriction
10
// for testing purposes, this is fine
11
12
int
tfmap1
= 2;
13
int
tfmap2
= 1;
14
15
testMonster
(tfmap1, tfmap2);
16
17
// plot TFMap_1 , TFMap_2, and the result of the subtraction:
18
19
watplot
p1
(const_cast<char*>(
"TFMap1"
));
20
p1
.
plot
(
pTF
[tfmap1], 4, 0, 10);
21
22
watplot
p2
(const_cast<char*>(
"TFMap2"
));
23
p2
.
plot
(
pTF
[tfmap2], 4, 0, 10);
24
25
watplot
pdiff
(const_cast<char*>(
"subTFMap2"
));
26
pdiff
.
plot
(
subTF
, 4, 0, 10);
27
28
29
}
watplot::plot
void plot(wavearray< double > &, char *=NULL, int=1, double=0., double=0., bool=false, float=0., float=0., bool=false, float=0., bool=false)
Definition:
watplot.cc:150
p2
watplot p2(const_cast< char *>("TFMap2"))
watplot
Definition:
watplot.hh:45
testMonster
testMonster(tfmap1, tfmap2)
p1
watplot p1(const_cast< char *>("TFMap1"))
pTF
WSeries< double > pTF[nRES]
Definition:
revMonster.cc:8
tfmap2
int tfmap2
Definition:
reviewMonster.C:13
subTF
WSeries< double > subTF
Definition:
revMonster.cc:9
tfmap1
int tfmap1
Definition:
reviewMonster.C:12
pdiff
watplot pdiff(const_cast< char *>("subTFMap2"))
init
init()
Definition:
revMonster.cc:12