AliPhysics  8d00e07 (8d00e07)
spectra::Base Struct Reference
Inheritance diagram for spectra::Base:

Public Types

enum  {
  kPiSty = 20, kKSty = 21, kPSty = 22, kOSty = 23,
  kASty = 24
}
 
enum  {
  kPiColor = kRed+2, kKColor = kGreen+2, kPColor = kBlue+2, kOColor = kMagenta+2,
  kAColor = kBlack
}
 

Public Member Functions

 Base (Bool_t verbose=false, Int_t monitor=0)
 
virtual void SlaveBegin (TTree *)
 
Bool_t ProcessHeader ()
 
void ProcessParticles ()
 
virtual Bool_t ProcessParticle (const TParticle *p)
 
virtual void Terminate ()
 
virtual TListGetMonitorObjects ()
 
void Print (Option_t *option="") const
 
- Public Member Functions inherited from FastAnalysis
 FastAnalysis (Bool_t verb=false, Int_t monitor=0)
 
virtual ~FastAnalysis ()
 
void SetTrigger (UInt_t mask)
 
void SetTrigger (UInt_t mask, Bool_t isAnd)
 
void SetTrigger (const char *what)
 
Bool_t CheckTrigger () const
 
void SetVerbose (Bool_t verb)
 
void SetupMonitor ()
 
Bool_t SetupBranches ()
 
virtual Bool_t SetupEstimator ()
 
void Init (TTree *tree)
 
virtual void Begin (TTree *)
 
Bool_t Notify ()
 
virtual Bool_t Process (Long64_t entry)
 
virtual void SlaveTerminate ()
 
Int_t Version () const
 
Double_t GetCentrality () const
 
Long_t GetEventCount ()
 
TObjectGetOutputObject (const char *name, TClass *cls)
 
void CopyEgHistogram ()
 
virtual void Clear (Option_t *option="")
 
virtual Bool_t AcceptSecondaries () const
 
virtual Bool_t AcceptNeutrals () const
 

Static Public Member Functions

static TH1CreateSpectra (UInt_t pdg, Color_t col, Style_t sty)
 
static TH1CreateMt (UInt_t pdg, Color_t col, Style_t sty)
 
static TH1CreateMass ()
 
static TH1CreateRatio (UInt_t pdg, Color_t col, Style_t sty)
 
static TObjectCreateOutput ()
 
static const char * dNdptName (UInt_t pdg)
 
static const char * dNdmtName (UInt_t pdg)
 
static const char * RatioName (UInt_t pdg)
 
static Bool_t Scale (TList *l, UInt_t pdg, Int_t nOK)
 
static Bool_t Ratio (TList *l, TH1 *r, Int_t bin, UInt_t pdg)
 
static TH1Normalize (TObject *o, Int_t nEv)
 
- Static Public Member Functions inherited from FastAnalysis
static Long_t ProofExec (const char *cmd=0)
 
static Bool_t ProofLoad (const char *file, const char *opt)
 
static Bool_t Str2KeyVal (const TString &in, TString &key, TString &val, const char sep='=')
 
static Bool_t SetupProof (TUrl &url, const char *opt, const char *extra)
 
static Bool_t Run (const char *url, const char *output, FastAnalysis *a, const char *script, Long64_t nev=-1, Long64_t offset=0, Int_t monitor=-1, Bool_t verbose=false, const char *opt="")
 
static Bool_t Run (const char *url, const char *output, const char *opt="g")
 

Public Attributes

Long_t fNpi
 
Long_t fNK
 
Long_t fNP
 
Long_t fNO
 
TH1fdNdpt
 
TH1fdNdptPi
 
TH1fdNdptK
 
TH1fdNdptP
 
TH1fdNdptO
 
TH1fdNdm
 
TH1fK2piRatio
 
TH1fP2piRatio
 
TH1fO2piRatio
 
TH2fd2Ndptdy
 
TH2fd2Ndmdy
 
Double_t fMaxY
 
- Public Attributes inherited from FastAnalysis
TTreefTree
 
FastShortHeaderfHeader
 
TClonesArray * fParticles
 
Bool_t fVerbose
 
TStopwatch fTimer
 
TString fName
 
ULong64_t fEventMult
 
TString fCentMethod
 
TH1fCentHist
 
ULong_t fOK
 
Int_t fMonitor
 
Bool_t fCompatB
 
UInt_t fTrigMask
 

Detailed Description

Analyser to analyse the pT spectra and particle ratios

Definition at line 25 of file spectraAnalysis.C.

Member Enumeration Documentation

anonymous enum
Enumerator
kPiSty 
kKSty 
kPSty 
kOSty 
kASty 

Definition at line 27 of file spectraAnalysis.C.

anonymous enum
Enumerator
kPiColor 
kKColor 
kPColor 
kOColor 
kAColor 

Definition at line 34 of file spectraAnalysis.C.

Constructor & Destructor Documentation

spectra::Base::Base ( Bool_t  verbose = false,
Int_t  monitor = 0 
)
inline

Constructor

Parameters
verbose
monitor

Definition at line 47 of file spectraAnalysis.C.

Member Function Documentation

static TH1* spectra::Base::CreateMass ( )
inlinestatic

Definition at line 102 of file spectraAnalysis.C.

Referenced by CreateOutput().

static TH1* spectra::Base::CreateMt ( UInt_t  pdg,
Color_t  col,
Style_t  sty 
)
inlinestatic

Definition at line 89 of file spectraAnalysis.C.

static TObject* spectra::Base::CreateOutput ( )
inlinestatic

Definition at line 137 of file spectraAnalysis.C.

