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

#include <JETSCAPE/blob/main/external_packages/hydro_from_external_file/Hydroinfo_h5.h>

+ Collaboration diagram for HydroinfoH5:

Public Member Functions

 HydroinfoH5 ()
 
 HydroinfoH5 (string filename_in, int bufferSize_in, int Visflag_in)
 
 HydroinfoH5 (int XL_in, int XH_in, double DX_in, int LSX_in, int YL_in, int YH_in, double DY_in, int LSY_in, double Tau0_in, double dTau_in, double LST_in, int Visflag_in, string filename_in)
 
 ~HydroinfoH5 ()
 
void clean_hydro_event ()
 clean the memory
 
void setHydroFiles (int XL_in, int XH_in, double DX_in, int LSX_in, int YL_in, int YH_in, double DY_in, int LSY_in, double Tau0_in, double dTau_in, double LST_in, int Visflag_in, string filename_in)
 
void writeGroupattribute (hid_t H5groupEventid)
 
void addGroupattributeInt (hid_t H5groupEventid, string attName, int attValue)
 
void addGroupattributeDouble (hid_t H5groupEventid, string attName, double attValue)
 
void writeHydroBlock (int Time_id, double **ed_in, double **sd_in, double **p_in, double **Temp_in, double **Vx_in, double **Vy_in, double **Pi00_in, double **Pi01_in, double **Pi02_in, double **Pi03_in, double **Pi11_in, double **Pi12_in, double **Pi13_in, double **Pi22_in, double **Pi23_in, double **Pi33_in, double **BulkPi_in)
 
void CSH5dumpBlockdata (hid_t group_id, const hsize_t *dims, string DatasetName, double **Dataset)
 
void readHydroinfoH5 (string filename, int bufferSize_in, int Visflag_in)
 
void readHydrogridInfo ()
 
void printHydrogridInfo ()
 
int readH5Attribute_int (hid_t id, string attributeName)
 
double readH5Attribute_double (hid_t id, string attributeName)
 
void readHydroinfoBuffered_total ()
 
void readHydroinfoSingleframe (int frameIdx)
 
void readH5Dataset_double (hid_t id, string datasetName, double **dset_data)
 
int getNumberofFrames ()
 
double getHydrogridDX ()
 
double getHydrogridDY ()
 
double getHydrogridDTau ()
 
double getHydrogridTau0 ()
 
double getHydrogridTaumax ()
 
double getHydrogridNX ()
 
double getHydrogridNY ()
 
double getHydrogridX0 ()
 
double getHydrogridY0 ()
 
double getHydrogridXmax ()
 
double getHydrogridYmax ()
 
void getHydroinfoOnlattice (int frameIdx, int xIdx, int yIdx, hydrofluidCell *fluidCellptr)
 
void getHydroinfo (double tau, double x, double y, hydrofluidCell *fluidCellptr)
 
void setZero_fluidCell (hydrofluidCell *fluidCellptr)
 
double cubeInterpShell (int idx_x, int idx_y, int idx_z, double x, double y, double z, double ***dataset)
 
double cubeInterp (double x, double y, double z, double A000, double A100, double A010, double A110, double A001, double A101, double A011, double A111)
 

Private Attributes

int readinFlag
 
int outputFlag
 
string filename
 
int Visflag
 
int Buffersize
 
hid_t H5file_id
 
hid_t H5groupEventid
 
int grid_XL
 
int grid_XH
 
int grid_YL
 
int grid_YH
 
int grid_Framenum
 
double grid_X0
 
double grid_Y0
 
double grid_Xmax
 
double grid_Ymax
 
double grid_Tau0
 
double grid_dTau
 
double grid_dx
 
double grid_dy
 
double grid_Taumax
 
int grid_LSX
 
int grid_LSY
 
int grid_LST
 
int LST_cur
 
int dimensionX
 
int dimensionY
 
double *** ed
 
double *** sd
 
double *** vx
 
double *** vy
 
double *** Temperature
 
double *** Pressure
 
double *** pi00
 
double *** pi01
 
double *** pi02
 
double *** pi03
 
double *** pi11
 
double *** pi12
 
double *** pi13
 
double *** pi22
 
double *** pi23
 
double *** pi33
 
double *** BulkPi
 

Detailed Description

Definition at line 19 of file Hydroinfo_h5.h.

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

Constructor & Destructor Documentation

HydroinfoH5::HydroinfoH5 ( )

Definition at line 14 of file Hydroinfo_h5.cpp.

View newest version in sPHENIX GitHub at line 14 of file Hydroinfo_h5.cpp

