Changeset 341014c in git for external/ExRootAnalysis/ExRootTreeWriter.cc
- Timestamp:
- Feb 12, 2019, 9:29:17 PM (6 years ago)
- Branches:
- ImprovedOutputFile, Timing, llp, master
- Children:
- 6455202
- Parents:
- 45e58be
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
external/ExRootAnalysis/ExRootTreeWriter.cc
r45e58be r341014c 11 11 #include "ExRootAnalysis/ExRootTreeBranch.h" 12 12 13 #include "TClonesArray.h" 14 #include "TFile.h" 13 15 #include "TROOT.h" 14 #include "TFile.h"15 16 #include "TTree.h" 16 #include "TClonesArray.h"17 17 18 18 #include <iostream> 19 #include <sstream> 19 20 #include <stdexcept> 20 #include <sstream>21 21 22 22 using namespace std; … … 31 31 ExRootTreeWriter::~ExRootTreeWriter() 32 32 { 33 set<ExRootTreeBranch *>::iterator itBranches;33 set<ExRootTreeBranch *>::iterator itBranches; 34 34 for(itBranches = fBranches.begin(); itBranches != fBranches.end(); ++itBranches) 35 35 { 36 delete 36 delete(*itBranches); 37 37 } 38 38 … … 69 69 void ExRootTreeWriter::Clear() 70 70 { 71 set<ExRootTreeBranch *>::iterator itBranches;71 set<ExRootTreeBranch *>::iterator itBranches; 72 72 for(itBranches = fBranches.begin(); itBranches != fBranches.end(); ++itBranches) 73 73 { … … 95 95 96 96 tree->SetDirectory(fFile); 97 tree->SetAutoSave(10000000); 97 tree->SetAutoSave(10000000); // autosave when 10 MB written 98 98 99 99 return tree;
Note:
See TracChangeset
for help on using the changeset viewer.