Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
materialComposition.C File Reference
#include <cmath>
#include <iostream>
#include <map>
#include <string>
#include <tuple>
#include <TCanvas.h>
#include <TDirectory.h>
#include <TFile.h>
#include <TH1F.h>
#include <TProfile.h>
#include <TTree.h>
+ Include dependency graph for materialComposition.C:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  MaterialHistograms
 
struct  Region
 

Functions

void materialComposition (const std::string &inFile, const std::string &treeName, const std::string &outFile, unsigned int bins, float eta, const std::vector< Region > &regions)
 

Function Documentation

void materialComposition ( const std::string &  inFile,
const std::string &  treeName,
const std::string &  outFile,
unsigned int  bins,
float  eta,
const std::vector< Region > &  regions 
)

Plot the material composition

Parameters
inFilethe input root file
treeNAmethe input tree name (default: 'trackstates)
outFilethe output root file
binsthe number of bins
etathe eta range

Definition at line 118 of file materialComposition.C.

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

References add_histos_bX::ib, physmon_track_finding_ttbar::r, step, propagation_timing::steps, to_string(), ambiguity_solver_full_chain::x, X0, y, and physmon_track_finding_ttbar::z.

Referenced by main().

+ Here is the call graph for this function:

+ Here is the caller graph for this function: