Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MaterialHistograms Struct Reference

Public Member Functions

 MaterialHistograms ()=default
 
 MaterialHistograms (const std::string &name, unsigned int iA, unsigned int bins, float eta)
 
void fillAndClear (float eta, float phi)
 
void write ()
 

Public Attributes

TProfile * x0_vs_eta = nullptr
 
TProfile * l0_vs_eta = nullptr
 
TProfile * x0_vs_phi = nullptr
 
TProfile * l0_vs_phi = nullptr
 
float s_x0 = 0.
 
float s_l0 = 0.
 

Detailed Description

Definition at line 22 of file materialComposition.C.

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

Constructor & Destructor Documentation

MaterialHistograms::MaterialHistograms ( )
default
MaterialHistograms::MaterialHistograms ( const std::string &  name,
unsigned int  iA,
unsigned int  bins,
float  eta 
)
inline

Material histogram constructor

Parameters
iAthe atomic number

Definition at line 37 of file materialComposition.C.

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

References bins, eta, l0_vs_eta, l0_vs_phi, to_string(), x0_vs_eta, and x0_vs_phi.

+ Here is the call graph for this function:

Member Function Documentation

void MaterialHistograms::fillAndClear ( float  eta,
float  phi 
)
inline

This fills the event into the histograms and clears the cache accordingly

Parameters
etathe pseudorapidity value
phithe phi value

Definition at line 70 of file materialComposition.C.

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

References l0_vs_eta, l0_vs_phi, s_l0, s_x0, x0_vs_eta, and x0_vs_phi.

void MaterialHistograms::write ( )
inline

Write out the histograms, the TDirectory needs to be set before

Histograms with no contribution will not be written to file.

Definition at line 86 of file materialComposition.C.

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

References l0_vs_eta, l0_vs_phi, x0_vs_eta, and x0_vs_phi.

Member Data Documentation

TProfile* MaterialHistograms::l0_vs_eta = nullptr

Definition at line 24 of file materialComposition.C.

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

Referenced by fillAndClear(), MaterialHistograms(), and write().

TProfile* MaterialHistograms::l0_vs_phi = nullptr

Definition at line 27 of file materialComposition.C.

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

Referenced by fillAndClear(), MaterialHistograms(), and write().

float MaterialHistograms::s_l0 = 0.

Definition at line 30 of file materialComposition.C.

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

Referenced by fillAndClear().

float MaterialHistograms::s_x0 = 0.

Definition at line 29 of file materialComposition.C.

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

Referenced by fillAndClear().

TProfile* MaterialHistograms::x0_vs_eta = nullptr

Definition at line 23 of file materialComposition.C.

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

Referenced by fillAndClear(), MaterialHistograms(), and write().

TProfile* MaterialHistograms::x0_vs_phi = nullptr

Definition at line 26 of file materialComposition.C.

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

Referenced by fillAndClear(), MaterialHistograms(), and write().


The documentation for this struct was generated from the following file: