Logo Coherent WaveBurst  
Reference Guide
Logo
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
TestReadSkyDistFromLogMDC.C
Go to the documentation of this file.
1 // Read SkyDistribution From Log MDC file
2 // Author : Gabriele Vedovato
3 //
4 
5 {
6  #define N_IFO 3
7  #define LOG_FILE "/home/vedovato/S6/coherent/offline/SIMULATION/ADV_SIM_BRST6_S6a_LS2_SGQ3_L1H1V1_run100rws/BurstMDC-BRST6_S6a_LS2_SGQ3-Log.txt"
8 
9  TString ifo[N_IFO]={"L1","H1","V1"};
10  CWB::mdc MDC(N_IFO,ifo);
11 
12  vector<mdcpar> par;
14 
15  //MDC.DumpLog("TEST_LOG_INJ-Log.root");
16 
17  //CWB::mdc MDC2 = MDC;
18  //MDC2.DumpLog("TEST_LOG_INJ-Log2.root");
19 
20 
21 
22  double theta; double phi; double psi; double rho;
23  double xiota; double hrss; int ID; int id;
24  for(int n=0;n<10;n++) {
25  MDC.GetSourceCoordinates(theta, phi, psi, rho, xiota, hrss, ID, id);
26  cout << "Source : " << theta << " " << phi << " " << psi << " " << rho << endl;
27  }
28 
29  exit(0);
30 }
double psi
int n
Definition: cwb_net.C:10
TString("c")
void GetSourceCoordinates(double &theta, double &phi, double &psi, double &rho, double &iota, double &hrss, int &ID, int &id)
Definition: mdc.cc:1960
CWB::mdc MDC(N_IFO, ifo)
double phi
char ifo[NIFO_MAX][8]
void SetSkyDistribution(MDC_DISTRIBUTION sky_distribution, vector< mdcpar > par, int seed=0, bool add=false)
Definition: mdc.cc:3415
Definition: mdc.hh:216
double theta
#define LOG_FILE
double xiota
exit(0)
double rho
#define N_IFO
double hrss
vector< mdcpar > par