AliPhysics  b752f14 (b752f14)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
dNdy::Cent Struct Reference
Inheritance diagram for dNdy::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 dNdy::Base
 Base (Bool_t verbose=false, Int_t monitor=0)
 
virtual Bool_t ProcessParticle (const TParticle *p)
 
virtual void Fill (Double_t y)
 
 ClassDef (Base, 1)
 
- 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
 
virtual void Print (Option_t *option="") 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)
 

Static Public Member Functions

static TH1Normalize (TObject *o, Int_t n)
 
- Static Public Member Functions inherited from dNdy::Base
static TH1DCreatedNdy ()
 
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 dNdy::Base
TH1fdNdy
 
- 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 240 of file dNdyAnalysis.C.

Constructor & Destructor Documentation

dNdy::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 252 of file dNdyAnalysis.C.

Member Function Documentation

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

Clear our internal caches

Reimplemented from FastAnalysis.

Definition at line 292 of file dNdyAnalysis.C.

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

Interface for helper

Returns
Newly allocated histogram

Definition at line 265 of file dNdyAnalysis.C.

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

Get the list of monitored objects

Returns
The list of monitored objects

Reimplemented from dNdy::Base.

Definition at line 485 of file dNdyAnalysis.C.

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

Definition at line 458 of file dNdyAnalysis.C.

Referenced by Terminate().

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

Process the header. Accepts events in range

Returns
true

Reimplemented from FastAnalysis.

Definition at line 302 of file dNdyAnalysis.C.

virtual void dNdy::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 320 of file dNdyAnalysis.C.

virtual Bool_t dNdy::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 281 of file dNdyAnalysis.C.

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

Called on each slave at start of processing

Parameters
tIgnored

Reimplemented from dNdy::Base.

Definition at line 271 of file dNdyAnalysis.C.

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

Definition at line 360 of file dNdyAnalysis.C.

Member Data Documentation

Int_t dNdy::Cent::fCentBin

Definition at line 244 of file dNdyAnalysis.C.

Referenced by ProcessHeader(), and ProcessParticles().

const Long_t dNdy::Cent::fMinEvents

Definition at line 243 of file dNdyAnalysis.C.

Referenced by Terminate().


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