Changes in external/ExRootAnalysis/ExRootTreeBranch.cc [341014c:cab38f6] in git
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
external/ExRootAnalysis/ExRootTreeBranch.cc
r341014c rcab38f6 11 11 #include "ExRootAnalysis/ExRootTreeBranch.h" 12 12 13 #include "TFile.h" 14 #include "TTree.h" 15 #include "TString.h" 13 16 #include "TClonesArray.h" 14 #include "TFile.h"15 #include "TString.h"16 #include "TTree.h"17 17 18 18 #include <iostream> 19 #include <stdexcept> 19 20 #include <sstream> 20 #include <stdexcept>21 21 22 22 using namespace std; … … 28 28 { 29 29 stringstream message; 30 31 30 // cl->IgnoreTObjectStreamer(); 31 // cl->BypassStreamer(); 32 32 fData = new TClonesArray(cl, fCapacity); 33 33 … … 65 65 if(fSize >= fCapacity) 66 66 { 67 if(fCapacity < 10) 68 fCapacity = 10; 69 else if(fCapacity < 30) 70 fCapacity = 30; 71 else if(fCapacity < 100) 72 fCapacity = 100; 73 else if(fCapacity < 250) 74 fCapacity = 250; 75 else 76 fCapacity *= 2; 67 if(fCapacity < 10) fCapacity = 10; 68 else if(fCapacity < 30) fCapacity = 30; 69 else if(fCapacity < 100) fCapacity = 100; 70 else if(fCapacity < 250) fCapacity = 250; 71 else fCapacity *= 2; 77 72 78 73 fData->ExpandCreateFast(fCapacity); … … 81 76 fData->ExpandCreateFast(fSize); 82 77 } 83 78 84 79 return fData->AddrAt(fSize++); 85 80 } … … 94 89 95 90 //------------------------------------------------------------------------------ 91
Note:
See TracChangeset
for help on using the changeset viewer.