HydroinfoH5::HydroinfoH5 ( string  filename_in,
int  bufferSize_in,
int  Visflag_in 
)

Definition at line 19 of file Hydroinfo_h5.cpp.

View newest version in sPHENIX GitHub at line 19 of file Hydroinfo_h5.cpp

HydroinfoH5::HydroinfoH5 ( int  XL_in,
int  XH_in,
double  DX_in,
int  LSX_in,
int  YL_in,
int  YH_in,
double  DY_in,
int  LSY_in,
double  Tau0_in,
double  dTau_in,
double  LST_in,
int  Visflag_in,
string  filename_in 
)

Definition at line 24 of file Hydroinfo_h5.cpp.

View newest version in sPHENIX GitHub at line 24 of file Hydroinfo_h5.cpp

HydroinfoH5::~HydroinfoH5 ( )

Definition at line 32 of file Hydroinfo_h5.cpp.

View newest version in sPHENIX GitHub at line 32 of file Hydroinfo_h5.cpp

Member Function Documentation

void HydroinfoH5::addGroupattributeDouble ( hid_t  H5groupEventid,
string  attName,
double  attValue 
)

Definition at line 178 of file Hydroinfo_h5.cpp.

View newest version in sPHENIX GitHub at line 178 of file Hydroinfo_h5.cpp

References utils::status.

void HydroinfoH5::addGroupattributeInt ( hid_t  H5groupEventid,
string  attName,
int  attValue 
)

Definition at line 157 of file Hydroinfo_h5.cpp.

View newest version in sPHENIX GitHub at line 157 of file Hydroinfo_h5.cpp

References utils::status.

void HydroinfoH5::clean_hydro_event ( )

clean the memory

Definition at line 38 of file Hydroinfo_h5.cpp.

View newest version in sPHENIX GitHub at line 38 of file Hydroinfo_h5.cpp

References i, j, vx, and vy.

void HydroinfoH5::CSH5dumpBlockdata ( hid_t  group_id,
const hsize_t *  dims,
string  DatasetName,
double **  Dataset 
)

Definition at line 256 of file Hydroinfo_h5.cpp.

View newest version in sPHENIX GitHub at line 256 of file Hydroinfo_h5.cpp

References i, j, and utils::status.

double HydroinfoH5::cubeInterp ( double  x,
double  y,
double  z,
double  A000,
double  A100,
double  A010,
double  A110,
double  A001,
double  A101,
double  A011,
double  A111 
)

Definition at line 671 of file Hydroinfo_h5.cpp.

View newest version in sPHENIX GitHub at line 671 of file Hydroinfo_h5.cpp

References ambiguity_solver_full_chain::x, y, and physmon_track_finding_ttbar::z.

double HydroinfoH5::cubeInterpShell ( int  idx_x,
int  idx_y,
int  idx_z,
double  x,
double  y,
double  z,
double ***  dataset 
)

Definition at line 663 of file Hydroinfo_h5.cpp.

View newest version in sPHENIX GitHub at line 663 of file Hydroinfo_h5.cpp

double HydroinfoH5::getHydrogridDTau ( )
inline

Definition at line 82 of file Hydroinfo_h5.h.

View newest version in sPHENIX GitHub at line 82 of file Hydroinfo_h5.h

References grid_dTau.

double HydroinfoH5::getHydrogridDX ( )
inline

Definition at line 80 of file Hydroinfo_h5.h.

View newest version in sPHENIX GitHub at line 80 of file Hydroinfo_h5.h

References grid_dx.

double HydroinfoH5::getHydrogridDY ( )
inline

Definition at line 81 of file Hydroinfo_h5.h.

View newest version in sPHENIX GitHub at line 81 of file Hydroinfo_h5.h

References grid_dy.

double HydroinfoH5::getHydrogridNX ( )
inline

Definition at line 85 of file Hydroinfo_h5.h.

View newest version in sPHENIX GitHub at line 85 of file Hydroinfo_h5.h

References grid_XH, and grid_XL.

double HydroinfoH5::getHydrogridNY ( )
inline

Definition at line 86 of file Hydroinfo_h5.h.

View newest version in sPHENIX GitHub at line 86 of file Hydroinfo_h5.h

References grid_YH, and grid_YL.

double HydroinfoH5::getHydrogridTau0 ( )
inline

Definition at line 83 of file Hydroinfo_h5.h.

View newest version in sPHENIX GitHub at line 83 of file Hydroinfo_h5.h

References grid_Tau0.

double HydroinfoH5::getHydrogridTaumax ( )
inline

Definition at line 84 of file Hydroinfo_h5.h.

