ROOT logo
AliRoot » HLT » BASE » AliHLTScalars

class AliHLTScalars: public TObject

Function Members (Methods)

public:
Double_tAliHLTScalars()
Double_tAliHLTScalars(const AliHLTScalars& obj)
virtual~AliHLTScalars()
voidTObject::AbstractMethod(const char* method) const
virtual boolAdd(const char* name, const char* description = 0, Double_t value = 0)
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTObject::Browse(TBrowser* b)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidClear(Option_t* option = "")
virtual TObject*TObject::Clone(const char* newname = "") const
virtual Int_tTObject::Compare(const TObject* obj) const
virtual voidCopy(TObject& object) 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 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)
boolExists(const char* name) const
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual TObject*FindObject(const char* name) const
virtual 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*TObject::GetName() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
const AliHLTScalars::AliScalar&GetScalar(const char* name) const
AliHLTScalars::AliScalar&GetScalar(const char* name)
const AliHLTScalars::AliScalar&GetScalarN(UInt_t n) const
AliHLTScalars::AliScalar&GetScalarN(UInt_t n)
const TClonesArray*GetScalars() const
virtual const char*TObject::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTObject::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
virtual Bool_tIsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tTObject::IsSortable() const
Bool_tTObject::IsZombie() const
virtual voidTObject::ls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
virtual Bool_tTObject::Notify()
UInt_tNumberOfScalars() const
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)
booloperator!=(const AliHLTScalars& obj) const
AliHLTScalars&operator=(const AliHLTScalars& obj)
booloperator==(const AliHLTScalars& obj) const
const AliHLTScalars::AliScalar&operator[](UInt_t n) const
AliHLTScalars::AliScalar&operator[](UInt_t n)
const AliHLTScalars::AliScalar&operator[](const TString& name) const
AliHLTScalars::AliScalar&operator[](const TString& name)
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)
virtual boolRemove(const char* name)
virtual voidReset()
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)
static voidTObject::SetObjectStat(Bool_t stat)
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidShowMembers(TMemberInspector&)
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:
Double_tAliHLTScalars(const TClass* cl, Int_t initSize = 128)
boolAdd(AliHLTScalars::AliScalar*& scalar, const char* name, const char* description, Double_t value)
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
voidTObject::MakeZombie()
virtual AliHLTScalars::AliScalar*NewScalar(UInt_t i, const char* name, const char* description, Double_t value)
TObject*&ScalarForConstructor(UInt_t i)
AliHLTScalars::AliScalar*ScalarUncheckedAt(UInt_t i) const
virtual const AliHLTScalars::AliScalar&Sentinel() const

Data Members

private:
THashTablefMap! Hash table of pointers to the scalars for fast lookup.
TClonesArrayfScalarsList of scalar objects.

Class Charts

Inheritance Chart:
TObject
AliHLTScalars

Function documentation

AliHLTScalars()
 Default constructor.
AliHLTScalars(const AliHLTScalars& obj)
 Copy constructor performs a deep copy.
AliHLTScalars(const TClass* cl, Int_t initSize = 128)
 Constructor to be able to specify a custom class for the fScalars TClonesArray object.
~AliHLTScalars()
 Default destructor.
bool Add(AliHLTScalars::AliScalar*& scalar, const char* name, const char* description, Double_t value)
 Adds a new scalar (internal version).
bool Add(const char* name, const char* description = 0, Double_t value = 0)
 Adds a new scalar.
bool Remove(const char* name)
 Removes a scalar from the list.
void Reset()
 Sets all the scalar values to zero.
void Clear(Option_t* option = "")
 Clears the array of scalars.
void Copy(TObject& object) const
 Performs a deep copy.
void Print(Option_t* option = "") const
 Prints the HLT trigger scalars.
Bool_t IsEqual(const TObject* obj) const
 Checks if two sets of scalar lists have the same scalars.
const TClonesArray* GetScalars() const
 Needed by schema evolution
{ return &fScalars; }
bool Exists(const char* name) const
 Checks to see if the named scalar exists.
{ return fMap.FindObject(name) != NULL; }
const AliScalar& GetScalar(const char* name) const
	 * Fetches the specified scalar object.
	 * \param name  The name of the scalar object.
	 * \returns the found scalar object, otherwise an empty sentinel object with
	 *    zeros. One can tell it is a sentinel because the name will be empty.

AliScalar& GetScalar(const char* name)
	 * Fetches the specified scalar object for editing.
	 * \param name  The name of the scalar object.
	 * \returns the found scalar object. If the scalar does not already
	 *     exist then a new one is created and returned.

UInt_t NumberOfScalars() const
 Returns the number of scalar values.
{ return UInt_t(fScalars.GetEntriesFast()); }
const AliScalar& GetScalarN(UInt_t n) const
 Note: the following GetScalarN methods do not use the same name as
 GetScalar above because the parameter type would unfortunately be
 ambiguous to an ISO c++ compiler.

	 * Fetches the n'th scalar object.
	 * \param n  The number of the scalar object.
	 * \returns the found scalar object, otherwise an empty sentinel object with
	 *    zeros. One can tell it is a sentinel because the name will be empty.

AliScalar& GetScalarN(UInt_t n)
	 * Fetches the n'th scalar object for editing.
	 * \param n  The number of the scalar object.
	 * \returns the found scalar object. If the scalar does not already
	 *     exist then a new one is created and returned.

TObject* FindObject(const char* name) const
 Finds the scalar object by name.
return fMap. FindObject(name)
AliScalar* NewScalar(UInt_t i, const char* name, const char* description, Double_t value)
	 * This method creates a new scalar object in the fScalars TClonesArray.
	 * \param i  Location of the new object to construct in the TClonesArray.
	 * \param name  The name of the new scalar.
	 * \param description  The description of the new scalar.
	 * \param value  The value of the new scalar.
	 * \returns the pointer to the new object created.
	 * \note This method must be overridden by classes inheriting from this class if
	 *    the protected AliHLTScalars(const TClass*, Int_t) constructor is used to
	 *    change the class stored in the fScalars TClonesArray.
	 *    One should use the method ScalarForConstructor to get the location where
	 *    the new scalar object will be constructed.

TObject*& ScalarForConstructor(UInt_t i)
	 * Returns a pointer to the memory where a new scalar object should be constructed.
	 * \param i  The position of the new object.

{ return fScalars[Int_t(i)]; }
const AliScalar& Sentinel() const
	 * This method should return an empty sentinel object to mark that a scalar was
	 * not found in the list.
	 * \note This method must be overridden by classes inheriting from this class if
	 *    the protected AliHLTScalars(const TClass*, Int_t) constructor is used to
	 *    change the class stored in the fScalars TClonesArray.

AliScalar* ScalarUncheckedAt(UInt_t i) const
	 * Utility method for classes deriving from AliHLTScalars to fetch the i'th scalar
	 * from the TClonesArray without checking that the index is valid.
	 * \param i  The index number of the scalar to fetch.

{ return static_cast<AliScalar*>(fScalars.UncheckedAt(Int_t(i))); }