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

Public Types

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

Public Member Functions

 spectraAnalysis (Bool_t verbose=false, Int_t monitor=0)
 
TH1CreateSpectra (UInt_t pdg, Color_t col, Style_t sty)
 
TH1CreateRatio (UInt_t pdg, Color_t col, Style_t sty)
 
virtual void SlaveBegin (TTree *)
 
Bool_t ProcessHeader ()
 
void ProcessParticles ()
 
virtual Bool_t ProcessParticle (const TParticle *p)
 
Bool_t Scale (UInt_t pdg)
 
Bool_t Ratio (TH1 *r, Int_t bin, UInt_t pdg)
 
virtual void Terminate ()
 
 ClassDef (spectraAnalysis, 0)
 
- Public Member Functions inherited from FastAnalysis
 FastAnalysis (Bool_t verb=false, Int_t monitor=0)
 
virtual ~FastAnalysis ()
 
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 TListGetMonitorObjects ()
 
virtual void Clear (Option_t *option="")
 
virtual Bool_t AcceptSecondaries () const
 
virtual Bool_t AcceptNeutrals () const
 
 ClassDef (FastAnalysis, 1)
 

Static Public Member Functions

static const char * dNdptName (UInt_t pdg)
 
static const char * RatioName (UInt_t pdg)
 
- 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
 
TH1fdNdptPi
 
TH1fdNdptK
 
TH1fdNdptP
 
TH1fdNdptO
 
TH1fK2piRatio
 
TH1fP2piRatio
 
TH1fO2piRatio
 
- 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
 

Detailed Description

Analyser to analyse the pT spectra and particle ratios

Definition at line 17 of file spectraAnalysis.C.

Member Enumeration Documentation

anonymous enum
Enumerator
kPiSty 
kKSty 
kPSty 
kOSty 

Definition at line 19 of file spectraAnalysis.C.

anonymous enum
Enumerator
kPiColor 
kKColor 
kPColor 
kOColor 

Definition at line 25 of file spectraAnalysis.C.

Constructor & Destructor Documentation

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

Constructor

Parameters
verbose
monitor

Definition at line 37 of file spectraAnalysis.C.

Member Function Documentation

spectraAnalysis::ClassDef ( spectraAnalysis  ,
 
)
TH1* spectraAnalysis::CreateRatio ( UInt_t  pdg,
Color_t  col,
Style_t  sty 
)
inline

Create a ratio histogram

Parameters
pdg
col
sty
Returns

Definition at line 84 of file spectraAnalysis.C.

Referenced by SlaveBegin().

TH1* spectraAnalysis::CreateSpectra ( UInt_t  pdg,
Color_t  col,
Style_t  sty 
)
inline

Create a spectrum histogram

Parameters
pdg
col
sty
Returns

Definition at line 61 of file spectraAnalysis.C.

Referenced by SlaveBegin().

static const char* spectraAnalysis::dNdptName ( UInt_t  pdg)
inlinestatic

Name of spectrum histogram

Parameters
pdgParticle code
Returns
Name

Definition at line 158 of file spectraAnalysis.C.

Referenced by CreateSpectra(), and Scale().

Bool_t spectraAnalysis::ProcessHeader ( )
inlinevirtual

Process header. Implement to make event selection

Returns
true if event is accepted

Implements FastAnalysis.

Definition at line 122 of file spectraAnalysis.C.

virtual Bool_t spectraAnalysis::ProcessParticle ( const TParticle *  p)
inlinevirtual

Process a particle.

Parameters
pParticle to process

Implements FastAnalysis.

Definition at line 141 of file spectraAnalysis.C.

void spectraAnalysis::ProcessParticles ( )
inlinevirtual

Process all particles

Reimplemented from FastAnalysis.

Definition at line 127 of file spectraAnalysis.C.

Bool_t spectraAnalysis::Ratio ( TH1 r,
Int_t  bin,
UInt_t  pdg 
)
inline

Fill the mean and rms of a ratio into a histogram

Parameters
rHistogram to fill
binBin number
pdgParticle ID
Returns

Definition at line 209 of file spectraAnalysis.C.

Referenced by Terminate().

static const char* spectraAnalysis::RatioName ( UInt_t  pdg)
inlinestatic

Name of ratio histograms

Parameters
pdgParticle code
Returns
Name

Definition at line 174 of file spectraAnalysis.C.

Referenced by CreateRatio(), and Ratio().

Bool_t spectraAnalysis::Scale ( UInt_t  pdg)
inline

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

Parameters
pdgParticle number
Returns
true on succes

Definition at line 189 of file spectraAnalysis.C.

Referenced by Terminate().

virtual void spectraAnalysis::SlaveBegin ( TTree )
inlinevirtual

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

Definition at line 104 of file spectraAnalysis.C.

virtual void spectraAnalysis::Terminate ( )
inlinevirtual

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

Definition at line 226 of file spectraAnalysis.C.

Member Data Documentation

TH1* spectraAnalysis::fdNdptK

Definition at line 262 of file spectraAnalysis.C.

Referenced by ProcessParticle(), and SlaveBegin().

TH1* spectraAnalysis::fdNdptO

Definition at line 264 of file spectraAnalysis.C.

Referenced by ProcessParticle(), and SlaveBegin().

TH1* spectraAnalysis::fdNdptP

Definition at line 263 of file spectraAnalysis.C.

Referenced by ProcessParticle(), and SlaveBegin().

TH1* spectraAnalysis::fdNdptPi

Definition at line 261 of file spectraAnalysis.C.

Referenced by ProcessParticle(), and SlaveBegin().

TH1* spectraAnalysis::fK2piRatio

Definition at line 266 of file spectraAnalysis.C.

Referenced by ProcessParticles(), and SlaveBegin().

Long_t spectraAnalysis::fNK

Definition at line 257 of file spectraAnalysis.C.

Referenced by ProcessParticle(), and ProcessParticles().

Long_t spectraAnalysis::fNO

Definition at line 259 of file spectraAnalysis.C.

Referenced by ProcessParticle(), and ProcessParticles().

Long_t spectraAnalysis::fNP

Definition at line 258 of file spectraAnalysis.C.

Referenced by ProcessParticle(), and ProcessParticles().

Long_t spectraAnalysis::fNpi

Definition at line 256 of file spectraAnalysis.C.

Referenced by ProcessParticle(), and ProcessParticles().

TH1* spectraAnalysis::fO2piRatio

Definition at line 268 of file spectraAnalysis.C.

Referenced by ProcessParticles(), and SlaveBegin().

TH1* spectraAnalysis::fP2piRatio

Definition at line 267 of file spectraAnalysis.C.

Referenced by ProcessParticles(), and SlaveBegin().


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