View newest version in sPHENIX GitHub at line 84 of file Hydroinfo_h5.h

References grid_Taumax.

double HydroinfoH5::getHydrogridX0 ( )
inline

Definition at line 87 of file Hydroinfo_h5.h.

View newest version in sPHENIX GitHub at line 87 of file Hydroinfo_h5.h

References grid_X0.

double HydroinfoH5::getHydrogridXmax ( )
inline

Definition at line 89 of file Hydroinfo_h5.h.

View newest version in sPHENIX GitHub at line 89 of file Hydroinfo_h5.h

References grid_Xmax.

double HydroinfoH5::getHydrogridY0 ( )
inline

Definition at line 88 of file Hydroinfo_h5.h.

View newest version in sPHENIX GitHub at line 88 of file Hydroinfo_h5.h

References grid_Y0.

double HydroinfoH5::getHydrogridYmax ( )
inline

Definition at line 90 of file Hydroinfo_h5.h.

View newest version in sPHENIX GitHub at line 90 of file Hydroinfo_h5.h

References grid_Ymax.

void HydroinfoH5::getHydroinfo ( double  tau,
double  x,
double  y,
hydrofluidCell fluidCellptr 
)
void HydroinfoH5::getHydroinfoOnlattice ( int  frameIdx,
int  xIdx,
int  yIdx,
hydrofluidCell fluidCellptr 
)
int HydroinfoH5::getNumberofFrames ( )
inline

Definition at line 79 of file Hydroinfo_h5.h.

View newest version in sPHENIX GitHub at line 79 of file Hydroinfo_h5.h

References grid_Framenum.

void HydroinfoH5::printHydrogridInfo ( )

Definition at line 411 of file Hydroinfo_h5.cpp.

View newest version in sPHENIX GitHub at line 411 of file Hydroinfo_h5.cpp

double HydroinfoH5::readH5Attribute_double ( hid_t  id,
string  attributeName 
)

Definition at line 445 of file Hydroinfo_h5.cpp.

View newest version in sPHENIX GitHub at line 445 of file Hydroinfo_h5.cpp

Referenced by InitialFromFile::ReadConfigs().

+ Here is the caller graph for this function:

int HydroinfoH5::readH5Attribute_int ( hid_t  id,
string  attributeName 
)

Definition at line 434 of file Hydroinfo_h5.cpp.

View newest version in sPHENIX GitHub at line 434 of file Hydroinfo_h5.cpp

Referenced by InitialFromFile::ReadConfigs().

+ Here is the caller graph for this function:

void HydroinfoH5::readH5Dataset_double ( hid_t  id,
string  datasetName,
double **  dset_data 
)

Definition at line 541 of file Hydroinfo_h5.cpp.

View newest version in sPHENIX GitHub at line 541 of file Hydroinfo_h5.cpp

References i, j, and utils::status.

void HydroinfoH5::readHydrogridInfo ( )

Definition at line 384 of file Hydroinfo_h5.cpp.

View newest version in sPHENIX GitHub at line 384 of file Hydroinfo_h5.cpp

References utils::status.

void HydroinfoH5::readHydroinfoBuffered_total ( )

Definition at line 456 of file Hydroinfo_h5.cpp.

View newest version in sPHENIX GitHub at line 456 of file Hydroinfo_h5.cpp

References i, utils::status, vx, and vy.

void HydroinfoH5::readHydroinfoH5 ( string  filename,
int  bufferSize_in,
int  Visflag_in 
)

Definition at line 288 of file Hydroinfo_h5.cpp.

View newest version in sPHENIX GitHub at line 288 of file Hydroinfo_h5.cpp

References filename, i, j, utils::status, vx, and vy.

void HydroinfoH5::readHydroinfoSingleframe ( int  frameIdx)

Definition at line 498 of file Hydroinfo_h5.cpp.

View newest version in sPHENIX GitHub at line 498 of file Hydroinfo_h5.cpp

References utils::status, vx, and vy.

void HydroinfoH5::setHydroFiles ( int  XL_in,
int  XH_in,
double  DX_in,
int  LSX_in,
int  YL_in,
int  YH_in,
double  DY_in,
int  LSY_in,
double  Tau0_in,
double  dTau_in,
double  LST_in,
int  Visflag_in,
string  filename_in 
)

Definition at line 103 of file Hydroinfo_h5.cpp.

View newest version in sPHENIX GitHub at line 103 of file Hydroinfo_h5.cpp

References filename, and utils::status.

void HydroinfoH5::setZero_fluidCell ( hydrofluidCell fluidCellptr)
void HydroinfoH5::writeGroupattribute ( hid_t  H5groupEventid)

Definition at line 141 of file Hydroinfo_h5.cpp.

View newest version in sPHENIX GitHub at line 141 of file Hydroinfo_h5.cpp

void HydroinfoH5::writeHydroBlock ( int  Time_id,
double **  ed_in,
double **  sd_in,
double **  p_in,
double **  Temp_in,
double **  Vx_in,
double **  Vy_in,
double **  Pi00_in,
double **  Pi01_in,
double **  Pi02_in,
double **  Pi03_in,
double **  Pi11_in,
double **  Pi12_in,
double **  Pi13_in,
double **  Pi22_in,
double **  Pi23_in,
double **  Pi33_in,
double **  BulkPi_in 
)

Definition at line 199 of file Hydroinfo_h5.cpp.

View newest version in sPHENIX GitHub at line 199 of file Hydroinfo_h5.cpp

References filename, and utils::status.

Member Data Documentation

int HydroinfoH5::Buffersize
private

Definition at line 28 of file Hydroinfo_h5.h.

View newest version in sPHENIX GitHub at line 28 of file Hydroinfo_h5.h

double*** HydroinfoH5::BulkPi
private

Definition at line 45 of file Hydroinfo_h5.h.

View newest version in sPHENIX GitHub at line 45 of file Hydroinfo_h5.h

int HydroinfoH5::dimensionX
private

Definition at line 41 of file Hydroinfo_h5.h.

View newest version in sPHENIX GitHub at line 41 of file Hydroinfo_h5.h

int HydroinfoH5::dimensionY
private

Definition at line 41 of file Hydroinfo_h5.h.

View newest version in sPHENIX GitHub at line 41 of file Hydroinfo_h5.h

double*** HydroinfoH5::ed
private

Definition at line 42 of file Hydroinfo_h5.h.

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

string HydroinfoH5::filename
private

Definition at line 25 of file Hydroinfo_h5.h.

View newest version in sPHENIX GitHub at line 25 of file Hydroinfo_h5.h

double HydroinfoH5::grid_dTau
private

Definition at line 35 of file Hydroinfo_h5.h.

View newest version in sPHENIX GitHub at line 35 of file Hydroinfo_h5.h

Referenced by getHydrogridDTau().

double HydroinfoH5::grid_dx
private

Definition at line 35 of file Hydroinfo_h5.h.

View newest version in sPHENIX GitHub at line 35 of file Hydroinfo_h5.h

Referenced by getHydrogridDX().

double HydroinfoH5::grid_dy
private

Definition at line 35 of file Hydroinfo_h5.h.

View newest version in sPHENIX GitHub at line 35 of file Hydroinfo_h5.h

Referenced by getHydrogridDY().

int HydroinfoH5::grid_Framenum
private

Definition at line 32 of file Hydroinfo_h5.h.

View newest version in sPHENIX GitHub at line 32 of file Hydroinfo_h5.h

Referenced by getNumberofFrames().

int HydroinfoH5::grid_LST
private

Definition at line 38 of file Hydroinfo_h5.h.

View newest version in sPHENIX GitHub at line 38 of file Hydroinfo_h5.h

int HydroinfoH5::grid_LSX
private

Definition at line 38 of file Hydroinfo_h5.h.

View newest version in sPHENIX GitHub at line 38 of file Hydroinfo_h5.h

int HydroinfoH5::grid_LSY
private

Definition at line 38 of file Hydroinfo_h5.h.

View newest version in sPHENIX GitHub at line 38 of file Hydroinfo_h5.h

double HydroinfoH5::grid_Tau0
private

Definition at line 35 of file Hydroinfo_h5.h.

View newest version in sPHENIX GitHub at line 35 of file Hydroinfo_h5.h

Referenced by getHydrogridTau0().

double HydroinfoH5::grid_Taumax
private

Definition at line 36 of file Hydroinfo_h5.h.

View newest version in sPHENIX GitHub at line 36 of file Hydroinfo_h5.h

Referenced by getHydrogridTaumax().

double HydroinfoH5::grid_X0
private

Definition at line 33 of file Hydroinfo_h5.h.

View newest version in sPHENIX GitHub at line 33 of file Hydroinfo_h5.h

Referenced by getHydrogridX0().

int HydroinfoH5::grid_XH
private

Definition at line 31 of file Hydroinfo_h5.h.

View newest version in sPHENIX GitHub at line 31 of file Hydroinfo_h5.h

Referenced by getHydrogridNX().

int HydroinfoH5::grid_XL
private

Definition at line 31 of file Hydroinfo_h5.h.

