KaliVeda  1.13/01
Heavy-Ion Analysis Toolkit
List of all members | Public Member Functions | Protected Attributes | Private Attributes | List of all members
KVDBRun Class Reference

Description of an experimental run in database ,.

Definition at line 35 of file KVDBRun.h.

Public Member Functions

 KVDBRun ()
 default ctor More...
 
 KVDBRun (Int_t number, const Char_t *title)
 ctor for a given run number More...
 
virtual ~ KVDBRun ()
 
void BlockSignals (Bool_t yes=kTRUE)
 
Double_t Get (const Char_t *param) const
 Get numerical (non-scaler) characteristic of run. More...
 
const Char_tGetComments () const
 
const Char_tGetDate () const
 
const TDatimeGetDatime () const
 
const Char_tGetDatimeString ()
 
const Char_tGetEndDate () const
 
ULong64_t GetEvents () const
 
const Char_tGetKVVersion () const
 
virtual Int_t GetScaler (const Char_t *name) const
 Get value of scaler with the given name for this run. More...
 
virtual ULong64_t GetScaler64 (const Char_t *name) const
 Get value of 64-bit scaler with the given name for this run. More...
 
Double_t GetSize () const
 
const Char_tGetStartDate () const
 
const Char_tGetString (const Char_t *param) const
 Get characteristic of run. More...
 
KVDBSystemGetSystem () const
 
const Char_tGetSystemName () const
 
KVTargetGetTarget () const
 Return target used for this run (actually target of KVDBSystem associated to run) More...
 
Double_t GetTime () const
 
Int_t GetTrigger () const
 
const Char_tGetTriggerString () const
 
const Char_tGetUserName () const
 
Bool_t Has (const Char_t *param, Bool_t check_whitespace=kTRUE) const
 
void Modified ()
 
virtual void Print (Option_t *option="") const
 
virtual void ReadRunListLine (const KVString &)
 
void Set (const Char_t *param, const KVString &val)
 Set characteristic of run. More...
 
void Set (const Char_t *param, Double_t val)
 Set numerical (non-scaler) characteristic of run. More...
 
void SetComments (const KVString &comments)
 
void SetDate (const KVString &d)
 
void SetDatime (TDatime &dat)
 
void SetEndDate (const KVString &d)
 
void SetEvents (ULong64_t evt_number)
 
void SetKVVersion (const Char_t *V)
 
void SetNumber (Int_t n)
 
virtual void SetScaler (const Char_t *name, Int_t val)
 Set value for the scaler with the given name for this run. More...
 
virtual void SetScaler64 (const Char_t *name, ULong64_t val)
 Set value for 64-bit scaler with the given name for this run. More...
 
void SetSize (Double_t s)
 
void SetStartDate (const KVString &date)
 
virtual void SetSystem (KVDBSystem *system)
 Set system for run. Any previous system is unassociated (run will be removed from system's list) More...
 
void SetTime (Double_t time)
 
void SetTrigger (Int_t trig)
 
void SetUserName (const Char_t *U)
 
virtual void UnsetSystem ()
 
virtual void WriteRunListHeader (std::ostream &, Char_t delim='|') const
 Write the version flag. More...
 
virtual void WriteRunListLine (std::ostream &, Char_t delim='|') const
 
- Public Member Functions inherited from KVDBRecord
 KVDBRecord ()
 
 KVDBRecord (const Char_t *name, const Char_t *title="")
 
virtual ~ KVDBRecord ()
 
virtual KVDBKeyAddKey (const Char_t *name, const Char_t *title, Bool_t check=kTRUE)
 
virtual Bool_t AddKey (KVDBKey *key, Bool_t check=kTRUE)
 
virtual Bool_t AddLink (const Char_t *key_name, KVDBRecord *rec, Bool_t linkback=kTRUE)
 
virtual Int_t Compare (const TObject *obj) const
 
virtual KVDBKeyGetKey (const Char_t *key) const
 
virtual TListGetKeys () const
 
virtual KVDBRecordGetLink (const Char_t *key, const Char_t *link) const
 Returns the record named "link" in the table named "key". More...
 
virtual KVRListGetLinks (const Char_t *key) const
 Returns the list of records linked to this record in table "key". More...
 
virtual Int_t GetNumber () const
 
virtual KVDBTableGetTable () const
 
virtual void ls (Option_t *option="*") const
 
virtual void RemoveAllLinks (const Char_t *key)
 Remove all links between this record and the records in the DB table"key_name". More...
 
virtual void RemoveLink (const Char_t *key_name, KVDBRecord *rec, Bool_t linkback=kTRUE)
 Remove the link between this record and the record "rec" in the DB table"key_name". More...
 
virtual void SetTable (const KVDBTable *table)
 
- Public Member Functions inherited from TFolder
 TFolder ()
 
 TFolder (const char *name, const char *title)
 
virtual ~TFolder ()
 
virtual void Add (TObject *obj)
 
TFolderAddFolder (const char *name, const char *title, TCollection *collection=0)
 
virtual void Browse (TBrowser *b)
 
virtual void Clear (Option_t *option="")
 
virtual void Copy (TObject &) const
 
virtual const char * FindFullPathName (const char *name) const
 
virtual const char * FindFullPathName (const TObject *obj) const
 
virtual TObjectFindObject (const char *name) const
 
virtual TObjectFindObject (const TObject *obj) const
 
virtual TObjectFindObjectAny (const char *name) const
 
TCollectionGetListOfFolders () const
 
Bool_t IsFolder () const
 
Bool_t IsOwner () const
 
virtual Int_t Occurence (const TObject *obj) const
 
virtual void RecursiveRemove (TObject *obj)
 
virtual void Remove (TObject *obj)
 
virtual void SaveAs (const char *filename="", Option_t *option="") const
 
virtual void SetOwner (Bool_t owner=kTRUE)
 
- Public Member Functions inherited from TNamed
 TNamed ()
 
 TNamed (const char *name, const char *title)
 
 TNamed (const TNamed &named)
 
 TNamed (const TString &name, const TString &title)
 
virtual ~TNamed ()
 
virtual TObjectClone (const char *newname="") const
 
virtual void FillBuffer (char *&buffer)
 
virtual const char * GetName () const
 
virtual const char * GetTitle () const
 
virtual ULong_t Hash () const
 
virtual Bool_t IsSortable () const
 
TNamedoperator= (const TNamed &rhs)
 
virtual void SetName (const char *name)
 
virtual void SetNameTitle (const char *name, const char *title)
 
virtual void SetTitle (const char *title="")
 
virtual Int_t Sizeof () const
 
- Public Member Functions inherited from TObject
 TObject ()
 
 TObject (const TObject &object)
 
virtual ~TObject ()
 
void AbstractMethod (const char *method) const
 
virtual void AppendPad (Option_t *option="")
 
ULong_t CheckedHash ()
 
virtual const char * ClassName () const
 
virtual void Delete (Option_t *option="")
 
virtual Int_t DistancetoPrimitive (Int_t px, Int_t py)
 
virtual void Draw (Option_t *option="")
 
virtual void DrawClass () const
 
virtual TObjectDrawClone (Option_t *option="") const
 
virtual void Dump () const
 
virtual void Error (const char *method, const char *msgfmt,...) const
 
virtual void Execute (const char *method, const char *params, Int_t *error=0)
 
virtual void Execute (TMethod *method, TObjArray *params, Int_t *error=0)
 
virtual void ExecuteEvent (Int_t event, Int_t px, Int_t py)
 
virtual void Fatal (const char *method, const char *msgfmt,...) const
 
virtual Option_tGetDrawOption () const
 
virtual const char * GetIconName () const
 
virtual char * GetObjectInfo (Int_t px, Int_t py) const
 
virtual Option_tGetOption () const
 
virtual UInt_t GetUniqueID () const
 
virtual Bool_t HandleTimer (TTimer *timer)
 
Bool_t HasInconsistentHash () const
 
virtual void Info (const char *method, const char *msgfmt,...) const
 
virtual Bool_t InheritsFrom (const char *classname) const
 
virtual Bool_t InheritsFrom (const TClass *cl) const
 
virtual void Inspect () const
 
void InvertBit (UInt_t f)
 
virtual Bool_t IsEqual (const TObject *obj) const
 
R__ALWAYS_INLINE Bool_t IsOnHeap () const
 
R__ALWAYS_INLINE Bool_t IsZombie () const
 
void MayNotUse (const char *method) const
 
virtual Bool_t Notify ()
 
void Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const
 
void operator delete (void *ptr)
 
void operator delete[] (void *ptr)
 
voidoperator new (size_t sz)
 
voidoperator new (size_t sz, void *vp)
 
voidoperator new[] (size_t sz)
 
voidoperator new[] (size_t sz, void *vp)
 
TObjectoperator= (const TObject &rhs)
 
virtual void Paint (Option_t *option="")
 
virtual void Pop ()
 
virtual Int_t Read (const char *name)
 
void ResetBit (UInt_t f)
 
virtual void SavePrimitive (std::ostream &out, Option_t *option="")
 
void SetBit (UInt_t f)
 
void SetBit (UInt_t f, Bool_t set)
 
virtual void SetDrawOption (Option_t *option="")
 
virtual void SetUniqueID (UInt_t uid)
 
virtual void SysError (const char *method, const char *msgfmt,...) const
 
R__ALWAYS_INLINE Bool_t TestBit (UInt_t f) const
 
Int_t TestBits (UInt_t f) const
 
virtual void UseCurrentStyle ()
 
virtual void Warning (const char *method, const char *msgfmt,...) const
 
virtual Int_t Write (const char *name=0, Int_t option=0, Int_t bufsize=0)
 
virtual Int_t Write (const char *name=0, Int_t option=0, Int_t bufsize=0) const
 

Protected Attributes

TDatime fDatime
 set dynamically with date&time of ROOT file corresponding to run More...
 
TString fKVVersion
 set dynamically with KaliVeda version used to generate ROOT file corresponding to run More...
 
KVNameValueList fParameters
 list of named parameters for run More...
 
TString fUserName
 set dynamically with name of user who generated ROOT file corresponding to run More...
 
- Protected Attributes inherited from KVDBRecord
TString fFullPathTable
 full path to parent table in folder structure More...
 
Int_t fNumber
 number which can be used to identify/sort record More...
 
- Protected Attributes inherited from TFolder
TCollectionfFolders
 
Bool_t fIsOwner
 
- Protected Attributes inherited from TNamed
TString fName
 
TString fTitle
 
- Protected Attributes inherited from TObject
 kOnlyPrepStep
 

Private Attributes

Bool_t fBlockSignals
 

Additional Inherited Members

- Public Types inherited from TObject
enum  EDeprecatedStatusBits
 
enum  EStatusBits
 
- Static Public Member Functions inherited from TObject
static Longptr_t GetDtorOnly ()
 
static Bool_t GetObjectStat ()
 
static void SetDtorOnly (void *obj)
 
static void SetObjectStat (Bool_t stat)
 
- Public Attributes inherited from TObject
 kBitMask
 
 kCanDelete
 
 kCannotPick
 
 kHasUUID
 
 kInconsistent
 
 kInvalidObject
 
 kIsOnHeap
 
 kIsReferenced
 
 kMustCleanup
 
 kNoContextMenu
 
 kNotDeleted
 
 kObjInCanvas
 
 kOverwrite
 
 kSingleKey
 
 kWriteDelete
 
 kZombie
 
- Protected Member Functions inherited from TObject
virtual void DoError (int level, const char *location, const char *fmt, va_list va) const
 
void MakeZombie ()
 

#include <KVDBRun.h>

Inheritance diagram for KVDBRun:
Inheritance graph
[legend]

Constructor & Destructor Documentation

◆ KVDBRun() [1/2]

KVDBRun::KVDBRun ( )

default ctor

Definition at line 33 of file KVDBRun.cpp.

◆ KVDBRun() [2/2]

KVDBRun::KVDBRun ( Int_t  number,
const Char_t title 
)

ctor for a given run number

Definition at line 44 of file KVDBRun.cpp.

◆ ~ KVDBRun()

virtual KVDBRun::~ KVDBRun ( )
virtual

Member Function Documentation

◆ BlockSignals()

void KVDBRun::BlockSignals ( Bool_t  yes = kTRUE)
inline

if yes=kTRUE, block 'Modified()' signal if yes=kFALSE, allow 'Modified()' signal

Definition at line 71 of file KVDBRun.h.

◆ Get()

Double_t KVDBRun::Get ( const Char_t param) const
inline

Get numerical (non-scaler) characteristic of run.

Definition at line 236 of file KVDBRun.h.

◆ GetComments()

const Char_t* KVDBRun::GetComments ( ) const
inline

Definition at line 146 of file KVDBRun.h.

◆ GetDate()

const Char_t* KVDBRun::GetDate ( ) const
inline

Definition at line 154 of file KVDBRun.h.

◆ GetDatime()

const TDatime& KVDBRun::GetDatime ( ) const
inline

Definition at line 113 of file KVDBRun.h.

◆ GetDatimeString()

const Char_t* KVDBRun::GetDatimeString ( )
inline

Definition at line 117 of file KVDBRun.h.

◆ GetEndDate()

const Char_t* KVDBRun::GetEndDate ( ) const
inline

Definition at line 158 of file KVDBRun.h.

◆ GetEvents()

ULong64_t KVDBRun::GetEvents ( ) const
inline

Definition at line 133 of file KVDBRun.h.

◆ GetKVVersion()

const Char_t* KVDBRun::GetKVVersion ( ) const
inline

Definition at line 53 of file KVDBRun.h.

◆ GetScaler()

virtual Int_t KVDBRun::GetScaler ( const Char_t name) const
inlinevirtual

Get value of scaler with the given name for this run.

Definition at line 214 of file KVDBRun.h.

◆ GetScaler64()

virtual ULong64_t KVDBRun::GetScaler64 ( const Char_t name) const
inlinevirtual

Get value of 64-bit scaler with the given name for this run.

Definition at line 225 of file KVDBRun.h.

◆ GetSize()

Double_t KVDBRun::GetSize ( ) const
inline

Definition at line 141 of file KVDBRun.h.

◆ GetStartDate()

const Char_t* KVDBRun::GetStartDate ( ) const
inline

Definition at line 150 of file KVDBRun.h.

◆ GetString()

const Char_t* KVDBRun::GetString ( const Char_t param) const
inline

Get characteristic of run.

Definition at line 247 of file KVDBRun.h.

◆ GetSystem()

KVDBSystem * KVDBRun::GetSystem ( ) const

Definition at line 242 of file KVDBRun.cpp.

◆ GetSystemName()

const Char_t* KVDBRun::GetSystemName ( ) const
inline

Definition at line 128 of file KVDBRun.h.

◆ GetTarget()

KVTarget* KVDBRun::GetTarget ( ) const
inline

Return target used for this run (actually target of KVDBSystem associated to run)

Definition at line 164 of file KVDBRun.h.

◆ GetTime()

Double_t KVDBRun::GetTime ( ) const
inline

Definition at line 137 of file KVDBRun.h.

◆ GetTrigger()

Int_t KVDBRun::GetTrigger ( ) const
inline

Definition at line 103 of file KVDBRun.h.

◆ GetTriggerString()

const Char_t* KVDBRun::GetTriggerString ( ) const
inline

Definition at line 107 of file KVDBRun.h.

◆ GetUserName()

const Char_t* KVDBRun::GetUserName ( ) const
inline

Definition at line 61 of file KVDBRun.h.

◆ Has()

Bool_t KVDBRun::Has ( const Char_t param,
Bool_t  check_whitespace = kTRUE 
) const
inline

Returns kTRUE if a parameter with the given name (either integer, floating point or string) has been set. For string parameters, if the parameter exists we also check if the string is empty (unless check_whitespace=kFALSE)

Definition at line 80 of file KVDBRun.h.

◆ Modified()

void KVDBRun::Modified ( )
inline

Signal sent out when run properties change (used by GUI)

Definition at line 66 of file KVDBRun.h.

◆ Print()

void KVDBRun::Print ( Option_t option = "") const
virtual

Reimplemented from KVDBRecord.

Definition at line 69 of file KVDBRun.cpp.

◆ ReadRunListLine()

void KVDBRun::ReadRunListLine ( const KVString line)
virtual

Set run characteristics by reading informations in 'line' (assumed to have been written by WriteRunListLine). Break line into fields using delimiter '|'

Definition at line 143 of file KVDBRun.cpp.

◆ Set() [1/2]

void KVDBRun::Set ( const Char_t param,
const KVString val 
)
inline

Set characteristic of run.

Definition at line 241 of file KVDBRun.h.

◆ Set() [2/2]

void KVDBRun::Set ( const Char_t param,
Double_t  val 
)
inline

Set numerical (non-scaler) characteristic of run.

Definition at line 230 of file KVDBRun.h.

◆ SetComments()

void KVDBRun::SetComments ( const KVString comments)
inline

Definition at line 181 of file KVDBRun.h.

◆ SetDate()

void KVDBRun::SetDate ( const KVString d)
inline

Definition at line 189 of file KVDBRun.h.

◆ SetDatime()

void KVDBRun::SetDatime ( TDatime dat)
inline

Definition at line 121 of file KVDBRun.h.

◆ SetEndDate()

void KVDBRun::SetEndDate ( const KVString d)
inline

Definition at line 193 of file KVDBRun.h.

◆ SetEvents()

void KVDBRun::SetEvents ( ULong64_t  evt_number)
inline

Definition at line 169 of file KVDBRun.h.

◆ SetKVVersion()

void KVDBRun::SetKVVersion ( const Char_t V)
inline

Definition at line 49 of file KVDBRun.h.

◆ SetNumber()

void KVDBRun::SetNumber ( Int_t  n)
inlinevirtual

Reimplemented from KVDBRecord.

Definition at line 92 of file KVDBRun.h.

◆ SetScaler()

virtual void KVDBRun::SetScaler ( const Char_t name,
Int_t  val 
)
inlinevirtual

Set value for the scaler with the given name for this run.

Definition at line 208 of file KVDBRun.h.

◆ SetScaler64()

virtual void KVDBRun::SetScaler64 ( const Char_t name,
ULong64_t  val 
)
inlinevirtual

Set value for 64-bit scaler with the given name for this run.

Definition at line 219 of file KVDBRun.h.

◆ SetSize()

void KVDBRun::SetSize ( Double_t  s)
inline

Definition at line 177 of file KVDBRun.h.

◆ SetStartDate()

void KVDBRun::SetStartDate ( const KVString date)
inline

Definition at line 185 of file KVDBRun.h.

◆ SetSystem()

void KVDBRun::SetSystem ( KVDBSystem system)
virtual

Set system for run. Any previous system is unassociated (run will be removed from system's list)

Definition at line 256 of file KVDBRun.cpp.

◆ SetTime()

void KVDBRun::SetTime ( Double_t  time)
inline

Definition at line 173 of file KVDBRun.h.

◆ SetTrigger()

void KVDBRun::SetTrigger ( Int_t  trig)
inline

Definition at line 98 of file KVDBRun.h.

◆ SetUserName()

void KVDBRun::SetUserName ( const Char_t U)
inline

Definition at line 57 of file KVDBRun.h.

◆ UnsetSystem()

void KVDBRun::UnsetSystem ( )
virtual

If this run has previously been associated with a system in the database, this will remove the association. The run will also be removed from the system's list of associated runs.

Reimplemented in KVINDRADBRun.

Definition at line 225 of file KVDBRun.cpp.

◆ WriteRunListHeader()

void KVDBRun::WriteRunListHeader ( std::ostream &  outstr,
Char_t  delim = '|' 
) const
virtual

Write the version flag.

Definition at line 211 of file KVDBRun.cpp.

◆ WriteRunListLine()

void KVDBRun::WriteRunListLine ( std::ostream &  outstr,
Char_t  delim = '|' 
) const
virtual

Write informations on run in format used for runlists, i.e. a line of fields separated by the separator character '|' (the 'delim' argument is obsolete and is not used)

Definition at line 96 of file KVDBRun.cpp.

Member Data Documentation

◆ fBlockSignals

Bool_t KVDBRun::fBlockSignals
private

Definition at line 38 of file KVDBRun.h.

◆ fDatime

TDatime KVDBRun::fDatime
protected

set dynamically with date&time of ROOT file corresponding to run

Definition at line 43 of file KVDBRun.h.

◆ fKVVersion

TString KVDBRun::fKVVersion
protected

set dynamically with KaliVeda version used to generate ROOT file corresponding to run

Definition at line 44 of file KVDBRun.h.

◆ fParameters

KVNameValueList KVDBRun::fParameters
protected

list of named parameters for run

Definition at line 42 of file KVDBRun.h.

◆ fUserName

TString KVDBRun::fUserName
protected

set dynamically with name of user who generated ROOT file corresponding to run

Definition at line 45 of file KVDBRun.h.


The documentation for this class was generated from the following files: