AliPhysics  59e0e03 (59e0e03)
dNdeta::Cent Struct Reference
Inheritance diagram for dNdeta::Cent:

Public Member Functions

 Cent (const char *method="V0M", Bool_t verbose=true, Int_t monitor=0)
 
virtual TH1CreateSingle ()
 
virtual void SlaveBegin (TTree *t)
 
virtual Bool_t SetupEstimator ()
 
virtual void Clear (Option_t *option="")
 
virtual Bool_t ProcessHeader ()
 
virtual void ProcessParticles ()
 
virtual void Terminate ()
 
virtual TListGetMonitorObjects ()
 
void Print (Option_t *option="") const
 
- Public Member Functions inherited from dNdeta::Base
 Base (Bool_t verbose=false, Int_t monitor=0)
 
virtual Bool_t ProcessParticle (const TParticle *p)
 
virtual void Fill (Double_t eta)
 
- 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
 

Static Public Member Functions

static TH1Normalize (TObject *o, Int_t n)
 
- Static Public Member Functions inherited from dNdeta::Base
static TH1DCreatedNdeta ()
 
static TObjectCreateOutput ()
 
- 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

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

Definition at line 244 of file dNdetaAnalysis.C.

Constructor & Destructor Documentation

dNdeta::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 256 of file dNdetaAnalysis.C.

Member Function Documentation

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

Clear our internal caches

Reimplemented from FastAnalysis.

Definition at line 302 of file dNdetaAnalysis.C.

virtual TH1* dNdeta::Cent::CreateSingle ( )
inlinevirtual

Interface for helper

Returns
Newly allocated histogram

Definition at line 270 of file dNdetaAnalysis.C.

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

Get the list of monitored objects

Returns
The list of monitored objects

Reimplemented from dNdeta::Base.

Definition at line 401 of file dNdetaAnalysis.C.

static TH1* dNdeta::Cent::Normalize ( TObject o,
Int_t  n 
)
inlinestatic

Definition at line 384 of file dNdetaAnalysis.C.

Referenced by Terminate().

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

Reimplemented from FastAnalysis.

Definition at line 415 of file dNdetaAnalysis.C.

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

Process the header. Accepts events in range

Returns
true

Reimplemented from FastAnalysis.

Definition at line 312 of file dNdetaAnalysis.C.

virtual void dNdeta::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 FastAnalysis.

Definition at line 331 of file dNdetaAnalysis.C.

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

Set-up centrality estimator

Returns
true on success

Reimplemented from FastAnalysis.

Definition at line 291 of file dNdetaAnalysis.C.

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

Called on each slave at start of processing

Parameters
tIgnored

Reimplemented from dNdeta::Base.

Definition at line 276 of file dNdetaAnalysis.C.

virtual void dNdeta::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 dNdeta::Base.

Definition at line 372 of file dNdetaAnalysis.C.

Member Data Documentation

Int_t dNdeta::Cent::fCentBin

Definition at line 248 of file dNdetaAnalysis.C.

FastCentHelper dNdeta::Cent::fHelper

Definition at line 246 of file dNdetaAnalysis.C.

const Long_t dNdeta::Cent::fMinEvents

Definition at line 247 of file dNdetaAnalysis.C.


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