Logo coherent WaveBurst  
Library Reference Guide
Logo
Log2Root2.C
Go to the documentation of this file.
1 //
2 // convert BurstMDC ascii log file to cWB root file
3 // Author : Gabriele Vedovato
4 
5 {
6 
7  #define LOGFILE "BurstMDC-RD2_G1V1_AS-Log.txt"
8  #define N_IFO 2
9 
10 
11  TString ifo[N_IFO] = {"G1","V1"};
12 
13  CWB::mdc MDC(N_IFO,ifo);
14 
15  // write log root
16  vector<mdcpar> par;
18  rootFile.ReplaceAll(".txt",".root");
19  cout << "Input Log Root File : " << LOGFILE << endl;
20  cout << "Output Log Root File : " << rootFile << endl;
21 
23 
24  MDC.DumpLog(rootFile);
25 
26  exit(0);
27 }
TString("c")
char ifo[NIFO_MAX][8]
void SetSkyDistribution(MDC_DISTRIBUTION sky_distribution, vector< mdcpar > par, int seed=0, bool add=false)
Definition: mdc.cc:3444
Definition: mdc.hh:248
#define LOGFILE
#define N_IFO
vector< mdcpar > par
Definition: Log2Root2.C:16
TString rootFile
Definition: Log2Root2.C:17
void DumpLog(TString fName, TString label="", bool append=false)
Definition: mdc.cc:5068
CWB::mdc MDC(N_IFO, ifo)
exit(0)