AliPhysics  781d0c7 (781d0c7)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Calculation Struct Reference

Classes

struct  Particle
 
struct  Row
 

Public Types

typedef std::vector< Particle * > ParticleList
 
typedef std::vector< Particle * > ParticleList
 

Public Member Functions

void Print ()
 
void AddParticle (Particle *p)
 
Double_t R (Int_t i, const char *w="", Bool_t verb=true) const
 
Double_t Calc (Bool_t verb=true)
 
TObjectChkC (TObject *o, TClass *c) const
 
TObjectChkO (TObject *src, TObject *o, const char *name) const
 
TObjectGetO (TDirectory *d, const char *name, TClass *cls) const
 
TObjectGetO (TCollection *d, const char *name, TClass *cls) const
 
TCollectionGetC (TDirectory *d, const char *name)
 
TCollectionGetC (TCollection *d, const char *name)
 
TH1GetH1 (TCollection *d, const char *name)
 
TH2GetH2 (TCollection *d, const char *name)
 
THStack * GetHS (TCollection *d, const char *name)
 
ParticleCreate (Double_t w, Int_t bin, THStack *hp, THStack *hs, THStack *hc)
 
void Run (const char *fileName, const char *binName, Bool_t mid=true)
 
void Run (const char *fileName, Double_t c1=0, Double_t c2=0, Bool_t mid=true)
 
void Print ()
 
void ScaleExpected ()
 
ParticleCreate (Double_t w, Int_t column, TCollection *reduced, TCollection *reweighed, TCollection *truth, const TString &sub)
 
THStack * MakeStack (Int_t column, const char *name, const char *title)
 
void DrawStack (TVirtualPad *mother, Int_t sub, THStack *stack, Bool_t logy)
 
void Run (Double_t c1=0, Double_t c2=0, Bool_t mid=true)
 

Static Public Member Functions

static TObjectChkC (TObject *o, TClass *c)
 
static TObjectChkO (TObject *src, TObject *o, const char *name)
 
static TObjectGetO (TDirectory *d, const char *name, TClass *cls)
 
static TObjectGetO (TCollection *d, const char *name, TClass *cls)
 
static TCollectionGetC (TDirectory *d, const char *name)
 
static TCollectionGetC (TCollection *d, const char *name)
 
static TH1GetH1 (TCollection *d, const char *name)
 
static TH2GetH2 (TCollection *d, const char *name)
 
static THStack * GetHS (TCollection *d, const char *name)
 

Public Attributes

ParticleList particles
 
Double_t fP
 
Double_t fS
 
Double_t fC
 
Double_t fPs
 
Double_t fSs
 
Double_t fCs
 

Detailed Description

Class to do the calculation

Definition at line 47 of file BackOfTheEnvelope.C.

Member Typedef Documentation

typedef std::vector<Particle*> Calculation::ParticleList

Definition at line 82 of file BackOfTheEnvelope.C.

typedef std::vector<Particle*> Calculation::ParticleList

Definition at line 166 of file Expectations.C.

Member Function Documentation

void Calculation::AddParticle ( Particle p)
inline

Add a particle

Parameters
p

Definition at line 122 of file BackOfTheEnvelope.C.

Referenced by Create().

Double_t Calculation::Calc ( Bool_t  verb = true)
inline

Calculate the full change

Parameters
verb
Returns

Definition at line 155 of file BackOfTheEnvelope.C.

Referenced by Run().

TObject* Calculation::ChkC ( TObject o,
TClass *  c 
) const
inline

Definition at line 180 of file BackOfTheEnvelope.C.

Referenced by GetO().

static TObject* Calculation::ChkC ( TObject o,
TClass *  c 
)
inlinestatic

Check class of object

Parameters
oObject to check
cOptional class
Returns
o if the class match, or null

Definition at line 231 of file Expectations.C.

TObject* Calculation::ChkO ( TObject src,
TObject o,
const char *  name 
) const
inline

Definition at line 191 of file BackOfTheEnvelope.C.

Referenced by GetO().

static TObject* Calculation::ChkO ( TObject src,
TObject o,
const char *  name 
)
inlinestatic

Check that we got an object from a source

Parameters
srcSource
oObject
nameObject name
Returns
Object or null

Definition at line 251 of file Expectations.C.

Particle* Calculation::Create ( Double_t  w,
Int_t  bin,
THStack *  hp,
THStack *  hs,
THStack *  hc 
)
inline

Create a particle

Parameters
wWeight
binBin to look in
hpStack for primaries
hsStack for secondaries
hcStack for combinatorics
Returns
The particle

Definition at line 249 of file BackOfTheEnvelope.C.

Referenced by Run().

Particle* Calculation::Create ( Double_t  w,
Int_t  column,
TCollection reduced,
TCollection reweighed,
TCollection truth,
const TString sub 
)
inline

Create a particle

Parameters
wWeight of particle
columnColumn in histograms to read off
reducedThe reduced set
reweighedThe reweighed set
truthThe truth set
binThe bin name
subThe sub name
Returns
Create Particle object

Definition at line 369 of file Expectations.C.

void Calculation::DrawStack ( TVirtualPad *  mother,
Int_t  sub,
THStack *  stack,
Bool_t  logy 
)
inline

Definition at line 412 of file Expectations.C.

Referenced by Run().

TCollection* Calculation::GetC ( TDirectory *  d,
const char *  name 
)
inline

Definition at line 218 of file BackOfTheEnvelope.C.

Referenced by Calculation::Particle::Read(), and Run().

TCollection* Calculation::GetC ( TCollection d,
const char *  name 
)
inline

