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
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:201
exit
exit(0)
detectorParams
Definition:
detector.hh:31
n
int n
Definition:
cwb_net.C:10
CWB::Toolbox::checkFile
static bool checkFile(TString fName, bool question=false, TString message="")
Definition:
Toolbox.cc:3956
detector
Definition:
detector.hh:49
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:23
detector::print
void print()
Definition:
detector.cc:1768