Fork me on GitHub

Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • external/ExRootAnalysis/ExRootTreeBranch.cc

    rcab38f6 r341014c  
    1111#include "ExRootAnalysis/ExRootTreeBranch.h"
    1212
     13#include "TClonesArray.h"
    1314#include "TFile.h"
     15#include "TString.h"
    1416#include "TTree.h"
    15 #include "TString.h"
    16 #include "TClonesArray.h"
    1717
    1818#include <iostream>
     19#include <sstream>
    1920#include <stdexcept>
    20 #include <sstream>
    2121
    2222using namespace std;
     
    2828{
    2929  stringstream message;
    30 //  cl->IgnoreTObjectStreamer();
    31 //  cl->BypassStreamer();
     30  //  cl->IgnoreTObjectStreamer();
     31  //  cl->BypassStreamer();
    3232  fData = new TClonesArray(cl, fCapacity);
    3333
     
    6565  if(fSize >= fCapacity)
    6666  {
    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;
    7277
    7378    fData->ExpandCreateFast(fCapacity);
     
    7681    fData->ExpandCreateFast(fSize);
    7782  }
    78  
     83
    7984  return fData->AddrAt(fSize++);
    8085}
     
    8994
    9095//------------------------------------------------------------------------------
    91 
Note: See TracChangeset for help on using the changeset viewer.