Definition at line 222 of file BackOfTheEnvelope.C.

static TCollection* Calculation::GetC ( TDirectory *  d,
const char *  name 
)
inlinestatic

Get a collection from a source

Parameters
dSource
nameName of collection
Returns
Collection or null

Definition at line 304 of file Expectations.C.

static TCollection* Calculation::GetC ( TCollection d,
const char *  name 
)
inlinestatic

Get a collection from a source

Parameters
dSource
nameName of collection
Returns
Collection or null

Definition at line 316 of file Expectations.C.

TH1* Calculation::GetH1 ( TCollection d,
const char *  name 
)
inline

Definition at line 226 of file BackOfTheEnvelope.C.

Referenced by Create(), Calculation::Particle::Read(), and Run().

static TH1* Calculation::GetH1 ( TCollection d,
const char *  name 
)
inlinestatic

Get a histogram from a source

Parameters
dSource
nameName of histogram
Returns
Histogram or null

Definition at line 328 of file Expectations.C.

TH2* Calculation::GetH2 ( TCollection d,
const char *  name 
)
inline

Definition at line 230 of file BackOfTheEnvelope.C.

static TH2* Calculation::GetH2 ( TCollection d,
const char *  name 
)
inlinestatic

Get a histogram from a source

Parameters
dSource
nameName of histogram
Returns
Histogram or null

Definition at line 340 of file Expectations.C.

THStack* Calculation::GetHS ( TCollection d,
const char *  name 
)
inline

Definition at line 234 of file BackOfTheEnvelope.C.

Referenced by Calculation::Particle::Read(), and Run().

static THStack* Calculation::GetHS ( TCollection d,
const char *  name 
)
inlinestatic

Get a histogram stack from a source

Parameters
dSource
nameName of histogram stack
Returns
Histogram stack or null

Definition at line 352 of file Expectations.C.

TObject* Calculation::GetO ( TDirectory *  d,
const char *  name,
TClass *  cls 
) const
inline

Definition at line 200 of file BackOfTheEnvelope.C.

Referenced by GetC(), GetH1(), GetH2(), and GetHS().

TObject* Calculation::GetO ( TCollection d,
const char *  name,
TClass *  cls 
) const
inline

Definition at line 209 of file BackOfTheEnvelope.C.

static TObject* Calculation::GetO ( TDirectory *  d,
const char *  name,
TClass *  cls 
)
inlinestatic

Get an object from a source

Parameters
dDirectory
nameName
clsOptional class to check for
Returns
Found object or null

Definition at line 269 of file Expectations.C.

static TObject* Calculation::GetO ( TCollection d,
const char *  name,
TClass *  cls 
)
inlinestatic

Get an object from a source

Parameters
dCollection
nameName
clsOptional class to check for
Returns
Found object or null

Definition at line 287 of file Expectations.C.

THStack* Calculation::MakeStack ( Int_t  column,
const char *  name,
const char *  title 
)
inline

Definition at line 385 of file Expectations.C.

Referenced by Run().

void Calculation::Print ( )
inline

Print out

Definition at line 97 of file BackOfTheEnvelope.C.

Referenced by Run().

void Calculation::Print ( )
inline

Print out

Definition at line 181 of file Expectations.C.

Double_t Calculation::R ( Int_t  i,
const char *  w = "",
Bool_t  verb = true 
) const
inline

Calculate the change

Parameters
i
w
verb
Returns

Definition at line 135 of file BackOfTheEnvelope.C.

Referenced by Calc().

void Calculation::Run ( const char *  fileName,
const char *  binName,
Bool_t  mid = true 
)
inline

Run it

Parameters
fileNameInput file
binNameBin name
midIf true, for |eta|<1, otherwise |eta|>1

Definition at line 273 of file BackOfTheEnvelope.C.

Referenced by BackOfTheEnvelope(), Expectations(), and Run().

void Calculation::Run ( const char *  fileName,
Double_t  c1 = 0,
Double_t  c2 = 0,
Bool_t  mid = true 
)
inline

Definition at line 335 of file BackOfTheEnvelope.C.

void Calculation::Run ( Double_t  c1 = 0,
Double_t  c2 = 0,
Bool_t  mid = true 
)
inline

Run it

Parameters
fileNameInput file
binNameBin name
midIf true, for |eta|<1, otherwise |eta|>1

Definition at line 437 of file Expectations.C.

void Calculation::ScaleExpected ( )
inline

Definition at line 209 of file Expectations.C.

Referenced by Run().

Member Data Documentation

Double_t Calculation::fC

Definition at line 89 of file BackOfTheEnvelope.C.

Referenced by Calc(), Print(), and Run().

Double_t Calculation::fCs

Definition at line 92 of file BackOfTheEnvelope.C.

Referenced by Calc(), Print(), and Run().

Double_t Calculation::fP

Definition at line 87 of file BackOfTheEnvelope.C.

Referenced by Calc(), Print(), and Run().

Double_t Calculation::fPs

Definition at line 90 of file BackOfTheEnvelope.C.

Referenced by Calc(), Print(), and Run().

Double_t Calculation::fS

Definition at line 88 of file BackOfTheEnvelope.C.

Referenced by Calc(), Print(), and Run().

Double_t Calculation::fSs

Definition at line 91 of file BackOfTheEnvelope.C.

Referenced by Calc(), Print(), and Run().

ParticleList Calculation::particles

Definition at line 86 of file BackOfTheEnvelope.C.

Referenced by AddParticle(), Create(), MakeStack(), Print(), R(), and ScaleExpected().


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