Coherent WaveBurst
Reference Guide
CWB Documentation
Main Page
Namespaces
All Classes
Files
gitlab
ROOT
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
SOFT
cWB
library
master_0bc430d
tools
cwb
tutorials
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
;
17
TString
rootFile
=
LOGFILE
;
18
rootFile.ReplaceAll(
".txt"
,
".root"
);
19
cout <<
"Input Log Root File : "
<<
LOGFILE
<< endl;
20
cout <<
"Output Log Root File : "
<< rootFile << endl;
21
22
MDC
.
SetSkyDistribution
(
MDC_LOGFILE
,
LOGFILE
,par);
23
24
MDC
.
DumpLog
(rootFile);
25
26
exit
(0);
27
}
TString
TString("c")
Definition:
cwb_report_skymap.C:111
MDC_LOGFILE
Definition:
mdc.hh:152
ifo
char ifo[NIFO_MAX][8]
Definition:
cwb1G_parameters.C:17
CWB::mdc::SetSkyDistribution
void SetSkyDistribution(MDC_DISTRIBUTION sky_distribution, vector< mdcpar > par, int seed=0, bool add=false)
Definition:
mdc.cc:3415
CWB::mdc
Definition:
mdc.hh:216
LOGFILE
#define LOGFILE
N_IFO
#define N_IFO
par
vector< mdcpar > par
Definition:
Log2Root2.C:16
rootFile
TString rootFile
Definition:
Log2Root2.C:17
CWB::mdc::DumpLog
void DumpLog(TString fName, TString label="", bool append=false)
Definition:
mdc.cc:5039
MDC
CWB::mdc MDC(N_IFO, ifo)
exit
exit(0)