GWOLLUM 4.2.0
Tools for gravitational-wave analyses
Loading...
Searching...
No Matches
DetConst.h
Go to the documentation of this file.
1
6#ifndef __DetConst__
7#define __DetConst__
8
9#include "CUtils.h"
10#include <TMath.h>
11
15static const unsigned int N_KNOWN_DET = 6;
16
20static const unsigned int DET_INDEX[N_KNOWN_DET] = {0, // Unknown
21 1, // Virgo
22 2, // Hanford 1
23 3, // Hanford 2
24 4, // Livingston
25 5}; // KAGRA
26
30static const string DET_NAME[N_KNOWN_DET] = {"UNKNOWN",
31 "Virgo",
32 "Hanford1",
33 "Hanford2",
34 "Livingston",
35 "KAGRA"};
36
40static const string DET_PREFIX[N_KNOWN_DET] = {"00",
41 "V1",
42 "H1",
43 "H2",
44 "L1",
45 "K1"};
46
50static const double DET_VERTEX_LOCATION_X_SI[N_KNOWN_DET] = {0.0,
51 4.54637409900e+06,
52 -2.16141492636e+06,
53 -2.16141492636e+06,
54 -7.42760447238e+04,
55 -3777336.02};
56
60static const double DET_VERTEX_LOCATION_Y_SI[N_KNOWN_DET] = {0.0,
61 8.42989697626e+05,
62 -3.83469517889e+06,
63 -3.83469517889e+06,
64 -5.49628371971e+06,
65 3484898.411};
66
70static const double DET_VERTEX_LOCATION_Z_SI[N_KNOWN_DET] = {0.0,
71 4.37857696241e+06,
72 4.60035022664e+06,
73 4.60035022664e+06,
74 3.22425701744e+06,
75 3765313.697};
76
80static const double DET_ARM_X_DIRECTION_X[N_KNOWN_DET] = {0.0,
81 -0.70045821479,
82 -0.22389266154,
83 -0.22389266154,
84 -0.95457412153,
85 -0.3759040};
86
90static const double DET_ARM_X_DIRECTION_Y[N_KNOWN_DET] = {0.0,
91 0.20848948619,
92 0.79983062746,
93 0.79983062746,
94 -0.14158077340,
95 -0.8361583};
96
100static const double DET_ARM_X_DIRECTION_Z[N_KNOWN_DET] = {0.0,
101 0.68256166277,
102 0.55690487831,
103 0.55690487831,
104 -0.26218911324,
105 0.3994189};
106
110static const double DET_ARM_Y_DIRECTION_X[N_KNOWN_DET] = {0.0,
111 -0.05379255368,
112 -0.91397818574,
113 -0.91397818574,
114 0.29774156894,
115 0.7164378};
116
120static const double DET_ARM_Y_DIRECTION_Y[N_KNOWN_DET] = {0.0,
121 -0.96908180549,
122 0.02609403989,
123 0.02609403989,
124 -0.48791033647,
125 0.01114076};
126
130static const double DET_ARM_Y_DIRECTION_Z[N_KNOWN_DET] = {0.0,
131 0.24080451708,
132 -0.40492342125,
133 -0.40492342125,
134 -0.82054461286,
135 0.6975620};
141inline unsigned int GetDetectorIndex(const string aDetectorPrefix){
142 for(unsigned int d=0; d<N_KNOWN_DET; d++)
143 if(!aDetectorPrefix.compare(DET_PREFIX[d])) return d;
144 return 0;
145}
146
153double GetLightTravelTime(const string aDetectorPrefix1, const string aDetectorPrefix2);
154
155
156#endif
Generic C utility functions.
double GetLightTravelTime(const string aDetectorPrefix1, const string aDetectorPrefix2)
Returns the light travel time between two detectors [s].
Definition DetUtils.cc:8
unsigned int GetDetectorIndex(const string aDetectorPrefix)
Returns the detector index associated to a detector prefix.
Definition DetConst.h:141