AliPhysics  a8afd6c (a8afd6c)
spectra::Cent Struct Reference
Inheritance diagram for spectra::Cent:

Public Member Functions

 Cent (const char *method="V0M", Bool_t verbose=true, Int_t monitor=0)
 
virtual void SlaveBegin (TTree *t)
 
virtual Bool_t SetupEstimator ()
 
virtual void Clear (Option_t *option="")
 
virtual Bool_t ProcessHeader ()
 
virtual void FillOut (TList *out)
 
virtual void ProcessParticles ()
 
virtual void SetAttr (TH1 *h, const char *title, Color_t col, Style_t sty)
 
virtual void Terminate ()
 
virtual TListGetMonitorObjects ()
 
void Print (Option_t *option="") const
 
- Public Member Functions inherited from spectra::Base
 Base (Bool_t verbose=false, Int_t monitor=0)
 
virtual Bool_t ProcessParticle (const TParticle *p)
 
- 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 ()
 
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 Bool_t AcceptSecondaries () const
 
virtual Bool_t AcceptNeutrals () const
 

Public Attributes

FastCentHelper fHelper
 
const Long_t fMinEvents
 
Int_t fCentBin
 
- Public Attributes inherited from spectra::Base
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
 

Additional Inherited Members

- Public Types inherited from spectra::Base
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
}
 
- Static Public Member Functions inherited from spectra::Base
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")
 

Detailed Description

Definition at line 509 of file spectraAnalysis.C.

Constructor & Destructor Documentation

spectra::Cent::Cent ( const char *  method = "V0M",
Bool_t  verbose = true,
Int_t  monitor = 0 
)
inline

Constructor

Parameters
methodCentrality method
verboseVerbosity flag
monitorFrequency

Definition at line 521 of file spectraAnalysis.C.

Member Function Documentation

virtual void spectra::Cent::Clear ( Option_t option = "")
inlinevirtual

Clear our internal caches

Reimplemented from FastAnalysis.

Definition at line 553 of file spectraAnalysis.C.

virtual void spectra::Cent::FillOut ( TList out)
inlinevirtual

Definition at line 584 of file spectraAnalysis.C.

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

Get the list of monitored objects

Returns
The list of monitored objects

Reimplemented from spectra::Base.

Definition at line 809 of file spectraAnalysis.C.

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

Reimplemented from spectra::Base.

Definition at line 825 of file spectraAnalysis.C.

virtual Bool_t spectra::Cent::ProcessHeader ( )
inlinevirtual

Process the header. Accepts events in range

Returns
true

Reimplemented from spectra::Base.

Definition at line 573 of file spectraAnalysis.C.

virtual void spectra::Cent::ProcessParticles ( )
inlinevirtual

Process a single event.

First we fill the internal cache using the base class methods. Then we find the histogram for this particular reference multiplicity and add our event cache to that bin. The number of events in each bin is counted in the unique ID of each bin.

Reimplemented from spectra::Base.

Definition at line 606 of file spectraAnalysis.C.

virtual void spectra::Cent::SetAttr ( TH1 h,
const char *  title,
Color_t  col,
Style_t  sty 
)
inlinevirtual

Definition at line 622 of file spectraAnalysis.C.

virtual Bool_t spectra::Cent::SetupEstimator ( )
inlinevirtual

Set-up the estimator is one is chosen. We get a pointer to the current file, and retrieve the relevant histogram from that.

Returns
true on success, false otherwise

Reimplemented from FastAnalysis.

Definition at line 542 of file spectraAnalysis.C.

virtual void spectra::Cent::SlaveBegin ( TTree t)
inlinevirtual

Called on each slave at start of processing

Parameters
tIgnored

Reimplemented from spectra::Base.

Definition at line 535 of file spectraAnalysis.C.

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

Final processing.

Normalize each bin to the number of events in each bin (stored in the unique ID of that bin).

Reimplemented from spectra::Base.

Definition at line 640 of file spectraAnalysis.C.

Member Data Documentation

Int_t spectra::Cent::fCentBin

Definition at line 513 of file spectraAnalysis.C.

FastCentHelper spectra::Cent::fHelper

Definition at line 511 of file spectraAnalysis.C.

const Long_t spectra::Cent::fMinEvents

Definition at line 512 of file spectraAnalysis.C.


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