class THaRunBase: public TNamed


 Base class of a description of a run.

Function Members (Methods)

    This is an abstract class, constructors will not be documented.
    Look at the header to check for available constructors.

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 voidClear(Option_t* opt = "")
virtual voidClearDate()
virtual TObject*TNamed::Clone(const char* newname = "") const
virtual Int_tClose()
virtual Int_tCompare(const TObject* obj) const
virtual voidTNamed::Copy(TObject& named) const
Bool_tDBRead() 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)
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
const TDatime&GetDate() const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
virtual const Int_t*GetEvBuffer() const
UInt_tGetFirstEvent() const
virtual const char*TObject::GetIconName() const
UInt_tGetLastEvent() const
virtual const char*TNamed::GetName() const
UInt_tGetNumAnalyzed() const
Int_tGetNumber() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
THaRunParameters*GetParameters() const
virtual const char*TNamed::GetTitle() const
Int_tGetType() const
virtual UInt_tTObject::GetUniqueID() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTNamed::Hash() const
virtual Bool_tHasInfo(UInt_t bits) const
virtual Bool_tHasInfoRead(UInt_t bits) const
voidIncrNumAnalyzed(Int_t n = 1)
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 Int_tInit()
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_tIsInit() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tIsOpen() 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()
virtual Int_tOpen()
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)
virtual booloperator!=(const THaRunBase&) const
virtual booloperator<(const THaRunBase&) const
virtual booloperator<=(const THaRunBase&) const
virtual THaRunBase&operator=(const THaRunBase& rhs)
virtual booloperator==(const THaRunBase&) const
virtual booloperator>(const THaRunBase&) const
virtual booloperator>=(const THaRunBase&) const
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidPrint(Option_t* opt = "") const
virtual Int_tTObject::Read(const char* name)
virtual Int_tReadEvent()
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 voidSetDate(const TDatime& date)
voidSetDate(UInt_t tloc)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
voidSetEventRange(UInt_t first, UInt_t last)
voidSetFirstEvent(UInt_t n)
voidSetLastEvent(UInt_t n)
virtual voidTNamed::SetName(const char* name)MENU
virtual voidTNamed::SetNameTitle(const char* name, const char* title)
virtual voidSetNumber(Int_t number)
static voidTObject::SetObjectStat(Bool_t stat)
virtual voidTNamed::SetTitle(const char* title = "")MENU
virtual voidSetType(Int_t type)
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual Int_tTNamed::Sizeof() const
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 Int_tUpdate(const THaEvData* evdata)
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
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
virtual Int_tReadDatabase()
virtual Int_tReadInitInfo()

Data Members

enum EInfoType { kDate
enum TObject::EStatusBits { kCanDelete
enum TObject::[unnamed] { kIsOnHeap
Bool_tfAssumeDateTrue if run date explicitly set
Bool_tfDBReadTrue if database successfully read.
UInt_tfDataReadFlags for info found in data (see EInfoType)
UInt_tfDataRequiredInfo required for Init() to succeed
UInt_tfDataSetFlags for info that is valid (see EInfotype)
TDatimefDateRun date and time
UInt_tfEvtRange[2]Event range to analyze
Bool_tfIsInitTrue if run successfully initialized
TStringTNamed::fNameobject identifier
UInt_tfNumAnalyzedNumber of physics events actually analyzed
Int_tfNumberRun number
Bool_tfOpenedTrue if opened successfully
THaRunParameters*fParamRun parameters
TStringTNamed::fTitleobject title
Int_tfTypeRun type/mode/etc.

Class Charts

Inheritance Chart:

Function documentation

THaRunBase& operator=(const THaRunBase& rhs)
 Assignment operator. NB: this operator is virtual and is expected
 to be extended by derived classes.
Int_t Update(const THaEvData* evdata)
 Inspect decoded event data 'evdata' for run parameter data (e.g. prescale
 factors) and, if any found, extract the parameters and store them here.
bool operator==(const THaRunBase& ) const
bool operator!=(const THaRunBase& ) const
bool operator<(const THaRunBase& ) const
bool operator>(const THaRunBase& ) const
bool operator<=(const THaRunBase& ) const
bool operator>=(const THaRunBase& ) const
void Clear(Option_t* opt = "")
 Reset the run object as if freshly constructed.
 However, when opt=="INIT", keep an explicitly set event range and run date
void ClearDate()
 Reset the run date to "undefined"
void ClearEventRange()
 Reset the range of events to analyze
Int_t Compare(const TObject* obj) const
 Compare two THaRunBase objects via run numbers. Returns 0 when equal,
 -1 when 'this' is smaller and +1 when bigger (like strcmp).
Bool_t HasInfo(UInt_t bits) const
 Test if all the bits set in 'bits' are also set in fDataSet.
 'bits' should consist of the bits defined in EInfoType.
Bool_t HasInfoRead(UInt_t bits) const
 Test if all the bits set in 'bits' are also set in fDataRead.
 'bits' should consist of the bits defined in EInfoType.
Int_t Init()
 Initialize the run. This reads the run database, checks
 whether the data source can be opened, and if so, initializes the
 run parameters (run number, time, etc.)
Bool_t IsOpen()
void Print(Option_t* opt = "") const
 Print definition of run
Int_t ReadDatabase()
 Query the run database for the parameters of this run. The actual
 work is done in the THaRunParameters object. Usually, the beam and target
 parameters are read.  Internal function called by Init().

 Return 0 if success.
Int_t ReadInitInfo()
 Read initial information from the run data source.
 Internal function called by Init(). The default version checks
 if run date set and prints an error if not.
void SetDate( const TDatime& date )
 Set the timestamp of this run to 'date'.
void SetDate( UInt_t tloc )
 Set timestamp of this run to 'tloc' which is in Unix time
 format (number of seconds since 01 Jan 1970).
void SetEventRange(UInt_t first, UInt_t last)
 Set range of event numbers to analyze. The interpretation of
 the event range depends on the analyzer. Usually, it refers
 to the range of physics event numbers.
void SetFirstEvent(UInt_t n)
 Set number of first event to analyze
void SetLastEvent(UInt_t n)
 Set number of last event to analyze
void SetNumber(Int_t number)
 Change/set the number of the Run.
void SetType(Int_t type)
 Set run type
const Int_t* GetEvBuffer()
 Main functions
Int_t Open()
Int_t ReadEvent()
Int_t Close()
Bool_t DBRead()
{ return fDBRead; }
void IncrNumAnalyzed(Int_t n = 1)
{ fNumAnalyzed += n; }
const TDatime& GetDate()
{ return fDate; }
UInt_t GetNumAnalyzed()
{ return fNumAnalyzed; }
Int_t GetNumber()
{ return fNumber; }
Int_t GetType()
{ return fType; }
UInt_t GetFirstEvent()
{ return fEvtRange[0]; }
UInt_t GetLastEvent()
{ return fEvtRange[1]; }
THaRunParameters* GetParameters()
{ return fParam; }
Bool_t IsInit()
{ return fIsInit; }

Last change: Sat Nov 7 21:26:50 2009
Last generated: 2009-11-07 21:26

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.