EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
materialPlotHelper.cpp File Reference
#include "materialPlotHelper.hpp"
#include <iomanip>
#include <ostream>
#include <string>
#include "../../../thirdparty/nlohmann_json/single_include/nlohmann/json.hpp"
+ Include dependency graph for materialPlotHelper.cpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  sinfo
 Information on a given surface. More...
 

Typedefs

using json = nlohmann::json
 

Functions

void Parse_Json (const json &Det, std::map< std::string, std::string > &surface_name)
 Parse the surface map json file to associate the surface name to each id.
 
void Initialise_info (sinfo &surface_info, const std::map< std::string, std::string > &surface_name, const uint64_t &id, const int &type, const float &pos, const float &range_min, const float &range_max)
 Initialise the information on each surface.
 

Typedef Documentation

Definition at line 17 of file materialPlotHelper.cpp.

View newest version in sPHENIX GitHub at line 17 of file materialPlotHelper.cpp

Function Documentation

void Initialise_info ( sinfo surface_info,
const std::map< std::string, std::string > &  surface_name,
const uint64_t &  id,
const int &  type,
const float &  pos,
const float &  range_min,
const float &  range_max 
)

Initialise the information on each surface.

Definition at line 89 of file materialPlotHelper.cpp.

View newest version in sPHENIX GitHub at line 89 of file materialPlotHelper.cpp

References sinfo::id, sinfo::idname, sinfo::name, sinfo::pos, pos(), sinfo::range_max, sinfo::range_min, release::tag(), and sinfo::type.

Referenced by Fill().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void Parse_Json ( const json Det,
std::map< std::string, std::string > &  surface_name 
)

Parse the surface map json file to associate the surface name to each id.

Definition at line 42 of file materialPlotHelper.cpp.

View newest version in sPHENIX GitHub at line 42 of file materialPlotHelper.cpp

References nlohmann::basic_json::items(), name, and value.

Referenced by Fill().

+ Here is the call graph for this function:

+ Here is the caller graph for this function: