class HDstUtilities: public TObject

_HADES_CLASS_DESCRIPTION


  Utility Functions for DST Productions

  Actually this class serves as a namespace for some functions which might
  be helpful for writting a program and/or marco which does a DST production
  from any kind of data.


Function Members (Methods)

public:
HDstUtilities(const HDstUtilities&)
virtual~HDstUtilities()
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 voidTObject::Clear(Option_t* = "")
virtual TObject*TObject::Clone(const char* newname = "") const
virtual Int_tTObject::Compare(const TObject* obj) const
virtual voidTObject::Copy(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)
static Char_t*extractArg(Int_t* argc, Char_t*** argv, const Char_t* arg)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
static voidfreeCmdLineArgs(Int_t argc, Char_t** argv)
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
static TStringGetFileStem(const TString& dir, const TString& file)
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
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_tTObject::IsEqual(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()
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)
HDstUtilities&operator=(const HDstUtilities&)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidTObject::Print(Option_t* option = "") const
virtual Int_tTObject::Read(const char* name)
static Bool_treadCmdLineArgsFromFile(const Char_t* filename, Int_t* argc, Char_t*** argv)
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)
static voidTObject::SetObjectStat(Bool_t stat)
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
static voidstr2CmdLineArgs(const Char_t* input, Int_t* argc, Char_t*** argv)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& 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:
HDstUtilities()

Data Members

public:
enum TObject::EStatusBits { kCanDelete
kMustCleanup
kObjInCanvas
kIsReferenced
kHasUUID
kCannotPick
kNoContextMenu
kInvalidObject
};
enum TObject::[unnamed] { kIsOnHeap
kNotDeleted
kZombie
kBitMask
kSingleKey
kOverwrite
kWriteDelete
};
private:
static const Int_tMAX_LINE_LENGTH

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

Bool_t readCmdLineArgsFromFile(const Char_t* filename, Int_t* argc, Char_t*** argv)
 This function parses a text file and save the "key = value" pairs
 found on the lines of that file in a structure which looks exactly
 like the one filled with the command line arguments of a program.
 A file might look like that:


 #
 #  Example config file
 #


 # a comment
    # another comment

 family-name = lang
 name=simon
 institute = GSI  # in Darmstadt

 telephone  = 06519 / 71-2914
    fax= "06159 / 71-2989"
 --email = 's.lang@gsi.de'

 The corresponding command line would look like this,
 filename --family-name=lang --name=simon --telephone="06159 / 71-2914"...
 which is what the getopt_long() function expects. Here, "filename"
 is the name of the test file being evaluated.
 The function fills argc and argv with the data and returns true on
 success. It is written in plain C (except the return type),
 because it's lazy author wants to use it in other C programs as well.
void str2CmdLineArgs(const Char_t* input, Int_t* argc, Char_t*** argv)
 This function converts a string which looks like a command line
 into the related array of arguments as it is usually passed to the
 main() function of a program. Results are stored in argc and argv.
 The first string (usually the name of the executable) is set to
 "from-string" here.
 Use (double-) quotes to protect arguments containing white spaces
 from being cut.
 This function is written in plain C because it's lazy author wants to
 use it in other C programs as well.
void freeCmdLineArgs(Int_t argc, Char_t** argv)
 This functions frees the memory used by a command line argument structure
Char_t* extractArg(Int_t* argc, Char_t*** argv, const Char_t* arg)
 This function parses a list of command line arguments (saved in
 the structure referenced by 'argc' and 'argv'), creates a new list
 without the argument specified by 'arg' and returns this argument's
 name or its value (then one must append a ':' to its name).
 The memory of the returned string must be deleted by the caller of this
 function. The references 'argc' and 'argv' are changed to the location
 of the new list, the old one is not changed.
TString GetFileStem(const TString& dir, const TString& file)
 This function return "dir/file" without the filename extension of 'file'.
 "file" can be a list of space separated filenames (including paths),
 then the first one is taken. Paths are stripped from 'file', anyway. If
 'dir' is a null string, then just the stem of 'file' is returned.
HDstUtilities()
{}
~HDstUtilities()
{}

Last change: Sat May 22 12:55:00 2010
Last generated: 2010-05-22 12:55

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.