EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHG4Utils Class Reference

#include <fun4all_coresoftware/blob/master/simulation/g4simulation/g4main/PHG4Utils.h>

Static Public Member Functions

static double GetLengthForRapidityCoverage (const double radius, const double eta)
 
static double GetLengthForRapidityCoverage (const double radius)
 
static void SetPseudoRapidityCoverage (const double eta)
 
static void SetColour (G4VisAttributes *att, const std::string &mat)
 
static double get_theta (const double eta)
 
static double get_eta (const double theta)
 
static std::pair< double, double > get_etaphi (const double x, const double y, const double z)
 
static double get_eta (const double radius, const double z)
 
static std::pair< bool, double > line_and_rectangle_intersect (double ax, double ay, double bx, double by, double cx, double cy, double dx, double dy)
 
static std::pair< bool,
std::pair< double, double > > 
lines_intersect (double ax, double ay, double bx, double by, double cx, double cy, double dx, double dy)
 
static double circle_rectangle_intersection (double x1, double y1, double x2, double y2, double mx, double my, double r)
 
static double sA (double r, double x, double y)
 
static std::string md5sum (const std::string &filename)
 

Static Private Attributes

static double _eta_coverage = 1.
 

Detailed Description

Definition at line 11 of file PHG4Utils.h.

View newest version in sPHENIX GitHub at line 11 of file PHG4Utils.h

Member Function Documentation

double PHG4Utils::circle_rectangle_intersection ( double  x1,
double  y1,
double  x2,
double  y2,
double  mx,
double  my,
double  r 
)
static

Definition at line 377 of file PHG4Utils.cc.

View newest version in sPHENIX GitHub at line 377 of file PHG4Utils.cc

References mx, and my.

Referenced by PHG4MvtxHitReco::process_event(), and PHG4InttHitReco::process_event().

+ Here is the caller graph for this function:

double PHG4Utils::get_eta ( const double  theta)
static

Definition at line 54 of file PHG4Utils.cc.

View newest version in sPHENIX GitHub at line 54 of file PHG4Utils.cc

References Acts::VectorHelpers::eta().

Referenced by PHG4BlockCellReco::InitRun(), PHG4CylinderCellReco::InitRun(), and PHG4SimpleEventGenerator::process_event().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

double PHG4Utils::get_eta ( const double  radius,
const double  z 
)
static

Definition at line 75 of file PHG4Utils.cc.

View newest version in sPHENIX GitHub at line 75 of file PHG4Utils.cc

References Acts::VectorHelpers::eta(), and theta().

+ Here is the call graph for this function:

pair< double, double > PHG4Utils::get_etaphi ( const double  x,
const double  y,
const double  z 
)
static

Definition at line 61 of file PHG4Utils.cc.

View newest version in sPHENIX GitHub at line 61 of file PHG4Utils.cc

References Acts::VectorHelpers::eta(), phi, G4BECAL::radius, and theta().

Referenced by PHG4BlockCellReco::process_event(), and PHG4CylinderCellReco::process_event().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

double PHG4Utils::get_theta ( const double  eta)
static

Definition at line 47 of file PHG4Utils.cc.

View newest version in sPHENIX GitHub at line 47 of file PHG4Utils.cc

References theta().

Referenced by PHG4InnerHcalDetector::ConstructHcalSingleScintillators(), PHG4OuterHcalDetector::ConstructHcalSingleScintillators(), RawTowerBuilder::CreateNodes(), and HcalRawTowerBuilder::InitRun().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

double PHG4Utils::GetLengthForRapidityCoverage ( const double  radius,
const double  eta 
)
static

Definition at line 27 of file PHG4Utils.cc.

View newest version in sPHENIX GitHub at line 27 of file PHG4Utils.cc

References G4BARRELHCAL::length, and theta().

Referenced by CEmc_2DProjectiveSpacal(), PHG4HcalDetector::ConstructMe(), PHG4HcalSubsystem::InitRun(), and PHG4CylinderSubsystem::InitRunSubsystem().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

double PHG4Utils::GetLengthForRapidityCoverage ( const double  radius)
static

Definition at line 36 of file PHG4Utils.cc.

View newest version in sPHENIX GitHub at line 36 of file PHG4Utils.cc

std::pair< bool, double > PHG4Utils::line_and_rectangle_intersect ( double  ax,
double  ay,
double  bx,
double  by,
double  cx,
double  cy,
double  dx,
double  dy 
)
static

Definition at line 242 of file PHG4Utils.cc.

View newest version in sPHENIX GitHub at line 242 of file PHG4Utils.cc

References dx, dy, PHWHERE, and rr.

Referenced by PHG4BlockCellReco::process_event(), and PHG4CylinderCellReco::process_event().

+ Here is the caller graph for this function:

std::pair< bool, std::pair< double, double > > PHG4Utils::lines_intersect ( double  ax,
double  ay,
double  bx,
double  by,
double  cx,
double  cy,
double  dx,
double  dy 
)
static

Definition at line 187 of file PHG4Utils.cc.

View newest version in sPHENIX GitHub at line 187 of file PHG4Utils.cc

References KF_timing::ax, and Acts::UnitConstants::h.

string PHG4Utils::md5sum ( const std::string &  filename)
static

Definition at line 400 of file PHG4Utils.cc.

View newest version in sPHENIX GitHub at line 400 of file PHG4Utils.cc

References c, and exit().

Referenced by PHG4BackwardHcalSubsystem::SetDefaultParameters(), PHG4ForwardEcalSubsystem::SetDefaultParameters(), PHG4ForwardHcalSubsystem::SetDefaultParameters(), PHG4LFHcalSubsystem::SetDefaultParameters(), PHG4BackwardHcalSubsystem::SetTowerMappingFile(), PHG4LFHcalSubsystem::SetTowerMappingFile(), PHG4ForwardHcalSubsystem::SetTowerMappingFile(), and PHG4ForwardEcalSubsystem::SetTowerMappingFile().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

double PHG4Utils::sA ( double  r,
double  x,
double  y 
)
static

Definition at line 333 of file PHG4Utils.cc.

View newest version in sPHENIX GitHub at line 333 of file PHG4Utils.cc

References y.

void PHG4Utils::SetPseudoRapidityCoverage ( const double  eta)
static

Definition at line 41 of file PHG4Utils.cc.

View newest version in sPHENIX GitHub at line 41 of file PHG4Utils.cc

References Acts::VectorHelpers::eta().

Referenced by PHG4Reco::set_rapidity_coverage().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

double PHG4Utils::_eta_coverage = 1.
staticprivate

Definition at line 29 of file PHG4Utils.h.

View newest version in sPHENIX GitHub at line 29 of file PHG4Utils.h


The documentation for this class was generated from the following files: