coherent WaveBurst
Library Reference Guide
home
cWB_docker
git
cWB
library
tools
cwb
tutorials
ReadObjectLogMDC.C
Go to the documentation of this file.
1
{
2
//
3
// Draw Waveform from mdc object saved to root file
4
// Author : Gabriele Vedovato
5
6
TFile *
jfile
= TFile::Open(
"frames/L1H1V1-RDE_TST1-Log.root"
);
7
if
(jfile==NULL) {
8
cout <<
"Input ROOT File not exist !!!"
<< endl;
9
gSystem->Exit(1);
10
}
11
12
jfile->ls();
13
14
// read mdc object
15
CWB::mdc
MDC
= *(
CWB::mdc
*)jfile->
Get
(
"RDE_TST1"
);
16
17
MDC.
Print
();
18
19
//MDC.Draw("RDE_1590_0d2", 0, "hp", MDC_TF);
20
MDC.
Draw
(
"RDE_2090_0d2"
, 0,
"hp"
,
MDC_TIME
);
21
MDC.
Draw
(
"RDE_2090_0d2"
, 0,
"hx"
,
MDC_TIME
,
"SAME"
,2);
22
}
MDC_TIME
Definition:
mdc.hh:202
CWB::mdc::Draw
watplot * Draw(TString name, int id=0, TString polarization="hp", MDC_DRAW type=MDC_TIME, TString options="ALP", Color_t color=kBlack)
Definition:
mdc.cc:2317
CWB::mdc::Get
TString Get(wavearray< double > &x, TString ifo)
Definition:
mdc.cc:1529
CWB::mdc::Print
void Print(int level=0)
Definition:
mdc.cc:2736
jfile
jfile
Definition:
cwb_job_obj.C:43
CWB::mdc
Definition:
mdc.hh:248
MDC
CWB::mdc MDC
Definition:
ReadObjectLogMDC.C:15