Fork me on GitHub

Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • external/ExRootAnalysis/ExRootTreeWriter.cc

    r341014c rcab38f6  
    1111#include "ExRootAnalysis/ExRootTreeBranch.h"
    1212
     13#include "TROOT.h"
     14#include "TFile.h"
     15#include "TTree.h"
    1316#include "TClonesArray.h"
    14 #include "TFile.h"
    15 #include "TROOT.h"
    16 #include "TTree.h"
    1717
    1818#include <iostream>
     19#include <stdexcept>
    1920#include <sstream>
    20 #include <stdexcept>
    2121
    2222using namespace std;
     
    3131ExRootTreeWriter::~ExRootTreeWriter()
    3232{
    33   set<ExRootTreeBranch *>::iterator itBranches;
     33  set<ExRootTreeBranch*>::iterator itBranches;
    3434  for(itBranches = fBranches.begin(); itBranches != fBranches.end(); ++itBranches)
    3535  {
    36     delete(*itBranches);
     36    delete (*itBranches);
    3737  }
    3838
     
    6969void ExRootTreeWriter::Clear()
    7070{
    71   set<ExRootTreeBranch *>::iterator itBranches;
     71  set<ExRootTreeBranch*>::iterator itBranches;
    7272  for(itBranches = fBranches.begin(); itBranches != fBranches.end(); ++itBranches)
    7373  {
     
    9595
    9696  tree->SetDirectory(fFile);
    97   tree->SetAutoSave(10000000); // autosave when 10 MB written
     97  tree->SetAutoSave(10000000);  // autosave when 10 MB written
    9898
    9999  return tree;
Note: See TracChangeset for help on using the changeset viewer.