Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
conversionRate.C File Reference

Go to the source code of this file.

Functions

TChain * handleFile (string name, string extension, string treename, unsigned int filecount)
 
TEfficiency * makepTRes (TFile *out_file, TChain *ttree=NULL, TTree *allTree=NULL)
 
unsigned totalMB (string path, string extension, string hardname, string softname)
 
TH1F * calculateRate (TEfficiency *rate, TFile *file, unsigned nMB)
 
void derivitvePlot (TH1F *finalrate)
 
void conversionRate ()
 

Function Documentation

TH1F* calculateRate ( TEfficiency *  rate,
TFile *  file,
unsigned  nMB 
)
Parameters
ratethe uniform conversion rate
filefile to get the pythia pT spectra from
Returns
the pT dependent conversion rate

Definition at line 97 of file conversionRate.C.

View newest version in sPHENIX GitHub at line 97 of file conversionRate.C

Referenced by conversionRate().

+ Here is the caller graph for this function:

void conversionRate ( )

Definition at line 121 of file conversionRate.C.

View newest version in sPHENIX GitHub at line 121 of file conversionRate.C

References calculateRate(), derivitvePlot(), handleFile(), makepTRes(), and totalMB().

+ Here is the call graph for this function:

void derivitvePlot ( TH1F *  finalrate)

Definition at line 110 of file conversionRate.C.

View newest version in sPHENIX GitHub at line 110 of file conversionRate.C

References acts::error, and i.

Referenced by conversionRate().

+ Here is the caller graph for this function:

TChain* handleFile ( string  name,
string  extension,
string  treename,
unsigned int  filecount 
)

Definition at line 2 of file conversionRate.C.

View newest version in sPHENIX GitHub at line 2 of file conversionRate.C

References i, and physmon_simulation::s.

Referenced by conversionRate(), mapper(), minBiasRecoAna(), photonEff2(), trackpT(), train(), vtxPredictionTraining(), and vtxRS().

+ Here is the caller graph for this function:

TEfficiency* makepTRes ( TFile *  out_file,
TChain *  ttree = NULL,
TTree *  allTree = NULL 
)

makes a TEff holding the hists for a uniform conversion rate

Parameters
out_filefile data is saved to this is used for read and write needs converted and truth pT spectra to be inside these are created by photonEff if the pT spectra are not inside the file
ttreeand
allTreewill be used to calculate these spectra
ttreetree for converted data
allTreetree for nonconverted data
Returns
NULL if the spectra are not in the existing data and the passes trees are not valid

Definition at line 22 of file conversionRate.C.

View newest version in sPHENIX GitHub at line 22 of file conversionRate.C

References event, i, and graph_fancy::pT.

Referenced by conversionRate(), and photonEff2().

+ Here is the caller graph for this function:

unsigned totalMB ( string  path,
string  extension,
string  hardname,
string  softname 
)

Definition at line 82 of file conversionRate.C.

View newest version in sPHENIX GitHub at line 82 of file conversionRate.C

References extension, perf_headwind::name, and physmon_track_finding_ttbar::r.

Referenced by conversionRate().

+ Here is the caller graph for this function: