3 #pragma GCC system_header
10 #include "TObjArray.h"
11 #include "TObjString.h"
25 cout <<
"-----> CWB_Plugin_Skymap.C" << endl;
26 cout <<
"ifo " << ifo.Data() << endl;
27 cout <<
"type " << type << endl;
41 bool batch = gROOT->IsBatch();
42 gROOT->SetBatch(
true);
47 char strtime[1024] =
"";
52 double eventTime[
NIFO];
59 double old_cc = net->
netCC;
60 double old_rho = net->
netRHO;
66 TList *
files = (TList*)gROOT->GetListOfFiles();
72 while ((file=(TSystemFile*)
next())) {
73 fname = file->GetName();
75 if(fname.Contains(
"wave_")) {froot=(TFile*)file;froot->cd();}
78 cout <<
"CWB_Plugin_skymap.C : Error - output root file not found" << endl;
82 cout <<
"CWB_Plugin_skymap.C : Error - output root file not found" << endl;
86 TDirectory* cdskymap = (TDirectory*)froot->Get(
"skymap");
87 if(cdskymap==NULL) cdskymap = froot->mkdir(
"skymap");
97 for(j=0; j<(
int)
id.
size(); j++) {
99 ID = size_t(
id.data[j]+0.5);
101 EVT->
output(NULL,net,factor,ID,k);
105 int lagMin=2147483647;
106 for(n=0; n<
nIFO; n++)
if(EVT->
lag[n]<lagMin) {lagMin=
int(EVT->
lag[n]);masterDet=
n;}
111 double gps_start = EVT->
time[masterDet]-EVT->
duration[masterDet];
112 double gps_stop = EVT->
time[masterDet]+EVT->
duration[masterDet];
118 TMarker inj(EVT->
phi[1],90.-EVT->
theta[1], 29);
119 TMarker rec(EVT->
phi[0],90.-EVT->
theta[0], 29);
120 TMarker det(EVT->
phi[3],90.-EVT->
theta[3], 20);
121 inj.SetMarkerSize(2.0); inj.SetMarkerColor(kWhite);
122 rec.SetMarkerSize(2.0); rec.SetMarkerColor(kBlack);
123 det.SetMarkerSize(1.0); det.SetMarkerColor(kBlack);
127 TDirectory* cdevtdir = (TDirectory*)cdskymap->Get(evtdir);
128 if(cdevtdir==NULL) cdevtdir = cdskymap->mkdir(evtdir);
132 sprintf(fname,
"sensitivity_plus");
134 rec.Draw(); det.Draw();
if(M) inj.Draw();
137 sprintf(fname,
"sensitivity_cross");
139 rec.Draw(); det.Draw();
if(M) inj.Draw();
144 rec.Draw(); det.Draw();
if(M) inj.Draw();
149 rec.Draw(); det.Draw();
if(M) inj.Draw();
154 rec.Draw(); det.Draw();
if(M) inj.Draw();
159 rec.Draw(); det.Draw();
if(M) inj.Draw();
164 rec.Draw(); det.Draw();
if(M) inj.Draw();
169 rec.Draw(); det.Draw();
if(M) inj.Draw();
174 rec.Draw(); det.Draw();
if(M) inj.Draw();
179 rec.Draw(); det.Draw();
if(M) inj.Draw();
184 rec.Draw(); det.Draw();
if(M) inj.Draw();
187 sprintf(fname,
"polarisation");
189 rec.Draw(); det.Draw();
if(M) inj.Draw();
194 rec.Draw(); det.Draw();
if(M) inj.Draw();
detector * getifo(size_t n)
param: detector index
Float_t * rho
biased null statistics
Double_t * start
cluster duration = stopW-startW
Float_t * duration
max cluster time relative to segment start
void CWB_Plugin(TFile *jfile, CWB::config *cfg, network *net, WSeries< double > *x, TString ifo, int type)
COHERENCE.
cout<< "skymap size : "<< L<< endl;for(int l=0;l< L;l++) sm.set(l, l);sm > const_cast< char * >("skymap.dat")
cout<< endl;cout<< "ts size = "<< ts.size()<< " ts rate = "<< ts.rate()<< endl;tf.Forward(ts, wdm);int levels=tf.getLevel();cout<< "tf size = "<< tf.size()<< endl;double dF=tf.resolution();double dT=1./(2 *dF);cout<< "rate(hz) : "<< RATE<< "\t layers : "<< nLAYERS<< "\t dF(hz) : "<< dF<< "\t dT(ms) : "<< dT *1000.<< endl;int itime=TIME_PIXEL_INDEX;int ifreq=FREQ_PIXEL_INDEX;int index=(levels+1)*itime+ifreq;double time=itime *dT;double freq=(ifreq >0)?ifreq *dF:dF/4;cout<< endl;cout<< "PIXEL TIME = "<< time<< " sec "<< endl;cout<< "PIXEL FREQ = "<< freq<< " Hz "<< endl;cout<< endl;wavearray< double > x
wavearray< double > get(char *name, size_t index=0, char atype='R', int type=1, bool=true)
param: string with parameter name param: index in the amplitude array, which define detector param: c...
std::vector< size_t > mdc__ID
void plot(wavearray< double > &, char *=NULL, int=1, double=0., double=0., bool=false, float=0., float=0., bool=false, float=0., bool=false)
network ** net
NOISE_MDC_SIMULATION.
TIter next(twave->GetListOfBranches())
Float_t * lag
time between consecutive events
void output(TTree *=NULL, network *=NULL, double=0., size_t=0, int=-1)
long likelihood(char='E', double=sqrt(2.), int=0, size_t=0, int=-1, bool=false)
Float_t * phi
sqrt(h+*h+ + hx*hx)
netevent EVT(itree, nifo)
Float_t * theta
[0]-reconstructed, [1]-injected phi angle, [2]-RA
Double_t * time
beam pattern coefficients for hx
netcluster * getwc(size_t n)
param: delay index
sprintf(tfres,"(1/%g)x(%g) (sec)x(Hz)", 2 *df, df)
skymap nSensitivity
list of wdm tranformations