EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Mat_map_detector_plot.C File Reference
#include <TROOT.h>
#include "materialPlotHelper.cpp"
#include <fstream>
#include <iostream>
#include <sstream>
+ Include dependency graph for Mat_map_detector_plot.C:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void plot (std::vector< TH2F * > Map, std::vector< int > detectors, const std::string &name)
 Draw and save the histograms.
 
void Initialise_hist (std::vector< TH2F * > &detector_hist)
 Initialise the histograms for the detector.
 
void Fill (std::vector< TH2F * > &detector_hist, const std::string &input_file, std::vector< int > detectors, const int &nbprocess)
 Fill the histograms for the detector.
 
void Mat_map_detector_plot (std::string input_file="", std::vector< int > detectors=vector< int >(), int nbprocess=-1, std::string name="")
 

Function Documentation

void Fill ( std::vector< TH2F * > &  detector_hist,
const std::string &  input_file,
std::vector< int >  detectors,
const int &  nbprocess 
)

Fill the histograms for the detector.

Definition at line 100 of file Mat_map_detector_plot.C.

View newest version in sPHENIX GitHub at line 100 of file Mat_map_detector_plot.C

References Initialise_hist(), v_phi, and Acts::GeometryIdentifier::volume().

Referenced by analysis_resolution(), Mat_map_detector_plot(), Mat_map_detector_plot_ratio(), Mat_map_surface_plot(), Mat_map_surface_plot_1D(), Mat_map_surface_plot_dist(), Mat_map_surface_plot_ratio(), and CaloCalibEmc_Pi0::process_event().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void Initialise_hist ( std::vector< TH2F * > &  detector_hist)

Initialise the histograms for the detector.

Definition at line 73 of file Mat_map_detector_plot.C.

View newest version in sPHENIX GitHub at line 73 of file Mat_map_detector_plot.C

Referenced by Fill().

+ Here is the caller graph for this function:

void Mat_map_detector_plot ( std::string  input_file = "",
std::vector< int >  detectors = vector<int>(),
int  nbprocess = -1,
std::string  name = "" 
)

Plot the material as function of eta and phi for a given detector/sub-detector detectors : list of the ID of the volume constitutive of the detector/sub-detector nbprocess : number of parameter to be processed. name : name of the output directory.

Definition at line 179 of file Mat_map_detector_plot.C.

View newest version in sPHENIX GitHub at line 179 of file Mat_map_detector_plot.C

References Fill(), name, and plot().

+ Here is the call graph for this function:

void plot ( std::vector< TH2F * >  Map,
std::vector< int >  detectors,
const std::string &  name 
)

Draw and save the histograms.

Definition at line 19 of file Mat_map_detector_plot.C.

View newest version in sPHENIX GitHub at line 19 of file Mat_map_detector_plot.C

References c1, c2, c3, and nlohmann::to_string().

Referenced by GeneratePlot(), Mat_map_detector_plot(), Mat_map_detector_plot_ratio(), Mat_map_surface_plot(), Mat_map_surface_plot_1D(), Mat_map_surface_plot_dist(), Mat_map_surface_plot_ratio(), and viewer().

+ Here is the call graph for this function:

+ Here is the caller graph for this function: