Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Keerthi Nakkalil
gain_measurement
Commits
5bd07819
Commit
5bd07819
authored
Jul 27, 2021
by
Keerthi Nakkalil
Browse files
Mergetree shows 4 trees, howver inly the last pixel entries are present
parent
0872d66c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Time walk correction/TreeTest.C
View file @
5bd07819
//TFile* TPfile = new TFile("TP.root","update");
TList
*
TPlist
=
new
TList
;
//
TList* TPlist = new TList;
void
TreeEnergyWrite
(){
...
...
@@ -98,7 +98,7 @@ void TreeTPWrite(int c, int r){
//Add new trees (incl voltage col) to list and merge the trees
//
TList* TPlist = new TList;
TList
*
TPlist
=
new
TList
;
std
::
cout
<<
" The tree for the pixel "
<<
c
<<
" and "
<<
r
<<
" is added to the list "
<<
std
::
endl
;
TPlist
->
Add
(
TPtree
);
TTree
*
newtree
=
TTree
::
MergeTrees
(
TPlist
);
...
...
@@ -107,7 +107,7 @@ void TreeTPWrite(int c, int r){
newtree
->
SetDirectory
(
TPfile
);
// Mergedtree = TTree::MergeTrees(TPlist);
// Mergedtree->Write("",TObject::kWriteDelete);
newtree
->
Write
(
""
,
TObject
::
kWriteDelete
);
newtree
->
Write
(
""
,
TObject
::
kWriteDelete
);
TPfile
->
Close
();
//Efile->Close();
...
...
@@ -125,7 +125,7 @@ void TreeTest(){
}
}
std
::
cout
<<
" The size of the tree list is "
<<
TPlist
->
GetSize
()
<<
std
::
endl
;
//
std::cout <<" The size of the tree list is " << TPlist->GetSize() << std::endl;
//TPfile->Close();
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment