KaliVeda
Toolkit for HIC analysis
Loading...
Searching...
No Matches
MicroStat::StatWeight Class Referenceabstract

Detailed Description

Abstract base class for calculating statistical weights for events .

Definition at line 21 of file StatWeight.h.

#include <StatWeight.h>

Inheritance diagram for MicroStat::StatWeight:

Public Member Functions

 StatWeight ()
 Default constructor.
 
virtual ~StatWeight ()
 Destructor.
 
Int_t Compare (const TObject *obj) const
 sort according to weight
 
void GenerateEvent (KVEvent *partition, KVEvent *event)
 
Double_t GetAvailableEnergy () const
 
Long64_t GetIndex () const
 
Double_t GetWeight () const
 
virtual void initGenerateEvent (KVEvent *partition)=0
 
Bool_t IsSortable () const
 
void ls (Option_t *="") const
 
virtual void nextparticleGenerateEvent (Int_t, KVNucleus *)=0
 
virtual void resetGenerateEvent ()=0
 
void SetIndex (Long64_t i)
 
virtual void SetWeight (KVEvent *e, Double_t E)=0
 
- 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 Clear (Option_t *="")
 
virtual TObjectClone (const char *newname="") const
 
virtual void Copy (TObject &object) 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 const char * GetName () const
 
virtual char * GetObjectInfo (Int_t px, Int_t py) const
 
virtual Option_tGetOption () const
 
virtual const char * GetTitle () const
 
virtual UInt_t GetUniqueID () const
 
virtual Bool_t HandleTimer (TTimer *timer)
 
virtual ULong_t Hash () const
 
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 TClassIsA () const
 
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 void Print (Option_t *option="") const
 
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 Streamer (TBuffer &)
 
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 init ()
 Default initialisations.
 
void setAvailableEnergy (Double_t e)
 
void setWeight (Double_t w)
 

Private Attributes

Double_t fEDisp
 
Long64_t fIndex
 
Double_t fWeight
 

Additional Inherited Members

- Public Types inherited from TObject
enum  EDeprecatedStatusBits
 
enum  EStatusBits
 
- 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 TObject
 kOnlyPrepStep
 

Constructor & Destructor Documentation

◆ StatWeight()

MicroStat::StatWeight::StatWeight ( )

Default constructor.

Definition at line 27 of file StatWeight.cpp.

◆ ~StatWeight()

MicroStat::StatWeight::~StatWeight ( )
virtual

Destructor.

Definition at line 39 of file StatWeight.cpp.

Member Function Documentation

◆ Compare()

Int_t MicroStat::StatWeight::Compare ( const TObject obj) const
virtual

sort according to weight

Reimplemented from TObject.

Definition at line 60 of file StatWeight.cpp.

◆ GenerateEvent()

void MicroStat::StatWeight::GenerateEvent ( KVEvent partition,
KVEvent event 
)

Generate a full kinematical event using the statistical weight for the given partition with given available kinetic energy. Before calling this method, either call initGenerateEvent(...) // the first time, or resetGenerateEvent(...) // on subsequent calls initialise the event

Examples
MicroStat_example.C, and MicroStat_example2.C.

Definition at line 79 of file StatWeight.cpp.

◆ GetAvailableEnergy()

Double_t MicroStat::StatWeight::GetAvailableEnergy ( ) const
inline

Definition at line 48 of file StatWeight.h.

◆ GetIndex()

Long64_t MicroStat::StatWeight::GetIndex ( ) const
inline

Definition at line 57 of file StatWeight.h.

◆ GetWeight()

Double_t MicroStat::StatWeight::GetWeight ( ) const
inline

Definition at line 44 of file StatWeight.h.

◆ init()

void MicroStat::StatWeight::init ( )
private

Default initialisations.

Definition at line 15 of file StatWeight.cpp.

◆ initGenerateEvent()

virtual void MicroStat::StatWeight::initGenerateEvent ( KVEvent partition)
pure virtual

◆ IsSortable()

Bool_t MicroStat::StatWeight::IsSortable ( ) const
inlinevirtual

Reimplemented from TObject.

Definition at line 63 of file StatWeight.h.

◆ ls()

void MicroStat::StatWeight::ls ( Option_t = "") const
virtual

Reimplemented from TObject.

Definition at line 48 of file StatWeight.cpp.

◆ nextparticleGenerateEvent()

virtual void MicroStat::StatWeight::nextparticleGenerateEvent ( Int_t  ,
KVNucleus  
)
pure virtual

◆ resetGenerateEvent()

virtual void MicroStat::StatWeight::resetGenerateEvent ( )
pure virtual

◆ setAvailableEnergy()

void MicroStat::StatWeight::setAvailableEnergy ( Double_t  e)
inlineprivate

Definition at line 34 of file StatWeight.h.

◆ SetIndex()

void MicroStat::StatWeight::SetIndex ( Long64_t  i)
inline

Definition at line 53 of file StatWeight.h.

◆ setWeight()

void MicroStat::StatWeight::setWeight ( Double_t  w)
inlineprivate

Definition at line 30 of file StatWeight.h.

◆ SetWeight()

virtual void MicroStat::StatWeight::SetWeight ( KVEvent e,
Double_t  E 
)
pure virtual

Member Data Documentation

◆ fEDisp

Double_t MicroStat::StatWeight::fEDisp
private

Definition at line 27 of file StatWeight.h.

◆ fIndex

Long64_t MicroStat::StatWeight::fIndex
private

Definition at line 26 of file StatWeight.h.

◆ fWeight

Double_t MicroStat::StatWeight::fWeight
private

Definition at line 25 of file StatWeight.h.