10 #define COORDINATES "Geographic"
19 #define IFILE_NAME "merge/wave_ADV_SIM_BRST_LF_L1H1V1_2GM_run51.M1.root"
40 h2->GetXaxis()->SetTitleSize(0.05);
41 h2->GetXaxis()->SetLabelSize(0.05);
42 h2->GetYaxis()->SetTitleSize(0.05);
43 h2->GetYaxis()->SetLabelSize(0.05);
44 h2->GetYaxis()->SetLabelFont(42);
45 h2->GetYaxis()->SetLabelFont(42);
46 h2->GetXaxis()->SetTitleFont(42);
47 h2->GetYaxis()->SetTitleFont(42);
49 h2->GetZaxis()->SetRangeUser(0,1.0);
55 if(ifile==NULL) {cout<<
"Error opening file : "<<
IFILE_NAME<<endl;
exit(1);}
56 TTree*
itree = (TTree *) gROOT->FindObject(
"waveburst");
57 if(itree==NULL) {cout<<
"Error opening tree : "<<
"waveburst"<<endl;
exit(1);}
58 itree->Draw(
"theta[1]:phi[1]",
"erA[0]>60",
"goff");
59 int isize=itree->GetSelectedRows();
60 cout <<
"isize : " << isize << endl;
61 double* itheta = itree->GetV1();
62 double* iphi = itree->GetV2();
64 for (
int i=0;i<
isize;i++) {
66 gSM->
DrawMarker(iphi[i], itheta[i], 20, 0.1, kBlack);
81 TObjString* sfile = (TObjString*)token->At(token->GetEntries()-1);
84 ofile.ReplaceAll(
".root",
"_EventsVsAntPat.png");
86 cout <<
"Write : " << ofile << endl;
size_t add(detector *)
param: detector structure return number of detectors in the network
void DrawAntennaPattern(int polarization=-1, int dpaletteId=0, bool btitle=true, int order=6)
void DrawMarker(double phi, double theta, int marker, Size_t msize=1, Color_t tcolor=1)
void DrawEventsToAntennaPattern()
void CwbToGeographic(double ilongitude, double ilatitude, double &olongitude, double &olatitude)
void Print(TString pname)
void SetOptions(TString projection="hammer", TString coordinate="Geographic", double resolution=1, bool goff=false)