7 #define COORDINATES "cWB"
15 #define EC_THR 0.5 // Euler Characteristic Threshold
26 TB.
checkFile(gSystem->Getenv(
"CWB_PARAMETERS_FILE"));
28 gROOT->Macro(cwb_parameter_name);
35 if(fileList.size()==0) {
36 cout <<
"No root files in the directory : " <<
output_dir << endl;
41 TH1F* hec =
new TH1F(
"hec",
"hec",50,0,10);
44 TH1F* hskyprob =
new TH1F(
"hskyprob",
"hskyprob",50,0,1);
47 for(
int n=0;
n<fileList.size();
n++) {
49 cout <<
n <<
" " << fileList[
n].Data() << endl;
51 int nevt =
event.GetEntries();
53 else cout <<
"nevt : " << nevt << endl;
56 TList* ifoList =
event.fChain->GetUserInfo();
58 int nIFO=ifoList->GetSize();
64 cout << dParams[
k].
name << endl;
81 for(
int l=0;
l<Psm->
size();
l++) {
82 index = Psm->neighbors(
l);
84 for(
int k=0;
k<index.
size();
k++)
if(Psm->
get(index[
k])) {M++;a+=Psm->
get(index[k]);}
86 if(M==8) gSM->
set(
l,a);
90 int ec = gSM->getEulerCharacteristic(
EC_THR);
91 cout <<
n <<
" " <<
m <<
" EC -> " << ec <<
" erA[0] -> " <<
event.erA[0] << endl;
97 gStyle->SetPalette(1);
100 sprintf(title,
"probability skymap gps = %d",
int(event->
time[0]));
106 #ifdef ANTENNA_PATTERN
108 for(
int l=0;
l<gSM->
size();
l++) {
115 if(ac<0.1) gSM->
set(
l,0);
120 double RA =
event->phi[1];
121 double DEC =
event->theta[1];
128 double skyprob = gSM->
get(l) ;
129 cout <<
"SkyProb @ injection pixel : " << l <<
" " << skyprob << endl;
130 hskyprob->Fill(skyprob);
detectorParams getDetectorParams()
virtual size_t size() const
wavearray< double > a(hp.size())
void set(size_t i, double a)
void DrawMarker(double phi, double theta, int marker, Size_t msize=1, Color_t tcolor=1)
double getTheta(size_t i)
void Draw(int dpaletteId=0, Option_t *option="colfz")
size_t getSkyIndex(double th, double ph)
param: theta param: phi
vector< TString > fileList
void SetTitle(TString title)
TString cwb_parameter_name
Float_t * phi
sqrt(h+*h+ + hx*hx)
Float_t * theta
[0]-reconstructed, [1]-injected phi angle, [2]-RA
Double_t * time
beam pattern coefficients for hx
double fabs(const Complex &x)
sprintf(tfres,"(1/%g)x(%g) (sec)x(Hz)", 2 *df, df)
double GetAntennaPattern(double phi, double theta, double psi=0., int polarization=1)
void Draw(char *smName, network *net=NULL)
double get(size_t i)
param: sky index
strcpy(output_dir,"data")
void SetOptions(TString projection="hammer", TString coordinate="Geographic", double resolution=1, bool goff=false)