8 #define COORDINATES "Celestial"
30 double S = 4*pi*pow(180/pi,2);
32 cout <<
"solid angle of a pixel : " << dS << endl;
35 for(
int l=0;
l<
L;
l++) {
36 double prob = gSM->
get(
l);
38 if(prob==0) gSM->
set(
l,1
e-40);
42 TGaxis::SetMaxDigits(3);
48 h2->GetZaxis()->SetTitleOffset(0.85);
49 h2->GetZaxis()->SetTitleSize(0.03);
56 double* prob =
new double[
L];
57 for(
int l=0;
l<
L;
l++) {
58 prob[
l] = gSM->
get(
l);
61 TMath::Sort(L,prob,index,
true);
63 for(
int l=0;
l<
L;
l++) {
68 if(prob[index[
l]]>0) {
69 cout << m <<
"\tdec : " << dec <<
"\tra : " << ra <<
"\tprob : "
70 <<
value[
m] <<
"\tcumulative prob : " << cumulative << endl;
76 gSM->
Print(
"skyprobcc.png");
void set(size_t i, double a)
double getTheta(size_t i)
void Draw(int dpaletteId=0, Option_t *option="colfz")
Meyer< double > S(1024, 2)
void DrawProbabilityFromFits(TString fitsName)
double get(size_t i)
param: sky index
void Print(TString pname)
void SetOptions(TString projection="hammer", TString coordinate="Geographic", double resolution=1, bool goff=false)
void SetZaxisTitle(TString zAxisTitle)