StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | List of all members
StGlauberCumulantHistogramMaker Class Reference
Inheritance diagram for StGlauberCumulantHistogramMaker:
StGlauberHistogramMaker

Public Member Functions

 StGlauberCumulantHistogramMaker (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)
 
void Init ()
 Default destructor. More...
 
void Fill (const Double_t y, const Double_t weight)
 Set X-axis variable. More...
 
void Finish (const TString type)
 
- Public Member Functions inherited from StGlauberHistogramMaker
 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...
 
void SetXaxis (const StGlauberTree &tree, const StCentralityMaker &centralityMaker, const TString type)
 Initialize histograms. More...
 
const TString GetName () const
 
void DebugOn ()
 Get histogram name.
 

Additional Inherited Members

- Protected Member Functions inherited from StGlauberHistogramMaker
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.
 

Detailed Description

Definition at line 17 of file StGlauberCumulantHistogramMaker.h.

Member Function Documentation

void StGlauberCumulantHistogramMaker::Fill ( const Double_t  y,
const Double_t  weight 
)
virtual

Set X-axis variable.

Fill 'y' value with 'weight'

Fill

Fill 'y' value with 'weight' Re-weighting is only applied for numerator

Check x-axis, abort if all bad

Fill

Reimplemented from StGlauberHistogramMaker.

Definition at line 85 of file StGlauberCumulantHistogramMaker.cxx.

References StGlauberHistogramMaker::Fill(), and StGlauberHistogramMaker::FillProfile().

Referenced by StGlauberAnalysisMaker::Make().

void StGlauberCumulantHistogramMaker::Finish ( const TString  type)
virtual

Do correction for weight, and write table in the current directory and calculate cumulants of the stored quantity table name will be: table_{mName}_vs_centrality.txt table contains <centrality bin>=""> <minimum centrality>=""> <maximum centrality>="">

<stat. error>

Call StGlauberHistogramMaker::Finish() first

do weight correction

Calculate cumulant

Reimplemented from StGlauberHistogramMaker.

Definition at line 102 of file StGlauberCumulantHistogramMaker.cxx.

References StGlauberHistogramMaker::DoWeightCorrection(), StGlauberHistogramMaker::Finish(), StGlauberHistogramMaker::WriteGraphs(), and StGlauberHistogramMaker::WriteTable().

Referenced by StGlauberAnalysisMaker::Finish().

void StGlauberCumulantHistogramMaker::Init ( )
virtual

Default destructor.

Initialize histograms in StGlauberHistogramMaker first

Initialize histograms

Reimplemented from StGlauberHistogramMaker.

Definition at line 42 of file StGlauberCumulantHistogramMaker.cxx.

References StGlauberHistogramMaker::GetNXaxis().


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