StRoot
1
|
Public Member Functions | |
StGlauberHistogramMaker (const TString name, const TString title, const TString ytitle, const Int_t ybin, const Double_t ymin, const Double_t ymax, const Bool_t isUnitWeight=kTRUE) | |
Default constructor. | |
void | SetTableDirectory (const TString directory) |
Default destructor. More... | |
virtual void | Init () |
void | SetXaxis (const StGlauberTree &tree, const StCentralityMaker ¢ralityMaker, const TString type) |
Initialize histograms. More... | |
virtual void | Fill (const Double_t y, const Double_t weight) |
Set X-axis variable. More... | |
virtual void | Finish (const TString type) |
Fill histogram 'y' value with 'weight'. More... | |
const TString | GetName () const |
void | DebugOn () |
Get histogram name. | |
Protected Member Functions | |
virtual void | Reset () |
Debug flag. | |
Bool_t | IsXaxisOk () const |
Reset all data members. | |
void | Fill2D (std::vector< TH2 * > collection, const Double_t y, const Double_t weight) |
Check xAxis has been filled, abort if empty. More... | |
void | FillProfile (std::vector< TProfile * > collection, const Double_t y) |
void | Fill (const TString type, const Double_t y, const Double_t weight) |
void | DoWeightCorrection (std::vector< TH1 * > collection1d, std::vector< TProfile * > collectionp) |
Calculate sum(w*val)/sum(w) for each profile histogram. More... | |
void | WriteTable (std::vector< TH1 * > collection, const TString name) |
Write text table, average quantity vs centrality (table: table_{mName}_vs_centrality.txt) More... | |
void | WriteGraphs (std::vector< TH1 * > collection) |
Write TGraphErrors (vs centrality, 0-80%) More... | |
const TString | GetHistogramName (const TString name, const UInt_t ix) const |
TH1 * | GetTH1D (const TString name, const UInt_t ix) |
TH2 * | GetTH2D (const TString name, const UInt_t ix) |
TProfile * | GetTProfile (const TString name, const UInt_t ix, const TString title="Profile") |
UInt_t | GetNXaxis () const |
Naxis. | |
Definition at line 22 of file StGlauberHistogramMaker.h.
|
protected |
Calculate sum(w*val)/sum(w) for each profile histogram.
Profile / Weight Use TH1 instead of TProfile since TProfile is not accurate to calculate errors in Divide() function
Profile::Divide() computing error is not accurate, use TH1 instead
Set y-axis range from 2D
Copy contenst/errors
Definition at line 289 of file StGlauberHistogramMaker.cxx.
Referenced by StGlauberCumulantHistogramMaker::Finish(), and Finish().
|
virtual |
Set X-axis variable.
Fill 'y' value with 'weight' Re-weighting is only applied for numerator
Check x-axis, abort if all bad
Fill
Reimplemented in StGlauberCumulantHistogramMaker.
Definition at line 271 of file StGlauberHistogramMaker.cxx.
References IsXaxisOk().
Referenced by StGlauberCumulantHistogramMaker::Fill(), and StGlauberAnalysisMaker::Make().
|
protected |
Fill histogram Choose type '2d', 'profile' or 'weight'
(2d)->Fill(x, y, weight); (profile)->Fill(x, y*weight) (weight)->Fill(x, weight)
Definition at line 244 of file StGlauberHistogramMaker.cxx.
References Fill2D(), and FillProfile().
|
protected |
Check xAxis has been filled, abort if empty.
Fill 2D histogram
Definition at line 177 of file StGlauberHistogramMaker.cxx.
Referenced by Fill().
|
protected |
Fill profile histogram
Definition at line 210 of file StGlauberHistogramMaker.cxx.
Referenced by StGlauberCumulantHistogramMaker::Fill(), and Fill().
|
virtual |
Fill histogram 'y' value with 'weight'.
Do correction for weight, and write table in the current directory table name will be: table_{mName}_vs_centrality.txt table contains <centrality bin>=""> <minimum centrality>=""> <maximum centrality>="">
<stat. error>
Weight correction
Write down the table
Write graphs
Reimplemented in StGlauberCumulantHistogramMaker.
Definition at line 382 of file StGlauberHistogramMaker.cxx.
References DoWeightCorrection(), WriteGraphs(), and WriteTable().
Referenced by StGlauberCumulantHistogramMaker::Finish(), and StGlauberAnalysisMaker::Finish().
|
virtual |
Initialize histograms and x-axis
Initialize x-axis
Initialize histograms
Initialize weight histogram
Print informations
Reimplemented in StGlauberCumulantHistogramMaker.
Definition at line 83 of file StGlauberHistogramMaker.cxx.
References Reset().
Referenced by StGlauberHistogramMaker().
void StGlauberHistogramMaker::SetTableDirectory | ( | const TString | directory | ) |
Default destructor.
Set directory for output table (default is current directory)
Definition at line 75 of file StGlauberHistogramMaker.cxx.
void StGlauberHistogramMaker::SetXaxis | ( | const StGlauberTree & | tree, |
const StCentralityMaker & | centralityMaker, | ||
const TString | type | ||
) |
Initialize histograms.
Set x-axis (put variable in correct order, see Init())
Set id!=0 if type is "smallTotal" or "largeTotal"
Definition at line 136 of file StGlauberHistogramMaker.cxx.
References StCentrality::GetCentrality().
Referenced by StGlauberAnalysisMaker::Make().
|
protected |
Write TGraphErrors (vs centrality, 0-80%)
Write TGraphErrors into output ROOT file
Definition at line 349 of file StGlauberHistogramMaker.cxx.
Referenced by StGlauberCumulantHistogramMaker::Finish(), and Finish().
|
protected |
Write text table, average quantity vs centrality (table: table_{mName}_vs_centrality.txt)
Format will be: <centrality bin>=""> <minimum centrality>=""> <maximum centrality>="">
<stat. error>
Definition at line 324 of file StGlauberHistogramMaker.cxx.
Referenced by StGlauberCumulantHistogramMaker::Finish(), and Finish().