5 #define JFILE "data/supercluster_931158223_75_ADV_SIM_EOBNRv2_L1H1V1_2G_OVERLAP_job1.root"
21 TFile*
jfile =
new TFile(fName);
22 if(jfile==NULL) {cout <<
"Error opening root file : " << fName.Data() << endl;
exit(1);}
24 if(jfile->Get(
"network")!=NULL) {
26 NET = *(
network*)jfile->Get(
"network");
28 cout <<
"Error : net is not contained in root file " << fName.Data() << endl;
38 if((ifoId<0)||(ifoId>=nIFO)) {
39 cout <<
"ifoId non available - must be [0:" << nIFO-1 <<
"]" << endl;
40 cout <<
"root 'ReadSparseMapFromJobFile(ifoId, resId, build_core=true/false, mask_core=false/true)'" << endl;
43 if((resId<0)||(resId>=nRES)) {
44 cout <<
"resId non available - must be [0:" << nRES-1 <<
"]" << endl;
45 cout <<
"root 'ReadSparseMapFromJobFile(ifoId, resId, build_core=true/false, mask_core=false/true)'" << endl;
55 cout <<
"Loading sparse TF map ... " << endl;
64 cout <<
"sparse map " << swname <<
" not exist in job file" << endl;
exit(1);
67 pD[
n]->
vSS.push_back(SS);
76 if(
n!=ifoId)
continue;
78 if(
i!=resId)
continue;
81 pD[
n]->
vSS[
i].Expand(build_core);
83 cout <<
"Num Slices : " << vSS->
GetSlices() << endl;
84 cout <<
"Num Layers : " << vSS->
GetLayers() << endl;
94 WTS->
hist2D->GetYaxis()->SetRangeUser(flow, fhigh);
97 sprintf(title,
"IFO = %s - Level = %d - dT = %g (sec) - dF = %g (Hz)",
99 WTS->
hist2D->SetTitle(title);
103 int xsize=WTS->
hist2D->GetNbinsX();
104 int ysize=WTS->
hist2D->GetNbinsY();
106 cout <<
"index size : " << index.
size() << endl;
107 for(
int m=0;
m<index.
size();
m++) {
112 WTS->
hist2D->SetBinContent(2*k+0,j+1,0);
113 WTS->
hist2D->SetBinContent(2*k+1,j+1,0);
120 WTS->
canvas->Print(h2name);
detector * getifo(size_t n)
param: detector index
virtual size_t size() const
float GetFreqResolution()
virtual void rate(double r)
wavearray< int > GetSparseIndex(bool bcore=true)
cout<< "skymap size : "<< L<< endl;for(int l=0;l< L;l++) sm.set(l, l);sm > const_cast< char * >("skymap.dat")
std::vector< SSeries< double > > vSS[NIFO_MAX]
virtual void start(double s)
void plot(wavearray< double > &, char *=NULL, int=1, double=0., double=0., bool=false, float=0., float=0., bool=false, float=0., bool=false)
WSeries< double > pTF[nRES]
float GetTimeResolution()
void ReadSparseMapFromJobFile(int ifoId=0, int resId=0, bool build_core=true, bool mask_core=false)
int GetHaloSlice(bool eslice=false)
sprintf(tfres,"(1/%g)x(%g) (sec)x(Hz)", 2 *df, df)
std::vector< SSeries< double > > vSS