ROOT logo
AliRoot » PWGLF » RESONANCES » AliRsnValue

class AliRsnValue: public AliRsnTarget


  This class contains all code which is used to compute any of the values
  which can be of interest within a resonance analysis. Besides the obvious
  invariant mass, it allows to compute other utility values on all possible
  targets, in order to allow a wide spectrum of binning and checks.
  When needed, this object can also define a binning in the variable which
  it is required to compute, which is used for initializing axes of output
  histograms (see AliRsnFunction).
  The value computation requires this object to be passed the object whose
  informations will be used. This object can be of any allowed input type
  (track, pair, event), then this class must inherit from AliRsnTarget.
  Then, when value computation is attempted, a check on target type is done
  and computation is successful only if expected target matches that of the
  passed object.
  In some cases, the value computation can require a support external object,
  which must then be passed to this class. It can be of any type inheriting
  from TObject.

  authors: A. Pulvirenti (alberto.pulvirenti@ct.infn.it)
           M. Vala (martin.vala@cern.ch)


Function Members (Methods)

public:
AliRsnValue(const AliRsnValue& copy)
AliRsnValue(const char* name = "", AliRsnTarget::ETargetType type = AliRsnTarget::kTargetTypes)
virtual~AliRsnValue()
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
virtual voidTNamed::Copy(TObject& named) const
virtual voidTObject::Delete(Option_t* option = "")MENU
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
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 Bool_tEval(TObject* object)
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
TArrayD&GetArray()
const Double_t*GetArrayValues() const
Double_tGetComputedValue() 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
AliRsnDaughter*AliRsnTarget::GetTargetDaughter()
AliRsnEvent*AliRsnTarget::GetTargetEvent()
AliRsnMother*AliRsnTarget::GetTargetMother()
AliRsnTarget::ETargetTypeAliRsnTarget::GetTargetType() const
Char_tAliRsnTarget::GetTargetTypeChar() const
const char*AliRsnTarget::GetTargetTypeName() 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
virtual voidTObject::Inspect() constMENU
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
Bool_tAliRsnTarget::IsAllNull() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tTNamed::IsSortable() const
Bool_tAliRsnTarget::IsTarget(AliRsnTarget::ETargetType targetType) 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)
AliRsnValue&operator=(const AliRsnValue& copy)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidPrint(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 = "")
voidSetBins(Int_t n, Double_t* array)
voidSetBins(Int_t n, Double_t min, Double_t max)
voidSetBins(Double_t min, Double_t max, Double_t step)
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)
virtual voidTNamed::SetName(const char* name)MENU
virtual voidTNamed::SetNameTitle(const char* name, const char* title)
static voidTObject::SetObjectStat(Bool_t stat)
voidAliRsnTarget::SetTargetType(AliRsnTarget::ETargetType type)
virtual voidTNamed::SetTitle(const char* title = "")MENU
virtual voidTObject::SetUniqueID(UInt_t uid)
voidSetUseMCInfo(Bool_t yn = kTRUE)
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_tAliRsnTarget::TargetOK(TObject* object)
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()

Data Members

protected:
TArrayDfBinArrayarray of bins (when used for a histogram axis)
Double_tfComputedValuecomputed value
AliRsnDaughter*AliRsnTarget::fDaughter! internal pointer to which any checked object is cast if it matches expected type
AliRsnEvent*AliRsnTarget::fEvent! internal pointer to which any checked object is cast if it matches expected type
AliRsnMother*AliRsnTarget::fMother! internal pointer to which any checked object is cast if it matches expected type
TStringTNamed::fNameobject identifier
AliRsnTarget::ETargetTypeAliRsnTarget::fTargetTypetarget type selected for this object
TStringTNamed::fTitleobject title
Bool_tfUseMCInfoflag to choose MC info when choice is possible

Class Charts

Inheritance Chart:
TNamed
AliRsnTarget
AliRsnValue
AliRsnValueDaughter
AliRsnValueEvent
AliRsnValuePair

Function documentation

AliRsnValue(const char* name = "", AliRsnTarget::ETargetType type = AliRsnTarget::kTargetTypes)
 Constructor.
 Initializes the binning to an empty array.

AliRsnValue(const AliRsnValue& copy)
 Copy constructor.
 Duplicates the binning array and copies all settings.

AliRsnValue & operator=(const AliRsnValue& copy)
 Assignment operator.
 Works like copy constructor.

void SetBins(Int_t n, Double_t min, Double_t max)
 Set binning for the axis in equally spaced bins
 where the number of bins, minimum and maximum are given.

void SetBins(Double_t min, Double_t max, Double_t step)
 Set binning for the axis in equally spaced bins
 where the bin size, minimum and maximum are given.

void SetBins(Int_t n, Double_t* array)
 Set binning for the axis in unequally spaced bins
 using the same way it is done in TAxis

Bool_t Eval(TObject* object)
 Evaluation of the required value.
 Checks that the passed object is of the right type
 and if this check is successful, computes the required value.
 The output of the function tells if computing was successful,
 and the values must be taken with GetValue().

void Print(Option_t* option = "") const
 Print informations about this object.
 If one specifies option "BINS" all bin limits are also printed.

virtual ~AliRsnValue()
{ }
TArrayD & GetArray()
{return fBinArray;}
const Double_t * GetArrayValues() const
{return fBinArray.GetArray();}
Double_t GetComputedValue() const
{return fComputedValue;}
void SetUseMCInfo(Bool_t yn = kTRUE)
{fUseMCInfo = yn;}