coherent WaveBurst
Library Reference Guide
home
cWB_docker
git
cWB
library
tools
gwat
tutorials
TestUserDetector.C
Go to the documentation of this file.
1
//
2
// Test User Detector
3
// Author : Gabriele Vedovato
4
5
{
6
7
detectorParams
dP = {
"X1"
, 0.0, 0.0, 0.0, 0, 90, 0, 0};
8
//detectorParams dP = {"X1", 0.0, 0.0, 0.0, 0, 90, 0, 30};
9
//detectorParams dP = {"X1", 0.0, 0.0, 0.0, 0, 80, 0, 20};
10
//detectorParams dP = {"X1", 0.0, 0.0, 0.0, 0, 20, 0, -40};
11
12
detector
D
(dP);
13
14
detectorParams
udP
=
D
.
getDetectorParams
();
15
cout <<
"AzX : "
<< udP.
AzX
<< endl;
16
cout <<
"AzY : "
<< udP.
AzY
<< endl;
17
18
D
.
rotate
(-60);
19
20
udP =
D
.
getDetectorParams
();
21
cout <<
"AzX : "
<< udP.
AzX
<< endl;
22
cout <<
"AzY : "
<< udP.
AzY
<< endl;
23
24
detector
J1((
char
*)
"J1"
);
25
detectorParams
jdP = J1.getDetectorParams();
26
cout <<
"AzX : "
<< jdP.
AzX
<< endl;
27
cout <<
"AzY : "
<< jdP.
AzY
<< endl;
28
29
exit
(0);
30
}
detector::getDetectorParams
detectorParams getDetectorParams()
Definition:
detector.cc:218
detectorParams
Definition:
detector.hh:49
detectorParams::AzX
double AzX
Definition:
detector.hh:55
detectorParams::AzY
double AzY
Definition:
detector.hh:57
detector
Definition:
detector.hh:67
udP
detectorParams udP
Definition:
TestUserDetector.C:14
D
detector D(dP)
detector::rotate
void rotate(double)
Definition:
detector.cc:291
exit
exit(0)