KaliVeda
Toolkit for HIC analysis
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 TString &name, const TString &type, UShort_t pnum)
 
virtual ~ KVDBParameterSet ()
 
Double_t GetParameter (const TString &name) const
 
Double_t GetParameter (UShort_t i=0) const
 
const KVNameValueList & GetParameters () const
 
const Char_t * GetParamName (UShort_t i=0) const
 
Int_t GetParamNumber () const
 
KVRList * GetRuns () const
 
TString GetStringParameter (const TString &name) const
 
Bool_t HasParameter (const TString &name) const
 
void Print (Option_t *option="") const override
 
void SetParameter (const TString &name, const TString &value)
 
void SetParameter (const TString &name, Double_t val)
 
void SetParameter (Double_t val)
 
void SetParameter (UShort_t i, Double_t val)
 
void SetParameters (const std::vector< Double_t > &pars)
 
void SetParamName (UShort_t i, const TString &name)
 
void SetParamNames (const std::vector< TString > &name_list)
 Set names of numerical parameters using given list. More...
 
- Public Member Functions inherited from KVDBRecord
 KVDBRecord ()
 
 KVDBRecord (const Char_t *name, const Char_t *title="")
 
virtual ~ KVDBRecord ()
 
virtual KVDBKey * AddKey (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)
 
Int_t Compare (const TObject *obj) const override
 
virtual KVDBKey * GetKey (const Char_t *key) const
 
virtual TList * GetKeys () const
 
virtual KVDBRecord * GetLink (const Char_t *key, const Char_t *link) const
 Returns the record named "link" in the table named "key". More...
 
virtual KVRList * GetLinks (const Char_t *key) const
 Returns the list of records linked to this record in table "key". More...
 
virtual Int_t GetNumber () const
 
virtual KVDBTable * GetTable () const
 
void ls (Option_t *option="*") const override
 
void Print (Option_t *option="") const override
 
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 SetNumber (Int_t n)
 
virtual void SetTable (const KVDBTable *table)
 

Constructor & Destructor Documentation

◆ KVDBParameterSet() [1/2]

KVDBParameterSet::KVDBParameterSet ( )

Definition at line 32 of file KVDBParameterSet.cpp.

◆ KVDBParameterSet() [2/2]

KVDBParameterSet::KVDBParameterSet ( const TString &  name,
const TString &  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()

virtual KVDBParameterSet::~ KVDBParameterSet ( )
virtual

Member Function Documentation

◆ GetParameter() [1/2]

Double_t KVDBParameterSet::GetParameter ( const TString &  name) const

Definition at line 99 of file KVDBParameterSet.cpp.

◆ GetParameter() [2/2]

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

Definition at line 77 of file KVDBParameterSet.h.

◆ GetParameters()

const KVNameValueList& KVDBParameterSet::GetParameters ( ) const
inline

Definition at line 56 of file KVDBParameterSet.h.

◆ GetParamName()

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

Definition at line 82 of file KVDBParameterSet.h.

◆ GetParamNumber()

Int_t KVDBParameterSet::GetParamNumber ( ) const
inline

Definition at line 44 of file KVDBParameterSet.h.

◆ GetRuns()

KVRList * KVDBParameterSet::GetRuns ( ) const
inline

Definition at line 87 of file KVDBParameterSet.h.

◆ GetStringParameter()

TString KVDBParameterSet::GetStringParameter ( const TString &  name) const

Definition at line 108 of file KVDBParameterSet.cpp.

◆ HasParameter()

Bool_t KVDBParameterSet::HasParameter ( const TString &  name) const
inline

Definition at line 52 of file KVDBParameterSet.h.

◆ Print()

void KVDBParameterSet::Print ( Option_t *  option = "") const
override

Definition at line 164 of file KVDBParameterSet.cpp.

◆ SetParameter() [1/4]

void KVDBParameterSet::SetParameter ( const TString &  name,
const TString &  value 
)

Definition at line 126 of file KVDBParameterSet.cpp.

◆ SetParameter() [2/4]

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

Definition at line 117 of file KVDBParameterSet.cpp.

◆ SetParameter() [3/4]

void KVDBParameterSet::SetParameter ( Double_t  val)
inline

Definition at line 96 of file KVDBParameterSet.h.

◆ SetParameter() [4/4]

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

Definition at line 91 of file KVDBParameterSet.h.

◆ SetParameters()

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

Definition at line 74 of file KVDBParameterSet.cpp.

◆ SetParamName()

void KVDBParameterSet::SetParamName ( UShort_t  i,
const TString &  name 
)

Definition at line 90 of file KVDBParameterSet.cpp.

◆ SetParamNames()

void KVDBParameterSet::SetParamNames ( const std::vector< TString > &  name_list)

Set names of numerical parameters using given list.

Definition at line 136 of file KVDBParameterSet.cpp.