![]() |
KaliVeda
Toolkit for HIC analysis
|
#include <KVValues.h>
Public Member Functions | |
KVValues () | |
default constructor More... | |
KVValues (const Char_t *name, Int_t ordre_max=3, Int_t nbre_max=20) | |
constructor More... | |
virtual | ~KVValues () |
destructeur More... | |
Bool_t | Add (KVValues *val) |
void | Clear (Option_t *option="") |
void | DefineAdditionalValue (KVString name, KVString expr) |
void | FillVar (Double_t val) |
void | FillVar (Double_t val, Double_t weight) |
Int_t | GetNumberOfFilling () const |
Int_t | GetNValues (KVString opt="base") const |
Int_t | GetOrdreMax () const |
Int_t | GetShift () const |
Double_t | GetValue (const Char_t *name) const |
Double_t | GetValue (Int_t idx) const |
TString | GetValueExpression (const Char_t *name) const |
TString | GetValueExpression (Int_t idx) const |
Int_t | GetValuePosition (const Char_t *name) const |
void | Print (Option_t *option="") const |
Info("Print","%s : %d values computed",GetName(),kval_tot);. More... | |
void | Reset () |
![]() | |
KVNameValueList () | |
Default constructor. More... | |
KVNameValueList (const Char_t *name, const Char_t *title="") | |
KVNameValueList (const KVNameValueList &) | |
Copy constructor. More... | |
KVNameValueList (std::initializer_list< KVNamedParameter >) | |
virtual | ~KVNameValueList () |
Destructor. More... | |
void | AddValue (const KVNamedParameter &p) |
Iterator | begin () const |
virtual void | ClearSelection (TRegexp &) |
Int_t | Compare (const TObject *nvl) const |
void | Copy (TObject &nvl) const |
Iterator | end () const |
KVNamedParameter * | FindParameter (const Char_t *name) const |
return the parameter object with the asking name More... | |
KVString | Get () const |
Bool_t | GetBoolValue (const Char_t *name) const |
Bool_t | GetBoolValue (Int_t idx) const |
Double_t | GetDoubleValue (const Char_t *name) const |
Double_t | GetDoubleValue (Int_t idx) const |
Int_t | GetEntries () const |
Int_t | GetIntValue (const Char_t *name) const |
Int_t | GetIntValue (Int_t idx) const |
KVHashList * | GetList () const |
const Char_t * | GetNameAt (Int_t idx) const |
Int_t | GetNameIndex (const Char_t *name) const |
Int_t | GetNpar () const |
return the number of stored parameters More... | |
KVNamedParameter * | GetParameter (Int_t idx) const |
return the parameter object with index idx More... | |
const Char_t * | GetStringValue (const Char_t *name) const |
const Char_t * | GetStringValue (Int_t idx) const |
TString | GetTStringValue (const Char_t *name) const |
TString | GetTStringValue (Int_t idx) const |
template<typename value_type > | |
value_type | GetValue (const Char_t *name) const |
template<typename value_type > | |
value_type | GetValue (Int_t idx) const |
ULong64_t | GetValue64bit (const Char_t *name) const |
Bool_t | HasBoolParameter (const Char_t *name) const |
Bool_t | HasDoubleParameter (const Char_t *name) const |
Bool_t | HasIntParameter (const Char_t *name) const |
Bool_t | HasNumericParameter (const Char_t *name) const |
Bool_t | HasParameter (const Char_t *name) const |
template<typename value_type > | |
Bool_t | HasParameter (const Char_t *name) const |
Bool_t | HasStringParameter (const Char_t *name) const |
Bool_t | HasValue64bit (const Char_t *name) const |
template<typename value_type > | |
void | IncrementValue (const Char_t *name, value_type value) |
Bool_t | IsEmpty () const |
Bool_t | IsOwner () const |
template<typename value_type > | |
Bool_t | IsValue (const Char_t *name, value_type value) const |
virtual void | ls (Option_t *opt="") const |
void | Merge (const KVNameValueList &) |
KVNameValueList | operator+= (const KVNameValueList &nvl) |
KVNameValueList & | operator= (const KVNameValueList &) |
virtual KVEnv * | ProduceEnvFile () |
virtual void | ReadEnvFile (const Char_t *filename) |
void | RemoveParameter (const Char_t *name) |
bool | Set (const KVString &) |
template<typename value_type > | |
void | SetFirstValue (const Char_t *name, value_type value) |
void | SetFromEnv (TEnv *tenv, const TString &prefix="") |
void | SetIgnoreBool (Bool_t ignore=kTRUE) |
template<typename value_type > | |
void | SetLastValue (const Char_t *name, value_type value) |
void | SetOwner (Bool_t enable=kTRUE) |
template<typename value_type > | |
void | SetValue (const Char_t *name, value_type value) |
void | SetValue (const KVNamedParameter &) |
add (or replace) a parameter with the same name, type & value as 'p' More... | |
void | SetValue64bit (const Char_t *name, ULong64_t) |
template<typename value_type > | |
void | SetValueAt (const Char_t *name, value_type value, Int_t idx) |
void | Sort (Bool_t order=kSortAscending) |
void | WriteClass (const Char_t *classname, const Char_t *classdesc, const Char_t *base_class="") |
virtual void | WriteEnvFile (const Char_t *filename) |
Write all name-value pairs in this list as a TEnv format file. More... | |
void | WriteToEnv (TEnv *tenv, const TString &prefix="") |
Private Member Functions | |
Bool_t | AddFormula (KVString name, KVString expr) |
void | ComputeAdditionalValues (Int_t min=-1, Int_t max=-1) |
void | init_val () |
protected method More... | |
void | init_val_add () |
protected method More... | |
void | init_val_base () |
void | LinkParameters (KVNumberList *nl) |
KVNumberList * | TransformExpression (KVString &expr) |
Private Attributes | |
Int_t | kdeb |
separation entre les valeurs MIN et MAX et les valeurs moments SUMd, par defaut kdeb=2 More... | |
KVList * | kform_add |
liste contenant les formules des variables additionnelle (stockees en TFormula) More... | |
Int_t | knbre_val_max |
nombre maximum de valeurs pouvant etre calculees (argument du constructeur) More... | |
Int_t | kordre_mom_max |
ordre maximum pour le calcul des moments (argument du constructeur) More... | |
KVList * | kpar_add |
liste contenant les liste de parametres (stockees en KVNumberList) More... | |
Int_t | kTimesFillVarIsCalled |
nombre de fois ou la methode FillVar est appelee More... | |
Bool_t | kToBeRecalculated |
Int_t | kval_add |
nbre de valeurs additionelles definies via la methode DefineAdditionalValue More... | |
Int_t | kval_base |
nbre de valeurs de base definies par le constructeur, kval_base = kdeb+kordre_mom_max+1 More... | |
Int_t | kval_tot |
nbre total de valeurs definies kval_tot = kval_base+kval_add (=KVNameValueList::GetNpar()) More... | |
Double_t * | values |
[knbre_val_max] tableau ou sont stockees les valeurs More... | |
KVValues::KVValues | ( | ) |
default constructor
Definition at line 92 of file KVValues.cpp.
KVValues::KVValues | ( | const Char_t * | name, |
Int_t | ordre_max = 3 , |
||
Int_t | nbre_max = 20 |
||
) |
constructor
Definition at line 102 of file KVValues.cpp.
|
virtual |
destructeur
Definition at line 129 of file KVValues.cpp.
Bool_t KVValues::Add | ( | KVValues * | val | ) |
Definition at line 459 of file KVValues.cpp.
Definition at line 242 of file KVValues.cpp.
|
virtual |
Reimplemented from KVNameValueList.
Definition at line 143 of file KVValues.cpp.
|
private |
Definition at line 185 of file KVValues.cpp.
Definition at line 211 of file KVValues.cpp.
void KVValues::FillVar | ( | Double_t | val | ) |
Definition at line 329 of file KVValues.cpp.
void KVValues::FillVar | ( | Double_t | val, |
Double_t | weight | ||
) |
Definition at line 340 of file KVValues.cpp.
Int_t KVValues::GetNumberOfFilling | ( | ) | const |
Definition at line 366 of file KVValues.cpp.
Int_t KVValues::GetNValues | ( | KVString | opt = "base" | ) | const |
Definition at line 446 of file KVValues.cpp.
Int_t KVValues::GetOrdreMax | ( | ) | const |
Definition at line 356 of file KVValues.cpp.
Int_t KVValues::GetShift | ( | ) | const |
Definition at line 376 of file KVValues.cpp.
Double_t KVValues::GetValue | ( | const Char_t * | name | ) | const |
Definition at line 400 of file KVValues.cpp.
Double_t KVValues::GetValue | ( | Int_t | idx | ) | const |
Definition at line 387 of file KVValues.cpp.
TString KVValues::GetValueExpression | ( | const Char_t * | name | ) | const |
Definition at line 421 of file KVValues.cpp.
TString KVValues::GetValueExpression | ( | Int_t | idx | ) | const |
Definition at line 432 of file KVValues.cpp.
Int_t KVValues::GetValuePosition | ( | const Char_t * | name | ) | const |
Definition at line 410 of file KVValues.cpp.
|
private |
protected method
Definition at line 75 of file KVValues.cpp.
|
private |
protected method
Definition at line 57 of file KVValues.cpp.
|
private |
protected method Mise en correspondance du noms des differentes valeurs a calculees et de leur position dans le tableau values Ex: nom_valeurs -> id_valeurs -> values[id_valeurs]
Definition at line 20 of file KVValues.cpp.
|
private |
Definition at line 176 of file KVValues.cpp.
|
virtual |
Info("Print","%s : %d values computed",GetName(),kval_tot);.
Reimplemented from KVNameValueList.
Definition at line 163 of file KVValues.cpp.
void KVValues::Reset | ( | ) |
Definition at line 117 of file KVValues.cpp.
|
private |
Definition at line 261 of file KVValues.cpp.
|
private |
separation entre les valeurs MIN et MAX et les valeurs moments SUMd, par defaut kdeb=2
Definition at line 29 of file KVValues.h.
|
private |
liste contenant les formules des variables additionnelle (stockees en TFormula)
Definition at line 46 of file KVValues.h.
|
private |
nombre maximum de valeurs pouvant etre calculees (argument du constructeur)
Definition at line 35 of file KVValues.h.
|
private |
ordre maximum pour le calcul des moments (argument du constructeur)
Definition at line 36 of file KVValues.h.
|
private |
liste contenant les liste de parametres (stockees en KVNumberList)
Definition at line 47 of file KVValues.h.
|
private |
nombre de fois ou la methode FillVar est appelee
Definition at line 37 of file KVValues.h.
|
private |
Definition at line 40 of file KVValues.h.
|
private |
nbre de valeurs additionelles definies via la methode DefineAdditionalValue
Definition at line 32 of file KVValues.h.
|
private |
nbre de valeurs de base definies par le constructeur, kval_base = kdeb+kordre_mom_max+1
Definition at line 31 of file KVValues.h.
|
private |
nbre total de valeurs definies kval_tot = kval_base+kval_add (=KVNameValueList::GetNpar())
Definition at line 33 of file KVValues.h.
|
private |
[knbre_val_max] tableau ou sont stockees les valeurs
Definition at line 38 of file KVValues.h.