5 #define COORDINATES "Geographic"
6 #define WORLD_MAP_DIR "$CWB_GWAT/data/"
24 if(gSystem->Getenv(
"CWB_ANTPAT_POLARIZATION")!=NULL) {
25 TString cwb_antpat_polarization=
TString(gSystem->Getenv(
"CWB_ANTPAT_POLARIZATION"));
26 if(cwb_antpat_polarization.CompareTo(
"")!=0) {
27 if(!cwb_antpat_polarization.IsFloat()) {cout<<
"Error : CWB_ANTPAT_POLARIZATION is not a number" << endl;
exit(1);}
28 polarization=cwb_antpat_polarization.Atoi();
31 if(gSystem->Getenv(
"CWB_ANTPAT_SAVE_PLOT")!=NULL) {
32 TString cwb_save_plot=
TString(gSystem->Getenv(
"CWB_ANTPAT_SAVE_PLOT"));
33 if(cwb_save_plot.CompareTo(
"")!=0) {
34 if(!cwb_save_plot.IsFloat()) {cout<<
"Error : CWB_ANTPAT_SAVE_PLOT is not a number" << endl;
exit(1);}
35 if((cwb_save_plot.Atoi()==0)||(cwb_save_plot.Atoi()==1)) save_plot=cwb_save_plot.Atoi();
39 if(gSystem->Getenv(
"CWB_ANTPAT_PROJECTION")!=NULL) {
40 cwb_antpat_projection=
TString(gSystem->Getenv(
"CWB_ANTPAT_PROJECTION"));
41 if(cwb_antpat_projection.Contains(
"rect")) cwb_antpat_projection=
"";
56 cout <<
"Network : " << ifostr << endl;
63 h2->GetXaxis()->SetTitleSize(0.05);
64 h2->GetXaxis()->SetLabelSize(0.05);
65 h2->GetYaxis()->SetTitleSize(0.05);
66 h2->GetYaxis()->SetLabelSize(0.05);
67 h2->GetYaxis()->SetLabelFont(42);
68 h2->GetYaxis()->SetLabelFont(42);
69 h2->GetXaxis()->SetTitleFont(42);
70 h2->GetYaxis()->SetTitleFont(42);
72 if(nIFO>1) h2->GetZaxis()->SetRangeUser(0,1.0);
73 else h2->GetZaxis()->SetRangeUser(0,1.0);
75 if(polarization==2) h2->GetZaxis()->SetRangeUser(0,1.0);
79 for(
int i=0; i<
nIFO; i++) gNET->
add(pD[i]);
92 if(polarization==0)
sprintf(ofName,
"%s%s.png",ofName,
"_Fc");
93 if(polarization==1)
sprintf(ofName,
"%s%s.png",ofName,
"_Fp");
94 if(polarization==2)
sprintf(ofName,
"%s%s.png",ofName,
"_Fc_over_Fp");
95 if(polarization==3)
sprintf(ofName,
"%s%s.png",ofName,
"_Sqrt_Fp2_plus_Fc2");
97 cout <<
"Write : " << ofName << endl;
size_t add(detector *)
param: detector structure return number of detectors in the network
void DrawSitesArms(double mlength=600000., Color_t lcolor=kBlack, Size_t lwidth=1.0, Style_t lstyle=1)
void DrawAntennaPattern(int polarization=-1, int dpaletteId=0, bool btitle=true, int order=6)
void DrawSitesShortLabel(Color_t tcolor=kBlack, Size_t tsize=0.052, Font_t tfont=32)
void DrawSites(Color_t mcolor=kBlack, Size_t msize=2.0, Style_t mstyle=20)
void SetWorldMapPath(TString worldMapPath)
TString cwb_antpat_projection
void SetWorldMap(bool drawWorldMap=true)
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)