6 #define ODIR_NAME "plots" 7 #define OFILE_EXT "png" 11 #define SAMPLE_RATE 8192. 18 #define COORDINATES "Geographic" 25 #define WORLD_MAP_DIR "$WB_GWAT/data/" 45 if (!gROOT->GetClass(
"XYZVector")) gSystem->Load(
"libMathCore");
49 if(
network.Contains(
"V1")) ifo[nIFO++]=
"V1";
50 if(
network.Contains(
"H1")) ifo[nIFO++]=
"H1";
51 if(
network.Contains(
"L1")) ifo[nIFO++]=
"L1";
52 if(
network.Contains(
"G1")) ifo[nIFO++]=
"G1";
53 if(
network.Contains(
"T1")) ifo[nIFO++]=
"T1";
54 if(
network.Contains(
"H2")) ifo[nIFO++]=
"H2";
55 if(
network.Contains(
"A1")) ifo[nIFO++]=
"A1";
56 if(
network.Contains(
"O1")) ifo[nIFO++]=
"O1";
57 if(
network.Contains(
"N1")) ifo[nIFO++]=
"N1";
58 if(
network.Contains(
"E1")) ifo[nIFO++]=
"E1";
59 if(
network.Contains(
"A2")) ifo[nIFO++]=
"A2";
60 if(
network.Contains(
"J1")) ifo[nIFO++]=
"J1";
62 if(nIFO==0) {cout <<
"No detectors defined !!! " << endl;
exit(1);}
66 sprintf(ifostr,
"%s %s",ifostr,ifo[
n].Data());
68 cout <<
"Network : " << ifostr << endl;
79 gNET->
setDelay(const_cast<char*>(ifo[0].Data()));
81 #ifdef DISPLAY_WORLD_MAP 86 h2->GetXaxis()->SetTitleSize(0.05);
87 h2->GetXaxis()->SetLabelSize(0.05);
88 h2->GetYaxis()->SetTitleSize(0.05);
89 h2->GetYaxis()->SetLabelSize(0.05);
91 h2->GetYaxis()->SetLabelFont(42);
92 h2->GetYaxis()->SetLabelFont(42);
93 h2->GetXaxis()->SetTitleFont(42);
94 h2->GetYaxis()->SetTitleFont(42);
98 if(nIFO>1) h2->GetZaxis()->SetRangeUser(0,1.0);
99 else h2->GetZaxis()->SetRangeUser(0,1.0);
101 if(
polarization==2) h2->GetZaxis()->SetRangeUser(0,1.0);
106 double ph1,ph2,th1,th2;
109 for (
int k=-sTau;
k<sTau;
k++) {
110 for (
int h=-sTau;
h<sTau;
h++) {
123 #ifdef DRAW_EQUATORIAL 126 cout << phi <<
" " << theta << endl;
132 sprintf(ofileName,
"%s/",ofileName);
134 sprintf(ofileName,
"%s%s",ofileName,ifo[
n].Data());
141 cout <<
"Write : " << ofileName << endl;
142 gSM->
Print(ofileName);
void setAntenna(detector *)
param: detector (use theta, phi index array)
void DrawAntennaPattern(int polarization=-1, int dpaletteId=0, bool btitle=true, int order=6)
int Delay2Coordinates(double t1, double t2, double t3, double &ph1, double &th1, double &ph2, double &th2)
void DrawMarker(double phi, double theta, int marker, Size_t msize=1, Color_t tcolor=1)
void setSkyMaps(double sms, double t1, double t2, double p1, double p2)
double getDelay(const char *c="")
void setDelay(const char *="L1")
void SetWorldMap(bool drawWorldMap=true)
void DrawTimeSkySegmentation(TString network="L1H1V1", int polarization=1, int palette=0, bool btitle=true)
void CwbToGeographic(double ilongitude, double ilatitude, double &olongitude, double &olatitude)
sprintf(tfres,"(1/%g)x(%g) (sec)x(Hz)", 2 *df, df)
void Print(TString pname)
void SetOptions(TString projection="hammer", TString coordinate="Geographic", double resolution=1, bool goff=false)