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

Classes

struct  Particle
 
struct  Row
 

Public Types

enum  EColumn { kPs, kSs, kCs, kCb }
 
enum  ERow { kReduced, kExpectation, kReweighed, kAsIs }
 
enum  EKind {
  kK0S = 1, kKpm, kLambda, kXi,
  kSigma, kOther
}
 
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, EKind kind, TCollection *reduced, TCollection *reweighed, TCollection *asis, const TString &sub, const TString &oth, Bool_t abso)
 
THStack * MakeStack (EColumn column, const char *name, const char *title, Int_t mode)
 
void DrawStack (TVirtualPad *mother, EColumn column, THStack *stack, Bool_t logy, Bool_t abso, Int_t mode)
 
void Run (Double_t c1=0, Double_t c2=0, Bool_t mid=true)
 

Public Attributes

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

Additional Inherited Members

- Static Public Member Functions inherited from Utilities
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)
 
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)
 

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 382 of file Expectations.C.

Member Enumeration Documentation

Enumerator
kPs 
kSs 
kCs 
kCb 

Definition at line 191 of file Expectations.C.

Enumerator
kK0S 
kKpm 
kLambda 
kXi 
kSigma 
kOther 

Definition at line 203 of file Expectations.C.

Enumerator
kReduced 
kExpectation 
kReweighed 
kAsIs 

Definition at line 197 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().

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

Definition at line 191 of file BackOfTheEnvelope.C.

Referenced by GetO().

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,
EKind  kind,
TCollection reduced,
TCollection reweighed,
TCollection asis,
const TString sub,
const TString oth,
Bool_t  abso 
)
inline

Create a particle

Parameters
wWeight of particle
columnColumn in histograms to read off
reducedThe reduced set
reweighedThe reweighed set
asisThe asis set
binThe bin name
subThe sub name
othThe other sub-name
absoIf true, get absolute numbers
Returns
Create Particle object

Definition at line 461 of file Expectations.C.

void Calculation::DrawStack ( TVirtualPad *  mother,
EColumn  column,
THStack *  stack,
Bool_t  logy,
Bool_t  abso,
Int_t  mode 
)
inline

Draw a stack

Parameters
motherMother pad
columnColumn being drawn
stackStack to draw
logyIf true, plot on logarithmic scale
absoIf true, assume absolute numbers

Definition at line 535 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.

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().

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

Definition at line 230 of file BackOfTheEnvelope.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().

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.

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

Make a stack

Parameters
columnWhich column (Ps,Ss,Cs, or Cb)
nameName of stack
titleTitle of stack
Returns
The created stack

Definition at line 488 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 397 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 572 of file Expectations.C.

void Calculation::ScaleExpected ( )
inline

Scale the expected numbers to 100%

Definition at line 429 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: