KaliVeda
Toolkit for HIC analysis
Loading...
Searching...
No Matches
KVDBParameterSet Class Reference

Detailed Description

To store calibration parameters in a database ,.

Definition at line 34 of file KVDBParameterSet.h.

#include <KVDBParameterSet.h>

Inheritance diagram for KVDBParameterSet:

Public Member Functions

 KVDBParameterSet ()
 
 KVDBParameterSet (const Char_t *name, const Char_t *type, UShort_t pnum)
 
virtual ~KVDBParameterSet ()
 
Double_t GetParameter (TString name) const
 
Double_t GetParameter (UShort_t i=0) const
 
const KVNameValueListGetParameters () const
 
const Char_tGetParamName (UShort_t i=0) const
 
Int_t GetParamNumber () const
 
KVRListGetRuns () const
 
TString GetStringParameter (const TString &name) const
 
Bool_t HasParameter (const Char_t *name) const
 
void Print (Option_t *option="") const
 
void SetParameter (const TString &name, const char *value)
 
void SetParameter (Double_t val)
 
void SetParameter (TString name, Double_t val)
 
void SetParameter (UShort_t i, Double_t val)
 
void SetParameters (const std::vector< Double_t > *const pars)
 
void SetParameters (Double_t val,...)
 
void SetParamName (UShort_t i, const Char_t *name)
 
void SetParamNames (const Char_t *name,...)
 
- 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".
 
virtual KVRListGetLinks (const Char_t *key) const
 Returns the list of records linked to this record in table "key".
 
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".
 
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".
 
virtual void SetNumber (Int_t n)
 
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=nullptr)
 
void Browse (TBrowser *b) override
 
void Clear (Option_t *option="") override
 
void Copy (TObject &) const override
 
virtual const char * FindFullPathName (const char *name) const
 
virtual const char * FindFullPathName (const TObject *obj) const
 
TObjectFindObject (const char *name) const override
 
TObjectFindObject (const TObject *obj) const override
 
virtual TObjectFindObjectAny (const char *name) const
 
TCollectionGetListOfFolders () const
 
TClassIsA () const override
 
Bool_t IsFolder () const override
 
Bool_t IsOwner () const
 
void ls (Option_t *option="") const override
 
virtual Int_t Occurence (const TObject *obj) const
 
void RecursiveRemove (TObject *obj) override
 
virtual void Remove (TObject *obj)
 
void SaveAs (const char *filename="", Option_t *option="") const override
 
virtual void SetOwner (Bool_t owner=kTRUE)
 
void Streamer (TBuffer &) override
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
- 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 ()
 
void Clear (Option_t *option="") override
 
TObjectClone (const char *newname="") const override
 
Int_t Compare (const TObject *obj) const override
 
void Copy (TObject &named) const override
 
virtual void FillBuffer (char *&buffer)
 
const char * GetName () const override
 
const char * GetTitle () const override
 
ULong_t Hash () const override
 
TClassIsA () const override
 
Bool_t IsSortable () const override
 
void ls (Option_t *option="") const override
 
TNamedoperator= (const TNamed &rhs)
 
void Print (Option_t *option="") const override
 
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
 
void Streamer (TBuffer &) override
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
- 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=nullptr)
 
virtual void Execute (TMethod *method, TObjArray *params, Int_t *error=nullptr)
 
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)
 
Bool_t IsDestructed () const
 
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, void *vp)
 
void operator delete[] (void *ptr)
 
void operator delete[] (void *ptr, void *vp)
 
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)
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
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=nullptr, Int_t option=0, Int_t bufsize=0)
 
virtual Int_t Write (const char *name=nullptr, Int_t option=0, Int_t bufsize=0) const
 

Private Attributes

KVNameValueList fParameters
 parameters
 
Int_t fParamNumber
 number of parameters
 

Additional Inherited Members

- Public Types inherited from TObject
enum  EDeprecatedStatusBits
 
enum  EStatusBits
 
- Static Public Member Functions inherited from TFolder
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
- Static Public Member Functions inherited from TNamed
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
- Static Public Member Functions inherited from TObject
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
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 ()
 
- Protected Attributes inherited from TFolder
TCollectionfFolders
 
Bool_t fIsOwner
 
- Protected Attributes inherited from TNamed
TString fName
 
TString fTitle
 
- Protected Attributes inherited from TObject
 kOnlyPrepStep
 

Constructor & Destructor Documentation

