Fork me on GitHub

Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • external/ExRootAnalysis/ExRootTreeBranch.cc

    r341014c rcab38f6  
    1111#include "ExRootAnalysis/ExRootTreeBranch.h"
    1212
     13#include "TFile.h"
     14#include "TTree.h"
     15#include "TString.h"
    1316#include "TClonesArray.h"
    14 #include "TFile.h"
    15 #include "TString.h"
    16 #include "TTree.h"
    1717
    1818#include <iostream>
     19#include <stdexcept>
    1920#include <sstream>
    20 #include <stdexcept>
    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)
    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;
    7772
    7873    fData->ExpandCreateFast(fCapacity);
     
    8176    fData->ExpandCreateFast(fSize);
    8277  }
    83 
     78 
    8479  return fData->AddrAt(fSize++);
    8580}
     
    9489
    9590//------------------------------------------------------------------------------
     91
Note: See TracChangeset for help on using the changeset viewer.