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

Detailed Description

Derived form KVPartition to optimize filling from a tree.

Created by KVClassFactory on Fri May 7 11:30:10 2010 Author: bonnet

  • Utilisation avec un arbre (TTree* )contenant des branches de ce type avec par evt un tableau de valeur de dimension fixe ou non Exemple: OBJ: TTree tree tree : 0 at: 0x9cfc7a8 OBJ: TBranch mt mt/I : 0 at: 0x9cfcdc8 OBJ: TBranch tabz tabz[mt]/I : 0 at: 0x9d00120 Attention: cette classe n'est pas adapte au TChain
  • Methode ConnectToLeaf(TLeaf* lf) permet de lier la KVPartition a la branche tableau (tree->GetLeaf("tabz")) Exemple: KVPartitionFromLeaf* par = new KVPartitionFromLeaf(); par->ConnectToLeaf(tree->GetLeaf("tabz"));
  • Methode KVPartitionFromLeaf::SetZminZmax permet de definir des limites inf ou sup des tailles des fragments lors du remplissage de la partition, à definir avant d'utiliser la methode CheckForUpdate();
  • Méthode KVPartitionFromLeaf::ReadEntry(Long64_t entry), jour le role de remplissage de la partition et aussi du calcul des valeurs associées On peut incrementer les entrees de l'arbre en meme temps ou non (defaut) Exemple: for (Int_t ii=0;ii<tt->GetEntries();ii+=1){

    tree->GetEntry(ii); ... ... par->CheckForUpdate();

} ou for (Int_t ii=0;ii<tt->GetEntries();ii+=1){

par->ReadEntry(ii);

}

Definition at line 50 of file KVPartitionFromLeaf.h.

#include <KVPartitionFromLeaf.h>

Inheritance diagram for KVPartitionFromLeaf:

Public Member Functions

 KVPartitionFromLeaf ()
 Default constructor.
 
virtual ~KVPartitionFromLeaf ()
 Destructor.
 
void ConnectToLeaf (TLeaf *lf)
 
void ReadEntry (Long64_t entry=-1)
 
void SetZmax (Int_t val)
 
void SetZmin (Int_t val)
 
void SetZminZmax (Int_t vmin, Int_t vmax)
 
- Public Member Functions inherited from KVPartition
 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".
 
KVValuesGetAddValues ()
 
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_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
 
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_tCreateTableOfValues ()
 
TArrayICreateTArrayI ()
 
TNamedCreateTNamed ()
 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
 
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="")
 
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=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 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)
 
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)
 
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)
 
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

TLeaflinked_leaf
 
Bool_t select_max
 
Bool_t select_min
 
Int_t zmax
 
Int_t zmin
 

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 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 TNamed
TString fName
 
TString fTitle
 
- Protected Attributes inherited from TObject
 kOnlyPrepStep
 

Constructor & Destructor Documentation

◆ KVPartitionFromLeaf()

KVPartitionFromLeaf::KVPartitionFromLeaf ( )

Default constructor.

Definition at line 15 of file KVPartitionFromLeaf.cpp.

◆ ~KVPartitionFromLeaf()

KVPartitionFromLeaf::~KVPartitionFromLeaf ( )
virtual

Destructor.

Definition at line 31 of file KVPartitionFromLeaf.cpp.

Member Function Documentation

◆ ConnectToLeaf()

void KVPartitionFromLeaf::ConnectToLeaf ( TLeaf lf)

Definition at line 40 of file KVPartitionFromLeaf.cpp.

◆ ReadEntry()

void KVPartitionFromLeaf::ReadEntry ( Long64_t  entry = -1)

Definition at line 53 of file KVPartitionFromLeaf.cpp.

◆ SetZmax()

void KVPartitionFromLeaf::SetZmax ( Int_t  val)

Definition at line 87 of file KVPartitionFromLeaf.cpp.

◆ SetZmin()

void KVPartitionFromLeaf::SetZmin ( Int_t  val)

Definition at line 76 of file KVPartitionFromLeaf.cpp.

◆ SetZminZmax()

void KVPartitionFromLeaf::SetZminZmax ( Int_t  vmin,
Int_t  vmax 
)

Definition at line 98 of file KVPartitionFromLeaf.cpp.

Member Data Documentation

◆ linked_leaf

TLeaf* KVPartitionFromLeaf::linked_leaf
private

Definition at line 53 of file KVPartitionFromLeaf.h.

◆ select_max

Bool_t KVPartitionFromLeaf::select_max
private

Definition at line 55 of file KVPartitionFromLeaf.h.

◆ select_min

Bool_t KVPartitionFromLeaf::select_min
private

Definition at line 55 of file KVPartitionFromLeaf.h.

◆ zmax

Int_t KVPartitionFromLeaf::zmax
private

Definition at line 54 of file KVPartitionFromLeaf.h.

◆ zmin

Int_t KVPartitionFromLeaf::zmin
private

Definition at line 54 of file KVPartitionFromLeaf.h.