◆ KVDBParameterSet() [1/2]

KVDBParameterSet::KVDBParameterSet ( )

Definition at line 32 of file KVDBParameterSet.cpp.

◆ KVDBParameterSet() [2/2]

KVDBParameterSet::KVDBParameterSet ( const Char_t name,
const Char_t title,
UShort_t  pnum 
)

Initialise a KVDBRecord for a set of "pnum" parameters. The names of the parameters are "par_1", "par_2", etc. The KVDBKey "Runs" is initialised to cross-reference the runs for which this set of parameters is valid.

Definition at line 45 of file KVDBParameterSet.cpp.

◆ ~KVDBParameterSet()

KVDBParameterSet::~KVDBParameterSet ( )
virtual

Definition at line 66 of file KVDBParameterSet.cpp.

Member Function Documentation

◆ GetParameter() [1/2]

Double_t KVDBParameterSet::GetParameter ( TString  name) const

Definition at line 125 of file KVDBParameterSet.cpp.

◆ GetParameter() [2/2]

Double_t KVDBParameterSet::GetParameter ( UShort_t  i = 0) const
inline

Definition at line 75 of file KVDBParameterSet.h.

◆ GetParameters()

const KVNameValueList & KVDBParameterSet::GetParameters ( ) const
inline

Definition at line 57 of file KVDBParameterSet.h.

◆ GetParamName()

const Char_t * KVDBParameterSet::GetParamName ( UShort_t  i = 0) const
inline

Definition at line 80 of file KVDBParameterSet.h.

◆ GetParamNumber()

Int_t KVDBParameterSet::GetParamNumber ( ) const
inline

Definition at line 45 of file KVDBParameterSet.h.

◆ GetRuns()

KVRList * KVDBParameterSet::GetRuns ( ) const
inline

Definition at line 85 of file KVDBParameterSet.h.

◆ GetStringParameter()

TString KVDBParameterSet::GetStringParameter ( const TString name) const

Definition at line 134 of file KVDBParameterSet.cpp.

◆ HasParameter()

Bool_t KVDBParameterSet::HasParameter ( const Char_t name) const
inline

Definition at line 53 of file KVDBParameterSet.h.

◆ Print()

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

Reimplemented from KVDBRecord.

Definition at line 192 of file KVDBParameterSet.cpp.

◆ SetParameter() [1/4]

void KVDBParameterSet::SetParameter ( const TString name,
const char *  value 
)

Definition at line 152 of file KVDBParameterSet.cpp.

◆ SetParameter() [2/4]

void KVDBParameterSet::SetParameter ( Double_t  val)
inline

Definition at line 94 of file KVDBParameterSet.h.

◆ SetParameter() [3/4]

void KVDBParameterSet::SetParameter ( TString  name,
Double_t  val 
)

Definition at line 143 of file KVDBParameterSet.cpp.

◆ SetParameter() [4/4]

void KVDBParameterSet::SetParameter ( UShort_t  i,
Double_t  val 
)
inline

Definition at line 89 of file KVDBParameterSet.h.

◆ SetParameters() [1/2]

void KVDBParameterSet::SetParameters ( const std::vector< Double_t > *const  pars)

Definition at line 100 of file KVDBParameterSet.cpp.

◆ SetParameters() [2/2]

void KVDBParameterSet::SetParameters ( Double_t  val,
  ... 
)

Be cautious when using this method, if the number of arguments is lower than the expected number of parameters a segmantation fault will occur !!!!! exceeding argument won't be considered at all

Definition at line 77 of file KVDBParameterSet.cpp.

◆ SetParamName()

void KVDBParameterSet::SetParamName ( UShort_t  i,
const Char_t name 
)

Definition at line 116 of file KVDBParameterSet.cpp.

◆ SetParamNames()

void KVDBParameterSet::SetParamNames ( const Char_t name,
  ... 
)

Be cautious when using this method, if the number of arguments is lower than the expected number of parameters a segmantation fault will occur !!!!! exceeding argument won't be considered at all

Definition at line 164 of file KVDBParameterSet.cpp.

Member Data Documentation

◆ fParameters

KVNameValueList KVDBParameterSet::fParameters
private

parameters

Definition at line 37 of file KVDBParameterSet.h.

◆ fParamNumber

Int_t KVDBParameterSet::fParamNumber
private

number of parameters

Definition at line 36 of file KVDBParameterSet.h.