Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
rapidity_profile.h File Reference
#include <cmath>
#include <vector>
#include <gsl/gsl_fft_complex.h>
+ Include dependency graph for rapidity_profile.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  fast_eta2y
 
class  cumulant_generating
 

Macros

#define REAL(z, i)   ((z)[2*(i)])
 
#define IMAG(z, i)   ((z)[2*(i)+1])
 

Functions

double mean_function (double ta, double tb, double exp_ybeam)
 
double std_function (double ta, double tb)
 
double skew_function (double ta, double tb, int type_switch)
 The normalized skewness as function of Ta(x,y) and Tb(x,y)
 

Variables

double const sqrt2 = std::sqrt(2)
 
constexpr double TINY = 1e-12
 
constexpr int relative_skew_switch = 1
 
constexpr int absolute_skew_switch = 2
 

Macro Definition Documentation

#define IMAG (   z,
  i 
)    ((z)[2*(i)+1])

Definition at line 16 of file rapidity_profile.h.

View newest version in sPHENIX GitHub at line 16 of file rapidity_profile.h

Referenced by cumulant_generating::calculate_dsdy().

#define REAL (   z,
  i 
)    ((z)[2*(i)])

GSL fft of complex array, z_i = x_i + j*y_i data are stored in one real array A that A[2i] = x_i and A[2i+1] = y_i

Definition at line 15 of file rapidity_profile.h.

View newest version in sPHENIX GitHub at line 15 of file rapidity_profile.h

Referenced by cumulant_generating::calculate_dsdy().

Function Documentation

double mean_function ( double  ta,
double  tb,
double  exp_ybeam 
)
inline

the mean of the rapidity distribution as function of Ta(x,y), Tb(x,y) and exp(y_beam). For the case both Ta and Tb are tiny small, mean = 0.0 is returned. For the case only Ta(Tb) = 0, it returns +(-)y_beam, For the case y_beam >> 1, mean ~ 0.5*log(Ta/Tb)

Definition at line 27 of file rapidity_profile.h.

View newest version in sPHENIX GitHub at line 27 of file rapidity_profile.h

References TINY.

Referenced by trento::Event::compute_reduced_thickness().

+ Here is the caller graph for this function:

double skew_function ( double  ta,
double  tb,
int  type_switch 
)
inline

The normalized skewness as function of Ta(x,y) and Tb(x,y)

Definition at line 42 of file rapidity_profile.h.

View newest version in sPHENIX GitHub at line 42 of file rapidity_profile.h

References absolute_skew_switch, relative_skew_switch, and TINY.

Referenced by trento::Event::compute_reduced_thickness().

+ Here is the caller graph for this function:

double std_function ( double  ta,
double  tb 
)
inline

The coefficient of normalized width of the rapidity distribution Currently, it is simply a constant independent of Ta(x,y) and Tb(x,y)

Definition at line 34 of file rapidity_profile.h.

View newest version in sPHENIX GitHub at line 34 of file rapidity_profile.h

Referenced by trento::Event::compute_reduced_thickness().

+ Here is the caller graph for this function:

Variable Documentation

constexpr int absolute_skew_switch = 2

Definition at line 21 of file rapidity_profile.h.

View newest version in sPHENIX GitHub at line 21 of file rapidity_profile.h

Referenced by skew_function().

constexpr int relative_skew_switch = 1

Definition at line 20 of file rapidity_profile.h.

View newest version in sPHENIX GitHub at line 20 of file rapidity_profile.h

Referenced by skew_function().

double const sqrt2 = std::sqrt(2)

Definition at line 18 of file rapidity_profile.h.

View newest version in sPHENIX GitHub at line 18 of file rapidity_profile.h

constexpr double TINY = 1e-12

Definition at line 19 of file rapidity_profile.h.

View newest version in sPHENIX GitHub at line 19 of file rapidity_profile.h

Referenced by trento::Event::Event(), trento::Event::is3D(), mean_function(), and skew_function().