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
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
}
pdiff
watplot pdiff(const_cast< char * >("subTFMap2"))
const_cast< char * >
cout<< "skymap size : "<< L<< endl;for(int l=0;l< L;l++) sm.set(l, l);sm > const_cast< char * >("skymap.dat")
p1
watplot p1(const_cast< char * >("TFMap1"))
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:132
watplot
Definition:
watplot.hh:27
testMonster
testMonster(tfmap1, tfmap2)
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
p2
watplot p2(const_cast< char * >("TFMap2"))
init
init()
Definition:
revMonster.cc:12