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

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 30 of file KVPartition.h.

Public Member Functions

 KVPartition ()
 Default constructor. More...
 
 KVPartition (Int_t mommax)
 Constructor. More...
 
virtual ~KVPartition ()
 Destructeur. More...
 
void Clear (Option_t *option="")
 Methode dérivée de KVIntegerList, Reinitialisation de l'object. More...
 
void Copy (TObject &obj) const
 Methode dérivée de KVIntegerList, fait une copie dans l'objet "obj". More...
 
KVValuesGetAddValues ()
 
Int_t GetFrequenceAt (Int_t rang) const
 
Double_t GetMoment (Int_t ordre) const
 Methodes donnant acces aux variables calculees de la partition. More...
 
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. More...
 
Int_t GetOrdreMax () const
 
Int_t GetValeur (Int_t rang) const
 
Int_t GetValeurDiff (Int_t rang) const
 
Int_tGetValeurs () const
 
Int_tGetValeursDiff () 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 More...
 
Bool_t RemoveAt (Int_t rang)
 return kTRUE if the indicated rank is occupied More...
 
- Public Member Functions inherited from KVIntegerList
 KVIntegerList ()
 Default constructor. More...
 
virtual ~KVIntegerList ()
 Destructor. More...
 
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())) More...
 
void Add (Double_t val)
 Ajout de la valeur val version Double_t (Conversion Double_t -> Int_t (arrondi, TMath::Nint())) More...
 
void Add (Double_t val, Int_t freq)
 Ajout de "freq" fois la valeur val. More...
 
void Add (Int_t *tab, Int_t mult)
 Ajout d'un tableau d'entiers de "mult" valeurs. More...
 
void Add (Int_t val)
 Ajout de la valeur val (Int_t) More...
 
void Add (Int_t val, Int_t freq)
 Ajout de "freq" fois la valeur val. More...
 
void Add (TArrayI *tab)
 void Fill(Double_t* tab,Int_t mult); More...
 
void AddPopulation (Int_t pop)
 Incrémente la population de "pop" fois. More...
 
void CheckForUpdate ()
 
Int_t Compare (const TObject *obj) const
 
Bool_t Contains (Int_t val) const
 
Int_tCreateTableOfValues ()
 
TArrayICreateTArrayI ()
 
TNamedCreateTNamed ()
 KVPartition* CreateKVPartition(Int_t mom_max=5);. More...
 
void Fill (Int_t *tab, Int_t mult)
 void Fill(TArrayI* tab); More...
 
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) More...
 
void SetPopulation (Int_t pop)
 Initialise la population à "pop". More...
 
- 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
 
virtual void ls (Option_t *option="") 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="")
 
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 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 TObjectFindObject (const char *name) const
 
virtual TObjectFindObject (const TObject *obj) 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
 
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)
 
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)
 
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)
 
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 Member Functions

void add_values (Int_t val, Int_t freq)
 
void init (Int_t mommax=5)
 Initialisation. More...
 
Bool_t remove_values (Int_t val, Int_t freq)
 
void Update ()
 
- Protected Member Functions inherited from KVIntegerList
virtual void DeducePartitionFromName ()
 protected method, utilisee par le Streamer More...
 
virtual void DeducePartitionFromTNamed ()
 
virtual void DeducePopulationFromTitle ()
 protected method, utilisee par le Streamer More...
 
void init ()
 
virtual void ResetRegle ()
 protected method, Mise a zero de l'ensemble des valeurs More...
 
virtual void SetPartition (const Char_t *par)
 
Bool_t ToBeUpdated ()
 protected method, test si les grandeurs associées à la liste doivent etre mises a jour More...
 
- 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

Int_t fMult_diff
 Nbre de valeurs differentes. More...
 
TArrayIftab
 tableau regroupant tous les entiers de la partition (ordre decroissant) More...
 
TArrayIftab_diff
 tableau regroupant tous les entiers differents de la partition (ordre decroissant) More...
 
KVValuesfValues
 Object permettant de gerer les moments ou autre. More...
 
- Protected Attributes inherited from KVIntegerList
Ssiz_t fLength
 Longueur du nom de la liste/partition usilisée dans Compare. More...
 
Int_t fLimiteRegle
 taille max de fRegle More...
 
Int_t fMult
 Nombre d'éléments dans la liste. More...
 
Int_t fPop
 population de la liste/partition consideree, permet le comptage de partitions identiques dansun lot de donée More...
 
TArrayIfRegle
 tableau d'entiers où sont stockée l'occurence des valeurs More...
 
- Protected Attributes inherited from TNamed
TString fName
 
TString fTitle
 
- Protected Attributes inherited from TObject
 kOnlyPrepStep
 

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 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
 

#include <KVPartition.h>

Inheritance diagram for KVPartition:
Inheritance graph
[legend]

Constructor & Destructor Documentation

◆ KVPartition() [1/2]

KVPartition::KVPartition ( )

Default constructor.

Definition at line 45 of file KVPartition.cpp.

◆ KVPartition() [2/2]

KVPartition::KVPartition ( Int_t  mommax)

Constructor.

Definition at line 34 of file KVPartition.cpp.

◆ ~KVPartition()

KVPartition::~KVPartition ( )
virtual

Destructeur.

