Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
photonEff.C File Reference
#include <iostream>
#include <fstream>
#include "TFile.h"
#include "Scalar.h"
#include "TTree.h"
#include "TChain.h"
#include "TLegend.h"
#include "math.h"
#include "TH1.h"
#include "TH2.h"
#include "TEfficiency.h"
#include "TLine.h"
#include "TGraphAsymmErrors.h"
+ Include dependency graph for photonEff.C:

Go to the source code of this file.

Functions

TChain * handleFile (string name, string extension, string treename, unsigned int filecount)
 
void makephotonM (TChain *ttree, TChain *back, TFile *out_file)
 
void makeVtxR (TChain *ttree, TTree *vtxTree, TFile *out_file)
 
void makeVtxRes (TChain *ttree, TFile *out_file)
 
void makeVtxEff (TChain *ttree, TFile *out_file)
 
void makepTRes (TChain *ttree)
 
TEfficiency * makepTDist (TChain *ttree, TTree *allTree, TFile *out_file)
 
void compareDeta (TTree *signalTree, TTree *background)
 
void testCuts (TChain *ttree, TFile *out_file)
 
void makeRefitDist (TChain *ttree, TFile *out_file)
 
void makepTCaloGraph (string filename, TFile *outfile)
 
TH1F * makePythiaSpec (TChain *ttree, TFile *out_file, string type="")
 
TH1F removeFirstBin (TH1F h)
 
double ADtoP (double ad)
 
float smartChi2 (TH1F hard, TH1F soft)
 
void chopHard (TH1F hard, TH1F soft)
 
void calculateConversionRate (TEfficiency *rate, TH1F *pythia, TFile *out_file)
 
double hardWeightFactor (TH1F *hard, TH1F *soft, unsigned matchBin, double *error)
 
TH1F * addSpec (TH1F *soft, TH1F *hard, TFile *file)
 
void photonEff ()
 

Function Documentation

TH1F* addSpec ( TH1F *  soft,
TH1F *  hard,
TFile *  file 
)

Definition at line 463 of file photonEff.C.

View newest version in sPHENIX GitHub at line 463 of file photonEff.C

References hardWeightFactor(), and i.

Referenced by photonEff().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

double ADtoP ( double  ad)

Definition at line 414 of file photonEff.C.

View newest version in sPHENIX GitHub at line 414 of file photonEff.C

References physmon_track_finding_ttbar::r.

Referenced by chopHard().

+ Here is the caller graph for this function:

void calculateConversionRate ( TEfficiency *  rate,
TH1F *  pythia,
TFile *  out_file 
)

Definition at line 444 of file photonEff.C.

View newest version in sPHENIX GitHub at line 444 of file photonEff.C

void chopHard ( TH1F  hard,
TH1F  soft 
)

Definition at line 431 of file photonEff.C.

View newest version in sPHENIX GitHub at line 431 of file photonEff.C

References ADtoP(), bins, removeFirstBin(), and smartChi2().

+ Here is the call graph for this function:

void compareDeta ( TTree *  signalTree,
TTree *  background 
)

Definition at line 227 of file photonEff.C.

View newest version in sPHENIX GitHub at line 227 of file photonEff.C

References i.

Referenced by photonEff2().

+ Here is the caller graph for this function:

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

Definition at line 21 of file photonEff.C.

View newest version in sPHENIX GitHub at line 21 of file photonEff.C

References i, and physmon_simulation::s.

double hardWeightFactor ( TH1F *  hard,
TH1F *  soft,
unsigned  matchBin,
double error 
)

Definition at line 453 of file photonEff.C.

View newest version in sPHENIX GitHub at line 453 of file photonEff.C

References physmon_track_finding_ttbar::r.

Referenced by addSpec().

+ Here is the caller graph for this function:

void makephotonM ( TChain *  ttree,
TChain *  back,
TFile *  out_file 
)

Definition at line 35 of file photonEff.C.

View newest version in sPHENIX GitHub at line 35 of file photonEff.C

References event, and i.

Referenced by photonEff2().

+ Here is the caller graph for this function:

void makepTCaloGraph ( string  filename,
TFile *  outfile 
)

Definition at line 349 of file photonEff.C.

View newest version in sPHENIX GitHub at line 349 of file photonEff.C

References physmon_simulation::s, ambiguity_solver_full_chain::x, and y.

Referenced by photonEff2().

+ Here is the caller graph for this function:

TEfficiency* makepTDist ( TChain *  ttree,
TTree *  allTree,
TFile *  out_file 
)

Definition at line 182 of file photonEff.C.

View newest version in sPHENIX GitHub at line 182 of file photonEff.C

References event, i, and graph_fancy::pT.

void makepTRes ( TChain *  ttree)

Definition at line 165 of file photonEff.C.

View newest version in sPHENIX GitHub at line 165 of file photonEff.C

References event, and graph_fancy::pT.

TH1F* makePythiaSpec ( TChain *  ttree,
TFile *  out_file,
string  type = "" 
)

Definition at line 373 of file photonEff.C.

View newest version in sPHENIX GitHub at line 373 of file photonEff.C

References event, i, title, and parse_cmake_options::type.

Referenced by photonEff().

+ Here is the caller graph for this function:

void makeRefitDist ( TChain *  ttree,
TFile *  out_file 
)

Definition at line 318 of file photonEff.C.

View newest version in sPHENIX GitHub at line 318 of file photonEff.C

References event.

void makeVtxEff ( TChain *  ttree,
TFile *  out_file 
)

Definition at line 140 of file photonEff.C.

View newest version in sPHENIX GitHub at line 140 of file photonEff.C

References event, graph_fancy::pT, and physmon_track_finding_ttbar::r.

Referenced by photonEff2().

+ Here is the caller graph for this function:

void makeVtxR ( TChain *  ttree,
TTree *  vtxTree,
TFile *  out_file 
)

Definition at line 77 of file photonEff.C.

View newest version in sPHENIX GitHub at line 77 of file photonEff.C

References event, and i.

void makeVtxRes ( TChain *  ttree,
TFile *  out_file 
)

Definition at line 118 of file photonEff.C.

View newest version in sPHENIX GitHub at line 118 of file photonEff.C

References event, and physmon_track_finding_ttbar::r.

Referenced by photonEff2().

+ Here is the caller graph for this function:

void photonEff ( )

Definition at line 482 of file photonEff.C.

View newest version in sPHENIX GitHub at line 482 of file photonEff.C

References addSpec(), and makePythiaSpec().

+ Here is the call graph for this function:

TH1F removeFirstBin ( TH1F  h)

Definition at line 397 of file photonEff.C.

View newest version in sPHENIX GitHub at line 397 of file photonEff.C

References h, i, physmon_track_finding_ttbar::r, and to_string().

Referenced by chopHard().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

float smartChi2 ( TH1F  hard,
TH1F  soft 
)

Definition at line 425 of file photonEff.C.

View newest version in sPHENIX GitHub at line 425 of file photonEff.C

Referenced by chopHard().

+ Here is the caller graph for this function:

void testCuts ( TChain *  ttree,
TFile *  out_file 
)

Definition at line 252 of file photonEff.C.

View newest version in sPHENIX GitHub at line 252 of file photonEff.C

References INTTVtxZ::dphi, event, and layer.