AliPhysics  ad6828d (ad6828d)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 ()
 
 ClassDef (Cent, 1)
 
- 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)
 
 ClassDef (Base, 1)
 
- 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 ()
 
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
 
 ClassDef (FastAnalysis, 1)
 

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
 

Additional Inherited Members

- Static Public Member Functions inherited from dNdeta::Base
static TH1DCreatedNdeta ()
 
- 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 205 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 217 of file dNdetaAnalysis.C.

Member Function Documentation

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

Clear our internal caches

Reimplemented from FastAnalysis.

Definition at line 257 of file dNdetaAnalysis.C.

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

Interface for helper

Returns
Newly allocated histogram

Definition at line 230 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 343 of file dNdetaAnalysis.C.

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

Process the header. Accepts events in range

Returns
true

Implements FastAnalysis.

Definition at line 267 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 285 of file dNdetaAnalysis.C.

virtual Bool_t dNdeta::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 246 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 236 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 326 of file dNdetaAnalysis.C.

Member Data Documentation

Int_t dNdeta::Cent::fCentBin

Definition at line 209 of file dNdetaAnalysis.C.

Referenced by ProcessHeader(), and ProcessParticles().

const Long_t dNdeta::Cent::fMinEvents

Definition at line 208 of file dNdetaAnalysis.C.

Referenced by Terminate().


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