ROOT logo
AliRoot » EMCAL » AliEMCALPIDUtils

class AliEMCALPIDUtils: public TNamed

Function Members (Methods)

public:
AliEMCALPIDUtils()
AliEMCALPIDUtils(const AliEMCALPIDUtils&)
~AliEMCALPIDUtils()
voidTObject::AbstractMethod(const char* method) const
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTObject::Browse(TBrowser* b)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTNamed::Clear(Option_t* option = "")
virtual TObject*TNamed::Clone(const char* newname = "") const
virtual Int_tTNamed::Compare(const TObject* obj) const
voidComputePID(Double_t energy, Double_t lambda0)
virtual voidTNamed::Copy(TObject& named) const
virtual voidTObject::Delete(Option_t* option = "")MENU
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
Double_tDistEnergy(const Double_t energy, const Int_t nature)
TArrayDDistLambda0(const Double_t energy, const Int_t nature)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
virtual voidTObject::Dump() constMENU
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual voidTNamed::FillBuffer(char*& buffer)
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
virtual const char*TObject::GetIconName() const
virtual const char*TNamed::GetName() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
Double_tGetPID(Int_t idx) const
Double_tGetPIDFinal(Int_t idx) const
Double_tGetPIDWeight(Int_t idx) const
virtual const char*TNamed::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTNamed::Hash() const
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
voidInitParameters()
virtual voidTObject::Inspect() constMENU
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tTNamed::IsSortable() const
Bool_tTObject::IsZombie() const
virtual voidTNamed::ls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
virtual Bool_tTObject::Notify()
voidTObject::Obsolete(const char* method, const char* asOfVers, const char* removedFromVers) const
static voidTObject::operator delete(void* ptr)
static voidTObject::operator delete(void* ptr, void* vp)
static voidTObject::operator delete[](void* ptr)
static voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
AliEMCALPIDUtils&operator=(const AliEMCALPIDUtils&)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidTNamed::Print(Option_t* option = "") const
virtual Int_tTObject::Read(const char* name)
virtual voidTObject::RecursiveRemove(TObject* obj)
voidTObject::ResetBit(UInt_t f)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTObject::SavePrimitive(basic_ostream<char,char_traits<char> >& out, Option_t* option = "")
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
voidSetHighFluxParam()
voidSetLowFluxParam()
virtual voidTNamed::SetName(const char* name)MENU
virtual voidTNamed::SetNameTitle(const char* name, const char* title)
static voidTObject::SetObjectStat(Bool_t stat)
voidSetPID(Double_t val, Int_t idx)
voidSetPIDFinal(Double_t val, Int_t idx)
voidSetPIDWeight(Double_t val, Int_t idx)
voidSetPrintInfo(Bool_t yesno)
virtual voidTNamed::SetTitle(const char* title = "")MENU
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidShowMembers(TMemberInspector&)
virtual Int_tTNamed::Sizeof() const
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
virtual voidTObject::UseCurrentStyle()
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const
protected:
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
voidTObject::MakeZombie()
private:
Double_tPolynomial(const Double_t x, const Double_t* params) const
Double_tPolynomial0(const Double_t* params) const
Double_tPolynomialinv(const Double_t x, const Double_t* params) const
Double_tPolynomialMixed1(const Double_t x, const Double_t* params) const
Double_tPolynomialMixed2(const Double_t x, const Double_t* params) const
Double_tPowerExp(const Double_t x, const Double_t* params) const

Data Members

protected:
Double_tfGamma[6][6]Parameter to Compute PID for photons
Double_tfGamma1to10[6][6]Parameter to Compute PID not used
Double_tfGammaEnergyProb[6]Parameter to Compute PID for energy ponderation for gamma
Double_tfHadron[6][6]Parameter to Compute PID for hadrons, 1 to 10 GeV
Double_tfHadron1to10[6][6]Parameter to Compute PID for hadrons, 1 to 10 GeV
Double_tfHadronEnergyProb[6]Parameter to Compute PID for energy ponderation for hadrons
TStringTNamed::fNameobject identifier
Float_tfPID[3]
Float_tfPIDFinal[15]final PID format
Float_tfPIDWeight[3]order: gamma, pi0, hadrons,
Double_tfPiZero[6][6]Parameter to Compute PID for pi0
Double_tfPiZeroEnergyProb[6]Parameter to Compute PID for energy ponderation for Pi0
Bool_tfPrintInfoflag to decide if details about PID must be printed
Double_tfProbGammaprobility to be a Gamma
Double_tfProbHadronprobility to be a Hadron
Double_tfProbPiZeroprobility to be a PiO
TStringTNamed::fTitleobject title
Double_tfWeightGammaEnergyWeight for a Gamma to have a given energy (for the moment =1.)
Double_tfWeightHadronEnergyWeight for a a Hadron to have a given energy (parametr from a flat distrib from 0 to 100)
Double_tfWeightPiZeroEnergyWeight for a Pi0 Hadron to have a given energy (for the moment =1.)

Class Charts

Inheritance Chart:
TNamed
AliEMCALPIDUtils
AliEMCALPID

Function documentation

AliEMCALPIDUtils()
 Constructor.
 Initialize all constant values which have to be used
 during PID algorithm execution

void ComputePID(Double_t energy, Double_t lambda0)
 This is the main command, which uses the distributions computed and parametrised,
 and gives the PID by the bayesian method.

TArrayD DistLambda0(const Double_t energy, const Int_t nature)
 Compute the values of the parametrised distributions using the data initialised before.

Double_t DistEnergy(const Double_t energy, const Int_t nature)
 Compute the values of the weigh for a given energy the parametrised distribution using the data initialised before.

Double_t Polynomial(const Double_t x, const Double_t* params) const
 Compute a polynomial for a given value of 'x'
 with the array of parameters passed as the second arg

Double_t Polynomial0(const Double_t* params) const
 Compute a polynomial for a given value of 'x'
 with the array of parameters passed as the second arg

Double_t Polynomialinv(const Double_t x, const Double_t* params) const
 Compute a polynomial for a given value of 'x'
 with the array of parameters passed as the second arg

Double_t PolynomialMixed1(const Double_t x, const Double_t* params) const
 Compute a polynomial for a given value of 'x'
 with the array of parameters passed as the second arg

Double_t PolynomialMixed2(const Double_t x, const Double_t* params) const
 Compute a polynomial for a given value of 'x'
 with the array of parameters passed as the second arg

Double_t PowerExp(const Double_t x, const Double_t* params) const
 Compute a polynomial for a given value of 'x'
 with the array of parameters passed as the second arg
 par[0]*TMath::Power(x[0],par[1])
 par[0]*TMath::Exp((x[0]-par[1])*par[2]);
void InitParameters()
 Initialize PID parameters, depending on the use or not of the reconstructor
 and the kind of event type if the reconstructor is not used.
  fWeightHadronEnergy=0.;
  fWeightPiZeroEnergy=0.;
  fWeightGammaEnergy=0.;
void SetLowFluxParam()
void SetHighFluxParam()
AliEMCALPIDUtils()
AliEMCALPIDUtils(Bool_t reconstructor);
virtual ~AliEMCALPIDUtils() { }
Double_t GetPID(Int_t idx) const
{if (idx>=0&&idx<3) return fPID[idx]; else return 0.;}
Double_t GetPIDFinal(Int_t idx) const
{if (idx>=0&&idx<AliPID::kSPECIESCN) return fPIDFinal[idx]; else return 0.;}
Double_t GetPIDWeight(Int_t idx) const
{if (idx>=0&&idx<3) return fPIDWeight[idx]; else return 0.;}
void SetPID(Double_t val, Int_t idx)
{if (idx>=0&&idx<3) fPID[idx] = val;}
void SetPIDFinal(Double_t val, Int_t idx)
{if (idx>=0&&idx<AliPID::kSPECIESCN) fPIDFinal[idx] = val;}
void SetPIDWeight(Double_t val, Int_t idx)
{if (idx>=0&&idx<3) fPIDWeight[idx] = val;}
void SetPrintInfo(Bool_t yesno)
{fPrintInfo = yesno;}