Definition at line 56 of file KVPartition.cpp.

Member Function Documentation

◆ add_values()

void KVPartition::add_values ( Int_t  val,
Int_t  freq 
)
protectedvirtual

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.

◆ Clear()

void KVPartition::Clear ( Option_t option = "")
virtual

Methode dérivée de KVIntegerList, Reinitialisation de l'object.

Reimplemented from KVIntegerList.

Definition at line 70 of file KVPartition.cpp.

◆ Copy()

void KVPartition::Copy ( TObject obj) const
virtual

Methode dérivée de KVIntegerList, fait une copie dans l'objet "obj".

Reimplemented from KVIntegerList.

Definition at line 90 of file KVPartition.cpp.

◆ GetAddValues()

KVValues* KVPartition::GetAddValues ( )
inline

Definition at line 130 of file KVPartition.h.

◆ GetFrequenceAt()

Int_t KVPartition::GetFrequenceAt ( Int_t  rang) const
inline

Definition at line 88 of file KVPartition.h.

◆ GetMoment()

Double_t KVPartition::GetMoment ( Int_t  ordre) const
inline

Methodes donnant acces aux variables calculees de la partition.

Definition at line 94 of file KVPartition.h.

◆ GetMomentNormalise()

Double_t KVPartition::GetMomentNormalise ( Int_t  ordre) const
inline

Definition at line 98 of file KVPartition.h.

◆ GetMtot()

Double_t KVPartition::GetMtot ( ) const
inline

Definition at line 107 of file KVPartition.h.

◆ GetMult()

Int_t KVPartition::GetMult ( void  ) const
inline

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 76 of file KVPartition.h.

◆ GetMultDiff()

Int_t KVPartition::GetMultDiff ( void  ) const
inline

Methodes donnant aux valeurs uniques de la partition.

Definition at line 61 of file KVPartition.h.

◆ GetOrdreMax()

Int_t KVPartition::GetOrdreMax ( ) const
inline

Definition at line 55 of file KVPartition.h.

◆ GetValeur()

Int_t KVPartition::GetValeur ( Int_t  rang) const
inline

Definition at line 84 of file KVPartition.h.

◆ GetValeurDiff()

Int_t KVPartition::GetValeurDiff ( Int_t  rang) const
inline

Definition at line 69 of file KVPartition.h.

◆ GetValeurs()

Int_t* KVPartition::GetValeurs ( ) const
inline

Definition at line 80 of file KVPartition.h.

◆ GetValeursDiff()

Int_t* KVPartition::GetValeursDiff ( ) const
inline

Definition at line 65 of file KVPartition.h.

◆ GetZ1()

Double_t KVPartition::GetZ1 ( ) const
inline

Definition at line 118 of file KVPartition.h.

◆ GetZ2()

Double_t KVPartition::GetZ2 ( ) const
inline

Definition at line 122 of file KVPartition.h.

◆ GetZmax()

Double_t KVPartition::GetZmax ( Int_t  rang = 0) const

Donne le 1er, 2eme ... plus gros de la partition Attention notation C

  • le premier -> 0
  • le dernier -> N-1 ou N est la multiplicite

Definition at line 220 of file KVPartition.cpp.

◆ GetZmean()

Double_t KVPartition::GetZmean ( ) const
inline

Definition at line 111 of file KVPartition.h.

◆ GetZmin()

Double_t KVPartition::GetZmin ( Int_t  rang = 0) const

Donne le 1er, 2eme ... plus petit de la partition Attention notation C

  • le premier -> 0
  • le dernier -> N-1 ou N est la multiplicite

Definition at line 240 of file KVPartition.cpp.

◆ GetZtot()

Double_t KVPartition::GetZtot ( ) const
inline

Definition at line 103 of file KVPartition.h.

◆ init()

void KVPartition::init ( Int_t  mommax = 5)
protected

Initialisation.

Definition at line 17 of file KVPartition.cpp.

◆ Print()

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

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.

◆ remove_values()

Bool_t KVPartition::remove_values ( Int_t  val,
Int_t  freq 
)
protectedvirtual

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.

◆ RemoveAllValuesAt()

Bool_t KVPartition::RemoveAllValuesAt ( Int_t  rang)

return kTRUE if the indicated rank is occupied

Definition at line 273 of file KVPartition.cpp.

◆ RemoveAt()

Bool_t KVPartition::RemoveAt ( Int_t  rang)

return kTRUE if the indicated rank is occupied

Definition at line 258 of file KVPartition.cpp.

◆ Update()

void KVPartition::Update ( )
protectedvirtual

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.

Member Data Documentation

◆ fMult_diff

Int_t KVPartition::fMult_diff
protected

Nbre de valeurs differentes.

Definition at line 36 of file KVPartition.h.

◆ ftab

TArrayI* KVPartition::ftab
protected

tableau regroupant tous les entiers de la partition (ordre decroissant)

Definition at line 34 of file KVPartition.h.

◆ ftab_diff

TArrayI* KVPartition::ftab_diff
protected

tableau regroupant tous les entiers differents de la partition (ordre decroissant)

Definition at line 35 of file KVPartition.h.

◆ fValues

KVValues* KVPartition::fValues
protected

Object permettant de gerer les moments ou autre.

Definition at line 37 of file KVPartition.h.


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