View newest version in sPHENIX GitHub at line 31 of file Hydroinfo_h5.h

Referenced by getHydrogridNX().

double HydroinfoH5::grid_Xmax
private

Definition at line 34 of file Hydroinfo_h5.h.

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

Referenced by getHydrogridXmax().

double HydroinfoH5::grid_Y0
private

Definition at line 33 of file Hydroinfo_h5.h.

View newest version in sPHENIX GitHub at line 33 of file Hydroinfo_h5.h

Referenced by getHydrogridY0().

int HydroinfoH5::grid_YH
private

Definition at line 31 of file Hydroinfo_h5.h.

View newest version in sPHENIX GitHub at line 31 of file Hydroinfo_h5.h

Referenced by getHydrogridNY().

int HydroinfoH5::grid_YL
private

Definition at line 31 of file Hydroinfo_h5.h.

View newest version in sPHENIX GitHub at line 31 of file Hydroinfo_h5.h

Referenced by getHydrogridNY().

double HydroinfoH5::grid_Ymax
private

Definition at line 34 of file Hydroinfo_h5.h.

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

Referenced by getHydrogridYmax().

hid_t HydroinfoH5::H5file_id
private

Definition at line 29 of file Hydroinfo_h5.h.

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

hid_t HydroinfoH5::H5groupEventid
private

Definition at line 29 of file Hydroinfo_h5.h.

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

int HydroinfoH5::LST_cur
private

Definition at line 39 of file Hydroinfo_h5.h.

View newest version in sPHENIX GitHub at line 39 of file Hydroinfo_h5.h

int HydroinfoH5::outputFlag
private

Definition at line 23 of file Hydroinfo_h5.h.

View newest version in sPHENIX GitHub at line 23 of file Hydroinfo_h5.h

double*** HydroinfoH5::pi00
private

Definition at line 43 of file Hydroinfo_h5.h.

View newest version in sPHENIX GitHub at line 43 of file Hydroinfo_h5.h

double *** HydroinfoH5::pi01
private

Definition at line 43 of file Hydroinfo_h5.h.

View newest version in sPHENIX GitHub at line 43 of file Hydroinfo_h5.h

double *** HydroinfoH5::pi02
private

Definition at line 43 of file Hydroinfo_h5.h.

View newest version in sPHENIX GitHub at line 43 of file Hydroinfo_h5.h

double *** HydroinfoH5::pi03
private

Definition at line 43 of file Hydroinfo_h5.h.

View newest version in sPHENIX GitHub at line 43 of file Hydroinfo_h5.h

double *** HydroinfoH5::pi11
private

Definition at line 43 of file Hydroinfo_h5.h.

View newest version in sPHENIX GitHub at line 43 of file Hydroinfo_h5.h

double *** HydroinfoH5::pi12
private

Definition at line 43 of file Hydroinfo_h5.h.

View newest version in sPHENIX GitHub at line 43 of file Hydroinfo_h5.h

double *** HydroinfoH5::pi13
private

Definition at line 43 of file Hydroinfo_h5.h.

View newest version in sPHENIX GitHub at line 43 of file Hydroinfo_h5.h

double*** HydroinfoH5::pi22
private

Definition at line 44 of file Hydroinfo_h5.h.

View newest version in sPHENIX GitHub at line 44 of file Hydroinfo_h5.h

double *** HydroinfoH5::pi23
private

Definition at line 44 of file Hydroinfo_h5.h.

View newest version in sPHENIX GitHub at line 44 of file Hydroinfo_h5.h

double *** HydroinfoH5::pi33
private

Definition at line 44 of file Hydroinfo_h5.h.

View newest version in sPHENIX GitHub at line 44 of file Hydroinfo_h5.h

double *** HydroinfoH5::Pressure
private

Definition at line 42 of file Hydroinfo_h5.h.

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

int HydroinfoH5::readinFlag
private

Definition at line 22 of file Hydroinfo_h5.h.

View newest version in sPHENIX GitHub at line 22 of file Hydroinfo_h5.h

double *** HydroinfoH5::sd
private

Definition at line 42 of file Hydroinfo_h5.h.

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

double *** HydroinfoH5::Temperature
private

Definition at line 42 of file Hydroinfo_h5.h.

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

int HydroinfoH5::Visflag
private

Definition at line 27 of file Hydroinfo_h5.h.

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

double *** HydroinfoH5::vx
private

Definition at line 42 of file Hydroinfo_h5.h.

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

double *** HydroinfoH5::vy
private

Definition at line 42 of file Hydroinfo_h5.h.

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


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