EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SmearTree.cxx File Reference
#include <iostream>
#include <fstream>
#include <sstream>
#include <cmath>
#include <memory>
#include <TClass.h>
#include <TROOT.h>
#include <TSystem.h>
#include <TChain.h>
#include <TString.h>
#include <TRandom2.h>
#include <TTree.h>
#include <TFile.h>
#include <TStopwatch.h>
#include <TH1D.h>
#include "eicsmear/erhic/VirtualParticle.h"
#include "eicsmear/smear/Detector.h"
#include "eicsmear/smear/EventDisFactory.h"
#include "eicsmear/smear/ParticleMCS.h"
#include "eicsmear/smear/Smear.h"
+ Include dependency graph for SmearTree.cxx:

Go to the source code of this file.

Functions

int SmearTree (const Smear::Detector &detector, const TString &inFileName, const TString &outFileName, Long64_t nEvents)
 

Detailed Description

Here lies the function for smearing trees

Author
Michael Savastio
Date
2011-08-12

Definition in file SmearTree.cxx.

Function Documentation

int SmearTree ( const Smear::Detector detector,
const TString &  inFileName,
const TString &  outFileName,
Long64_t  nEvents 
)

Smear nEvents events from the TTree named EICTree in the named input file, using the smearing definitions in the Detector. Write the resulting Smeared TTree to a file named outFileName. If nEvents <= 0 smear all events in the tree. Returns 0 upon success, 1 upon failure.

Definition at line 44 of file SmearTree.cxx.

View newest version in sPHENIX GitHub at line 44 of file SmearTree.cxx

References erhic::VirtualEventFactory::Branch(), erhic::VirtualEventFactory::Fill(), and nEvents.

Referenced by main().

+ Here is the call graph for this function:

+ Here is the caller graph for this function: