eic-smear  1.0.3
A collection of ROOT classes for Monte Carlo events and a fast-smearing code simulating detector effects for the Electron-Ion Collider task force
build.cxx
Go to the documentation of this file.
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 }
BuildTree
Long64_t BuildTree(const TString &inputFileName, const TString &outputDirName, const Long64_t maxEvent, const std::string &logFileName)
This is an example function to generate ROOT files.
Definition: BuildTree.cxx:25
build
void build(const TString inputFile, TString outputDir, Long64_t maxEvents)
Definition: build.cxx:11