KaliVeda
Toolkit for HIC analysis
|
Handle partitions.
Created by KVClassFactory on Mon Mar 29 14:58:00 2010 Author: bonnet
A la classe mere, est rajoutée l'object fValues, qui permet le calcul automatique de des moments d'une variable jusqu'à un ordre donné (par defaut GetOrdreMax() = 5) Deux TArrayI permettent de stocker les valeurs de la liste et sont remplis dans la routine Update
Cette classe donne accès aux grandeurs calculées dans la classe KVValues KVPartition::GetAddValues() et aux valeurs de la liste via par exemple :
Definition at line 31 of file KVPartition.h.
#include <KVPartition.h>
Public Member Functions | |
KVPartition () | |
Default constructor. | |
KVPartition (Int_t mommax) | |
Constructor. | |
virtual | ~KVPartition () |
Destructeur. | |
void | Clear (Option_t *option="") |
Methode dérivée de KVIntegerList, Reinitialisation de l'object. | |
void | Copy (TObject &obj) const |
Methode dérivée de KVIntegerList, fait une copie dans l'objet "obj". | |
KVValues * | GetAddValues () |
Int_t | GetFrequenceAt (Int_t rang) const |
Double_t | GetMoment (Int_t ordre) const |
Methodes donnant acces aux variables calculees de la partition. | |
Double_t | GetMomentNormalise (Int_t ordre) const |
Double_t | GetMtot () const |
Int_t | GetMult (void) const |
Int_t | GetMultDiff (void) const |
Methodes donnant aux valeurs uniques de la partition. | |
Int_t | GetOrdreMax () const |
Int_t | GetValeur (Int_t rang) const |
Int_t | GetValeurDiff (Int_t rang) const |
Int_t * | GetValeurs () const |
Int_t * | GetValeursDiff () const |
Double_t | GetZ1 () const |
Double_t | GetZ2 () const |
Double_t | GetZmax (Int_t rang=0) const |
Double_t | GetZmean () const |
Double_t | GetZmin (Int_t rang=0) const |
Double_t | GetZtot () const |
void | Print (Option_t *option="") const |
Bool_t | RemoveAllValuesAt (Int_t rang) |
return kTRUE if the indicated rank is occupied | |
Bool_t | RemoveAt (Int_t rang) |
return kTRUE if the indicated rank is occupied | |
Public Member Functions inherited from KVIntegerList | |
KVIntegerList () | |
Default constructor. | |
virtual | ~KVIntegerList () |
Destructor. | |
void | Add (Double_t *tab, Int_t mult) |
Ajout d'un tableau de "mult" valeurs, version Double_t (Conversion Double_t -> Int_t (arrondi, TMath::Nint())) | |
void | Add (Double_t val) |
Ajout de la valeur val version Double_t (Conversion Double_t -> Int_t (arrondi, TMath::Nint())) | |
void | Add (Double_t val, Int_t freq) |
Ajout de "freq" fois la valeur val. | |
void | Add (Int_t *tab, Int_t mult) |
Ajout d'un tableau d'entiers de "mult" valeurs. | |
void | Add (Int_t val) |
Ajout de la valeur val (Int_t) | |
void | Add (Int_t val, Int_t freq) |
Ajout de "freq" fois la valeur val. | |
void | Add (TArrayI *tab) |
void Fill(Double_t* tab,Int_t mult); | |
void | AddPopulation (Int_t pop) |
Incrémente la population de "pop" fois. | |
void | CheckForUpdate () |
Int_t | Compare (const TObject *obj) const |
Bool_t | Contains (Int_t val) const |
Int_t * | CreateTableOfValues () |
TArrayI * | CreateTArrayI () |
TNamed * | CreateTNamed () |
KVPartition* CreateKVPartition(Int_t mom_max=5);. | |
void | Fill (Int_t *tab, Int_t mult) |
void Fill(TArrayI* tab); | |
Int_t | GetFrequency (Int_t val) const |
Ssiz_t | GetLengthName () const |
Int_t | GetNbre () const |
Int_t | GetPopulation () const |
Bool_t | Remove (Int_t val) |
Bool_t | Remove (Int_t val, Int_t freq) |
Bool_t | RemoveAll (Int_t val) |
void | ResetPopulation () |
Remet à 1 la population (comme dans le ctor) | |
void | SetPopulation (Int_t pop) |
Initialise la population à "pop". | |
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 |
TObject * | Clone (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 |
TClass * | IsA () const override |
Bool_t | IsSortable () const override |
void | ls (Option_t *option="") const override |
TNamed & | operator= (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="") |
virtual void | Browse (TBrowser *b) |
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 TObject * | DrawClone (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 TObject * | FindObject (const char *name) const |
virtual TObject * | FindObject (const TObject *obj) const |
virtual Option_t * | GetDrawOption () const |
virtual const char * | GetIconName () const |
virtual char * | GetObjectInfo (Int_t px, Int_t py) const |
virtual Option_t * | GetOption () 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 |
virtual Bool_t | IsFolder () 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) |
void * | operator new (size_t sz) |
void * | operator new (size_t sz, void *vp) |
void * | operator new[] (size_t sz) |
void * | operator new[] (size_t sz, void *vp) |
TObject & | operator= (const TObject &rhs) |
virtual void | Paint (Option_t *option="") |
virtual void | Pop () |
virtual Int_t | Read (const char *name) |
virtual void | RecursiveRemove (TObject *obj) |
void | ResetBit (UInt_t f) |
virtual void | SaveAs (const char *filename="", Option_t *option="") const |
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 Member Functions | |
void | add_values (Int_t val, Int_t freq) |
void | init (Int_t mommax=5) |
Initialisation. | |
Bool_t | remove_values (Int_t val, Int_t freq) |
void | Update () |
Private Attributes | |
Int_t | fMult_diff |
Nbre de valeurs differentes. | |
TArrayI * | ftab |
tableau regroupant tous les entiers de la partition (ordre decroissant) | |
TArrayI * | ftab_diff |
tableau regroupant tous les entiers differents de la partition (ordre decroissant) | |
KVValues * | fValues |
Object permettant de gerer les moments ou autre. | |
Additional Inherited Members | |
Public Types inherited from KVIntegerList | |
enum | { kHastobeComputed = BIT(14) } |
Public Types inherited from TObject | |
enum | EDeprecatedStatusBits |
enum | EStatusBits |
Static Public Member Functions inherited from TNamed | |
static TClass * | Class () |
static const char * | Class_Name () |
static constexpr Version_t | Class_Version () |
static const char * | DeclFileName () |
Static Public Member Functions inherited from TObject | |
static TClass * | Class () |
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 TNamed | |
TString | fName |
TString | fTitle |
Protected Attributes inherited from TObject | |
kOnlyPrepStep | |
KVPartition::KVPartition | ( | ) |
Default constructor.
Definition at line 45 of file KVPartition.cpp.
KVPartition::KVPartition | ( | Int_t | mommax | ) |
Constructor.
Definition at line 34 of file KVPartition.cpp.
|
virtual |
Destructeur.
Definition at line 56 of file KVPartition.cpp.
protected method, dérivée de KVIntegerList Incrementation si besoin du nombre de valeurs differentes GetMultDiff Remplissage de l'objet KVIntegerList::fValues, pour le calcul des moments
Reimplemented from KVIntegerList.
Definition at line 182 of file KVPartition.cpp.
Methode dérivée de KVIntegerList, Reinitialisation de l'object.
Reimplemented from KVIntegerList.
Definition at line 70 of file KVPartition.cpp.
Methode dérivée de KVIntegerList, fait une copie dans l'objet "obj".
Reimplemented from KVIntegerList.
Definition at line 90 of file KVPartition.cpp.
|
inline |
Definition at line 131 of file KVPartition.h.
Definition at line 89 of file KVPartition.h.
Methodes donnant acces aux variables calculees de la partition.
Definition at line 95 of file KVPartition.h.
Definition at line 99 of file KVPartition.h.
|
inline |
Definition at line 108 of file KVPartition.h.
Methodes donnant accès à toutes les valeus de la partition avec la notion d'occurence/frequence en utilisant le rang ou la valeur
Definition at line 77 of file KVPartition.h.
Methodes donnant aux valeurs uniques de la partition.
Definition at line 62 of file KVPartition.h.
|
inline |
Definition at line 56 of file KVPartition.h.
Definition at line 85 of file KVPartition.h.
Definition at line 70 of file KVPartition.h.
|
inline |
Definition at line 81 of file KVPartition.h.
|
inline |
Definition at line 66 of file KVPartition.h.
|
inline |
Definition at line 119 of file KVPartition.h.
|
inline |
Definition at line 123 of file KVPartition.h.
Donne le 1er, 2eme ... plus gros de la partition Attention notation C
Definition at line 220 of file KVPartition.cpp.
|
inline |
Definition at line 112 of file KVPartition.h.
Donne le 1er, 2eme ... plus petit de la partition Attention notation C
Definition at line 240 of file KVPartition.cpp.
|
inline |
Definition at line 104 of file KVPartition.h.
Initialisation.
Definition at line 17 of file KVPartition.cpp.
Methode dérivée de KVIntegerList, imprime les informations option="" -> appel uniquement de KVIntegerList::Print option=="Moments", imprime les moments calculés via la classe KVValues option=="Partition", imprime le nombre de valeurs GetMult() et le nombre de valeurs differentes (GetMultDiff())
Reimplemented from KVIntegerList.
Definition at line 152 of file KVPartition.cpp.
protected method, dérivée de KVIntegerList Decrementation si besoin du nombre de valeurs differentes GetMultDiff Les valeurs considerees sont également retires dans le calcul des moments, object KVIntegerList::fValues
Reimplemented from KVIntegerList.
Definition at line 200 of file KVPartition.cpp.
return kTRUE if the indicated rank is occupied
Definition at line 273 of file KVPartition.cpp.
return kTRUE if the indicated rank is occupied
Definition at line 258 of file KVPartition.cpp.
|
privatevirtual |
protected method, Methode dérivée de KVIntegerList, Appel de KVIntegerList::Update() les deux TArrayI ftab et ftab_diff sont mis à jour un test de dimension est fait pour etendre si besoin
Reimplemented from KVIntegerList.
Definition at line 106 of file KVPartition.cpp.
|
private |
Nbre de valeurs differentes.
Definition at line 37 of file KVPartition.h.
|
private |
tableau regroupant tous les entiers de la partition (ordre decroissant)
Definition at line 35 of file KVPartition.h.
|
private |
tableau regroupant tous les entiers differents de la partition (ordre decroissant)
Definition at line 36 of file KVPartition.h.
|
private |
Object permettant de gerer les moments ou autre.
Definition at line 38 of file KVPartition.h.