23 #define COORDINATES "Geographic" 24 #define WORLD_MAP_DIR "$CWB_GWAT/data/" 42 if(gSystem->Getenv(
"CWB_ANTPAT_POLARIZATION")!=NULL) {
43 TString cwb_antpat_polarization=
TString(gSystem->Getenv(
"CWB_ANTPAT_POLARIZATION"));
44 if(cwb_antpat_polarization.CompareTo(
"")!=0) {
45 if(!cwb_antpat_polarization.IsFloat()) {cout<<
"Error : CWB_ANTPAT_POLARIZATION is not a number" << endl;
exit(1);}
46 polarization=cwb_antpat_polarization.Atoi();
49 if(gSystem->Getenv(
"CWB_ANTPAT_SAVE_PLOT")!=NULL) {
50 TString cwb_save_plot=
TString(gSystem->Getenv(
"CWB_ANTPAT_SAVE_PLOT"));
51 if(cwb_save_plot.CompareTo(
"")!=0) {
52 if(!cwb_save_plot.IsFloat()) {cout<<
"Error : CWB_ANTPAT_SAVE_PLOT is not a number" << endl;
exit(1);}
53 if((cwb_save_plot.Atoi()==0)||(cwb_save_plot.Atoi()==1)) save_plot=cwb_save_plot.Atoi();
57 if(gSystem->Getenv(
"CWB_ANTPAT_PROJECTION")!=NULL) {
58 cwb_antpat_projection=
TString(gSystem->Getenv(
"CWB_ANTPAT_PROJECTION"));
59 if(cwb_antpat_projection.Contains(
"rect")) cwb_antpat_projection=
"";
74 cout <<
"Network : " << ifostr << endl;
81 h2->GetXaxis()->SetTitleSize(0.05);
82 h2->GetXaxis()->SetLabelSize(0.05);
83 h2->GetYaxis()->SetTitleSize(0.05);
84 h2->GetYaxis()->SetLabelSize(0.05);
85 h2->GetYaxis()->SetLabelFont(42);
86 h2->GetYaxis()->SetLabelFont(42);
87 h2->GetXaxis()->SetTitleFont(42);
88 h2->GetYaxis()->SetTitleFont(42);
90 if(nIFO>1) h2->GetZaxis()->SetRangeUser(0,1.0);
91 else h2->GetZaxis()->SetRangeUser(0,1.0);
93 if(polarization==2) h2->GetZaxis()->SetRangeUser(0,1.0);
97 for(
int i=0; i<
nIFO; i++) gNET->
add(pD[i]);
110 if(polarization==0)
sprintf(ofName,
"%s%s.png",ofName,
"_Fc");
111 if(polarization==1)
sprintf(ofName,
"%s%s.png",ofName,
"_Fp");
112 if(polarization==2)
sprintf(ofName,
"%s%s.png",ofName,
"_Fc_over_Fp");
113 if(polarization==3)
sprintf(ofName,
"%s%s.png",ofName,
"_Sqrt_Fp2_plus_Fc2");
115 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)