12 cout <<
"L " << L << endl;
13 cout <<
"mean " << sm.
mean() << endl;
16 for(
int i=0;
i<
L;
i++) en+=pow(sm.
get(
i),2);
19 cout <<
"EN " << en*dw << endl;
22 cout <<
"alm(0,0).real()/sqrt(4*TMath::Pi()) : " << alm(0,0).real()/sqrt(4*
TMath::Pi()) << endl;
24 for(
int l=0;
l<=alm.
Lmax();
l++) {
25 int limit = TMath::Min(
l,alm.
Mmax());
26 for (
int m=0;
m<=limit;
m++) {
27 double mod = pow(alm(
l,
m).real(),2)+pow(alm(
l,
m).imag(),2);
28 norm+=
m==0 ? mod : 2*mod;
32 cout <<
"norm : " << norm <<
" = en " << en*dw <<
" from Parseval Formula" << endl;
34 TCanvas*
canvas =
new TCanvas(
"Alm",
"LVC experiment", 300,40, 600, 600);
36 TH2D* h2 =
new TH2D(
"alm",
"alm", alm.
Lmax(), 0, alm.
Lmax(), alm.
Lmax(), 0, alm.
Lmax());
39 h2->SetFillColor(kWhite);
40 h2->GetXaxis()->SetTitle(
"l");
41 h2->GetYaxis()->SetTitle(
"m");
45 for(
int l=1;
l<=alm.
Lmax();
l++) {
46 int limit = TMath::Min(
l,alm.
Mmax());
47 for (
int m=0;
m<=limit;
m++) {
48 double mod = pow(alm(
l,
m).real(),2)+pow(alm(
l,
m).imag(),2);
49 h2->SetBinContent(
l,
m,log10(mod));
50 if(max<log10(mod)) max=log10(mod);
51 if(min>log10(mod)) min=log10(mod);
55 cout <<
"min " << min <<
" max " << max << endl;
56 h2->GetZaxis()->SetRangeUser(min,max);
double min(double x, double y)
int Lmax() const
Returns the maximum l.
cout<< "skymap size : "<< L<< endl;for(int l=0;l< L;l++) sm.set(l, l);sm > const_cast< char * >("skymap.dat")
int Mmax() const
Returns the maximum m.
double get(size_t i)
param: sky index
void DrawAlmFromFits(TString fitsName)