EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
build.cxx
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file build.cxx
1 //
2 // build.cxx
3 //
4 // Created by TB on 6/13/11.
5 // Copyright 2011 BNL. All rights reserved.
6 //
7 // Demonstration of how to run BuildTree
8 // You can specify a maximum number of events to read:
9 // <= 0 means read all events (default).
10 
11 void build(const TString inputFile, TString outputDir, Long64_t maxEvents) {
12 
13  // Load the shared library, if not done automaticlly:
14 // gSystem->Load("/path/to/libeicsmear.so" );
15 
16 
17  // Call the BuildTree() function.
18  // The output file name is the same as the input file name but with the
19  // extension ".root" e.g. myfile.txt --> myfile.root
20  BuildTree(inputFile, outputDir, maxEvents);
21 }