Referenced by SlaveBegin(), and spectra::Cent::SlaveBegin().

static TH1* spectra::Base::CreateRatio ( UInt_t  pdg,
Color_t  col,
Style_t  sty 
)
inlinestatic

Create a ratio histogram

Parameters
pdg
col
sty
Returns

Definition at line 124 of file spectraAnalysis.C.

Referenced by CreateOutput().

static TH1* spectra::Base::CreateSpectra ( UInt_t  pdg,
Color_t  col,
Style_t  sty 
)
inlinestatic

Create a spectrum histogram

Parameters
pdg
col
sty
Returns

Definition at line 76 of file spectraAnalysis.C.

Referenced by CreateOutput().

static const char* spectra::Base::dNdmtName ( UInt_t  pdg)
inlinestatic

Name of spectrum histogram

Parameters
pdgParticle code
Returns
Name

Definition at line 267 of file spectraAnalysis.C.

Referenced by CreateMt().

static const char* spectra::Base::dNdptName ( UInt_t  pdg)
inlinestatic

Name of spectrum histogram

Parameters
pdgParticle code
Returns
Name

Definition at line 250 of file spectraAnalysis.C.

Referenced by CreateSpectra(), GetMonitorObjects(), spectra::Cent::GetMonitorObjects(), and Scale().

virtual TList* spectra::Base::GetMonitorObjects ( )
inlinevirtual

Get the list of monitored objects

Returns
The list of monitored objects

Reimplemented from FastAnalysis.

Reimplemented in spectra::Cent.

Definition at line 439 of file spectraAnalysis.C.

static TH1* spectra::Base::Normalize ( TObject o,
Int_t  nEv 
)
inlinestatic

Definition at line 330 of file spectraAnalysis.C.

Referenced by Terminate(), and spectra::Cent::Terminate().

void spectra::Base::Print ( Option_t option = "") const
inlinevirtual

Reimplemented from FastAnalysis.

Reimplemented in spectra::Cent.

Definition at line 449 of file spectraAnalysis.C.

Referenced by spectra::Cent::Print().

Bool_t spectra::Base::ProcessHeader ( )
inlinevirtual

Process header. Implement to make event selection

Returns
true if event is accepted

Reimplemented from FastAnalysis.

Reimplemented in spectra::Cent, and spectra::V0AND.

Definition at line 205 of file spectraAnalysis.C.

virtual Bool_t spectra::Base::ProcessParticle ( const TParticle *  p)
inlinevirtual

Process a particle.

Parameters
pParticle to process

Implements FastAnalysis.

Definition at line 224 of file spectraAnalysis.C.

void spectra::Base::ProcessParticles ( )
inlinevirtual

Process all particles

Reimplemented from FastAnalysis.

Reimplemented in spectra::Cent.

Definition at line 210 of file spectraAnalysis.C.

Referenced by spectra::Cent::ProcessParticles().

static Bool_t spectra::Base::Ratio ( TList l,
TH1 r,
Int_t  bin,
UInt_t  pdg 
)
inlinestatic

Fill the mean and rms of a ratio into a histogram

Parameters
rHistogram to fill
binBin number
pdgParticle ID
Returns

Definition at line 319 of file spectraAnalysis.C.

Referenced by Normalize().

static const char* spectra::Base::RatioName ( UInt_t  pdg)
inlinestatic

Name of ratio histograms

Parameters
pdgParticle code
Returns
Name

Definition at line 284 of file spectraAnalysis.C.

Referenced by CreateRatio(), and Ratio().

static Bool_t spectra::Base::Scale ( TList l,
UInt_t  pdg,
Int_t  nOK 
)
inlinestatic

Scale a spectrum by the number of events and the bin width

Parameters
pdgParticle number
Returns
true on succes

Definition at line 299 of file spectraAnalysis.C.

Referenced by Normalize().

virtual void spectra::Base::SlaveBegin ( TTree )
inlinevirtual

Called on each slave at start of processing. Histograms should be added to the output here.

Reimplemented in spectra::Cent.

Definition at line 175 of file spectraAnalysis.C.

Referenced by spectra::Cent::SlaveBegin().

virtual void spectra::Base::Terminate ( )
inlinevirtual

Final processing. Scales the histogram to the nubmer of events and the bin width.

Reimplemented in spectra::Cent.

Definition at line 422 of file spectraAnalysis.C.

Member Data Documentation

TH2* spectra::Base::fd2Ndmdy
TH2* spectra::Base::fd2Ndptdy
TH1* spectra::Base::fdNdm
TH1* spectra::Base::fdNdpt
TH1* spectra::Base::fdNdptK
TH1* spectra::Base::fdNdptO
TH1* spectra::Base::fdNdptP
TH1* spectra::Base::fdNdptPi
TH1* spectra::Base::fK2piRatio
Double_t spectra::Base::fMaxY

Definition at line 474 of file spectraAnalysis.C.

Referenced by spectraMaker::Make(), Print(), and ProcessParticle().

Long_t spectra::Base::fNK

Definition at line 455 of file spectraAnalysis.C.

Referenced by ProcessParticle(), and ProcessParticles().

Long_t spectra::Base::fNO

Definition at line 457 of file spectraAnalysis.C.

Referenced by ProcessParticle(), and ProcessParticles().

Long_t spectra::Base::fNP

Definition at line 456 of file spectraAnalysis.C.

Referenced by ProcessParticle(), and ProcessParticles().

Long_t spectra::Base::fNpi

Definition at line 454 of file spectraAnalysis.C.

Referenced by ProcessParticle(), and ProcessParticles().

TH1* spectra::Base::fO2piRatio
TH1* spectra::Base::fP2piRatio

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