Changes in external/ExRootAnalysis/ExRootTreeBranch.cc [cab38f6:341014c] in git
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
external/ExRootAnalysis/ExRootTreeBranch.cc
rcab38f6 r341014c 11 11 #include "ExRootAnalysis/ExRootTreeBranch.h" 12 12 13 #include "TClonesArray.h" 13 14 #include "TFile.h" 15 #include "TString.h" 14 16 #include "TTree.h" 15 #include "TString.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; … … 28 28 { 29 29 stringstream message; 30 // cl->IgnoreTObjectStreamer();31 // cl->BypassStreamer();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) 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; 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; 72 77 73 78 fData->ExpandCreateFast(fCapacity); … … 76 81 fData->ExpandCreateFast(fSize); 77 82 } 78 83 79 84 return fData->AddrAt(fSize++); 80 85 } … … 89 94 90 95 //------------------------------------------------------------------------------ 91
Note:
See TracChangeset
for help on using the changeset viewer.