21 #pragma GCC system_header 28 #include "TObjArray.h" 29 #include "TObjString.h" 43 cout <<
"-----> CWB_Plugin_Skymap.C" << endl;
44 cout <<
"ifo " << ifo.Data() << endl;
45 cout <<
"type " << type << endl;
59 bool batch = gROOT->IsBatch();
60 gROOT->SetBatch(
true);
62 watplot SMS(const_cast<char*>(
"sms"),200,20,800,400);
65 char strtime[1024] =
"";
70 double eventTime[
NIFO];
77 double old_cc = net->
netCC;
78 double old_rho = net->
netRHO;
84 TList *files = (TList*)gROOT->GetListOfFiles();
90 while ((file=(TSystemFile*)
next())) {
91 fname = file->GetName();
93 if(fname.Contains(
"wave_")) {froot=(TFile*)file;froot->cd();}
96 cout <<
"CWB_Plugin_skymap.C : Error - output root file not found" << endl;
100 cout <<
"CWB_Plugin_skymap.C : Error - output root file not found" << endl;
104 TDirectory* cdskymap = (TDirectory*)froot->Get(
"skymap");
105 if(cdskymap==NULL) cdskymap = froot->mkdir(
"skymap");
113 id = net->
getwc(k)->
get(const_cast<char*>(
"ID"), 0,
'L', rate);
115 for(j=0; j<(
int)
id.
size(); j++) {
117 ID = size_t(
id.data[j]+0.5);
119 EVT->
output(NULL,net,factor,ID,k);
123 int lagMin=2147483647;
124 for(n=0; n<
nIFO; n++)
if(EVT->
lag[n]<lagMin) {lagMin=
int(EVT->
lag[n]);masterDet=
n;}
129 double gps_start = EVT->
time[masterDet]-EVT->
duration[masterDet];
130 double gps_stop = EVT->
time[masterDet]+EVT->
duration[masterDet];
136 TMarker inj(EVT->
phi[1],90.-EVT->
theta[1], 29);
137 TMarker rec(EVT->
phi[0],90.-EVT->
theta[0], 29);
138 TMarker det(EVT->
phi[3],90.-EVT->
theta[3], 20);
139 inj.SetMarkerSize(2.0); inj.SetMarkerColor(kWhite);
140 rec.SetMarkerSize(2.0); rec.SetMarkerColor(kBlack);
141 det.SetMarkerSize(1.0); det.SetMarkerColor(kBlack);
145 TDirectory* cdevtdir = (TDirectory*)cdskymap->Get(evtdir);
146 if(cdevtdir==NULL) cdevtdir = cdskymap->mkdir(evtdir);
150 sprintf(fname,
"sensitivity_plus");
152 rec.Draw(); det.Draw();
if(M) inj.Draw();
155 sprintf(fname,
"sensitivity_cross");
157 rec.Draw(); det.Draw();
if(M) inj.Draw();
162 rec.Draw(); det.Draw();
if(M) inj.Draw();
167 rec.Draw(); det.Draw();
if(M) inj.Draw();
172 rec.Draw(); det.Draw();
if(M) inj.Draw();
177 rec.Draw(); det.Draw();
if(M) inj.Draw();
182 rec.Draw(); det.Draw();
if(M) inj.Draw();
187 rec.Draw(); det.Draw();
if(M) inj.Draw();
192 rec.Draw(); det.Draw();
if(M) inj.Draw();
197 rec.Draw(); det.Draw();
if(M) inj.Draw();
202 rec.Draw(); det.Draw();
if(M) inj.Draw();
205 sprintf(fname,
"polarisation");
207 rec.Draw(); det.Draw();
if(M) inj.Draw();
212 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<< 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<< "\ layers : "<< nLAYERS<< "\ dF(hz) : "<< dF<< "\ 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