AliPhysics  a88b1f0 (a88b1f0)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Spectra Struct Reference
Inheritance diagram for Spectra:

Public Member Functions

 Spectra ()
 
 Spectra (const char *name, const char *title, Color_t color, const TArrayD &bins)
 
 Spectra (const Spectra &o)
 
virtual ~Spectra ()
 
Spectraoperator= (const Spectra &o)
 
const char * GetName () const
 
void Fill (Bool_t primary, Double_t x)
 
TH1Hist (Bool_t primary) const
 
virtual void Stack (THStack *stack, TLegend *leg)
 
Long64_t Merge (TCollection *list)
 
Bool_t Add (const Spectra *oth)
 
void ls (Option_t *option="") const
 
void Store (TDirectory *dir)
 
 ClassDef (Spectra, 1)
 

Public Attributes

TString fName
 
TH1fPrimary
 
TH1fSecondary
 

Detailed Description

Container of primary/secondary histograms

Definition at line 96 of file TupleSelector.C.

Constructor & Destructor Documentation

Spectra::Spectra ( )
inline

I/O CTOR

Definition at line 107 of file TupleSelector.C.

Spectra::Spectra ( const char *  name,
const char *  title,
Color_t  color,
const TArrayD bins 
)
inline

User CTOR

Parameters
nameName
titleTitle
colorColor
binsBin definition

Definition at line 118 of file TupleSelector.C.

Spectra::Spectra ( const Spectra o)
inline

Copy CTOR

Parameters
oObject to copy from

Definition at line 148 of file TupleSelector.C.

virtual Spectra::~Spectra ( )
inlinevirtual

DTOR

Definition at line 162 of file TupleSelector.C.

Member Function Documentation

Bool_t Spectra::Add ( const Spectra oth)
inline

Definition at line 276 of file TupleSelector.C.

Referenced by Merge(), and Ring::Merge().

Spectra::ClassDef ( Spectra  ,
 
)
void Spectra::Fill ( Bool_t  primary,
Double_t  x 
)
inline

Fill into histogram

Parameters
primarytrue if for primary
xWhat to fill

Definition at line 201 of file TupleSelector.C.

Referenced by Ring::Fill().

const char* Spectra::GetName ( ) const
inline

Get the name

Returns
name

Definition at line 194 of file TupleSelector.C.

TH1* Spectra::Hist ( Bool_t  primary) const
inline

Get a histogram

Parameters
primaryIf true, get histogram for primaries, otherwise for secondaries.
Returns
Pointer to histogram (possibly null)

Definition at line 214 of file TupleSelector.C.

Referenced by Ring::Hist(), and TupleSelector::PlotOne().

void Spectra::ls ( Option_t option = "") const
inline

List this object

Parameters
optionNot used

Definition at line 301 of file TupleSelector.C.

Long64_t Spectra::Merge ( TCollection list)
inline

Merge this object with similar objects in the list.

Parameters
listlist of objects
Returns
Number of merged objects

Definition at line 259 of file TupleSelector.C.

Spectra& Spectra::operator= ( const Spectra o)
inline

Assigment operator

Parameters
oObject to assign from
Returns
Reference to this

Definition at line 174 of file TupleSelector.C.

virtual void Spectra::Stack ( THStack *  stack,
TLegend *  leg 
)
inlinevirtual

Add the histograms to a stack and legend

Parameters
stackStack to add to
legLegend

Definition at line 224 of file TupleSelector.C.

Referenced by TupleSelector::PlotOne().

void Spectra::Store ( TDirectory *  dir)
inline

Store this on file

Parameters
dirParent directory

Definition at line 316 of file TupleSelector.C.

Referenced by Ring::Store().

Member Data Documentation

TString Spectra::fName

The name

Definition at line 99 of file TupleSelector.C.

Referenced by Add(), GetName(), operator=(), Store(), and Type::Type().

TH1* Spectra::fPrimary

Primaries

Definition at line 101 of file TupleSelector.C.

Referenced by Add(), Fill(), Hist(), ls(), operator=(), Spectra(), Stack(), Store(), Type::Type(), and ~Spectra().

TH1* Spectra::fSecondary

Secondaries

Definition at line 103 of file TupleSelector.C.

Referenced by Add(), Fill(), Hist(), ls(), operator=(), Spectra(), Stack(), Store(), Type::Type(), and ~Spectra().


The documentation for this struct was generated from the following file: