coherent WaveBurst
Library Reference Guide
home
cWB_docker
git
cWB
library
tools
cwb
tutorials
TestGetTreeDetector.C
Go to the documentation of this file.
1
//
2
// Test get detector info to/from tree
3
// Author : Gabriele Vedovato
4
5
{
6
#define IFILE_NAME "../../cwbpipe/tutorials/S6A_R4_SIM_BRST_L1H1V1/data/wave_931081200_600_S6A_R4_SIM_BRST_L1H1V1_4.8_job8.root"
7
8
TFile
ifile
(
IFILE_NAME
);
9
CWB::Toolbox::checkFile
(
IFILE_NAME
);
10
TTree*
itree
= (TTree *) gROOT->FindObject(
"waveburst"
);
11
TList*
list
= itree->GetUserInfo();
12
for
(
int
n
=0;
n
<list->GetSize();
n
++) {
13
detector
* pDetector = (
detector
*)list->At(
n
);
14
detectorParams
dParams = pDetector->
getDetectorParams
();
15
if
(
n
==0) pDetector->
print
();
16
//cout << dParams.name << endl;
17
//cout << pDetector->Name << endl;
18
}
19
ifile
.Close();
20
21
exit
(0);
22
}
23
detector::getDetectorParams
detectorParams getDetectorParams()
Definition:
detector.cc:218
exit
exit(0)
detectorParams
Definition:
detector.hh:49
n
int n
Definition:
cwb_net.C:28
CWB::Toolbox::checkFile
static bool checkFile(TString fName, bool question=false, TString message="")
Definition:
Toolbox.cc:4670
detector
Definition:
detector.hh:67
itree
TTree * itree
Definition:
TestGetTreeDetector.C:10
IFILE_NAME
#define IFILE_NAME
list
TList * list
Definition:
TestGetTreeDetector.C:11
ifile
TFile * ifile
Definition:
cwb_dump_config.C:41
detector::print
void print()
Definition:
detector.cc:1797