KaliVeda  1.13/01
Heavy-Ion Analysis Toolkit
List of all members | Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
MicroStat::mdweight Class Reference

Calculate molecular dynamics ensemble weights for events .

Examples
MicroStat_example.C, and MicroStat_example2.C.

Definition at line 19 of file mdweight.h.

Public Member Functions

 mdweight ()
 
virtual ~mdweight ()
 Destructor. More...
 
void initGenerateEvent (KVEvent *partition)
 
virtual void nextparticleGenerateEvent (Int_t, KVNucleus *)
 
void printKElist () const
 
void resetGenerateEvent ()
 
void SetAnisotropy (double a, double b)
 
virtual void SetWeight (KVEvent *e, Double_t E)
 
- Public Member Functions inherited from MicroStat::StatWeight
 StatWeight ()
 Default constructor. More...
 
virtual ~StatWeight ()
 Destructor. More...
 
Int_t Compare (const TObject *obj) const
 sort according to weight More...
 
void GenerateEvent (KVEvent *partition, KVEvent *event)
 
Double_t GetAvailableEnergy () const
 
Long64_t GetIndex () const
 
Double_t GetWeight () const
 
Bool_t IsSortable () const
 
void ls (Option_t *="") const
 
void SetIndex (Long64_t i)
 
- 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=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 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 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 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 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
 

Private Member Functions

TF1getKEdist (Int_t, Double_t)
 function used to draw random CosTheta values More...
 

Static Private Member Functions

static Double_t edist (Double_t *, Double_t *)
 

Private Attributes

Double_t A
 
Double_t B
 
Double_t eDisp
 
TF1 fCosTheta
 
KVHashList fKEDist
 
Double_t log10twelve
 
Double_t log2pi
 
Double_t massTot
 
Double_t massTot0
 
Double_t px
 
Double_t py
 
Double_t pz
 

Additional Inherited Members

- 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
 
- Protected Member Functions inherited from MicroStat::StatWeight
void setAvailableEnergy (Double_t e)
 
void setWeight (Double_t w)
 
- 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
 

#include <mdweight.h>

Inheritance diagram for MicroStat::mdweight:
Inheritance graph
[legend]

Constructor & Destructor Documentation

◆ mdweight()

MicroStat::mdweight::mdweight ( )

Definition at line 89 of file mdweight.cpp.

◆ ~mdweight()

MicroStat::mdweight::~mdweight ( )
virtual

Destructor.

Definition at line 109 of file mdweight.cpp.

Member Function Documentation

◆ edist()

Double_t MicroStat::mdweight::edist ( Double_t arg,
Double_t par 
)
staticprivate

energy distribution of particle in gas arg[0] = energy/available energy par[0] = number of particles in gas par[1] = mass ratio = massTot/(massTot-mPart)

Definition at line 19 of file mdweight.cpp.

◆ getKEdist()

TF1 * MicroStat::mdweight::getKEdist ( Int_t  N,
Double_t  R 
)
private

function used to draw random CosTheta values

find/create energy distribution for given number of particles N and mass ratio R.

Definition at line 42 of file mdweight.cpp.

◆ initGenerateEvent()

void MicroStat::mdweight::initGenerateEvent ( KVEvent partition)
virtual

Call before generating an event with StatWeight::GenerateEvent using the given partition and available energy

Implements MicroStat::StatWeight.

Examples
MicroStat_example.C, and MicroStat_example2.C.

Definition at line 153 of file mdweight.cpp.

◆ nextparticleGenerateEvent()

void MicroStat::mdweight::nextparticleGenerateEvent ( Int_t  N,
KVNucleus part 
)
virtual

Called by StatWeight::GenerateEvent when adding a particle to the event N is the number of particles still to add including this one

The algorithm was written by Daniel Cussol (LPC Caen, France).

Implements MicroStat::StatWeight.

Definition at line 188 of file mdweight.cpp.

◆ printKElist()

void MicroStat::mdweight::printKElist ( ) const
inline

Definition at line 50 of file mdweight.h.

◆ resetGenerateEvent()

void MicroStat::mdweight::resetGenerateEvent ( )
virtual

Called by StatWeight::GenerateEvent before generating another event using the same partition as the last

Implements MicroStat::StatWeight.

Examples
MicroStat_example.C, and MicroStat_example2.C.

Definition at line 171 of file mdweight.cpp.

◆ SetAnisotropy()

void MicroStat::mdweight::SetAnisotropy ( double  a,
double  b 
)
inline

Set anisotropy of particle momentum distribution a,b are maximum and minimum of P(cos theta) i.e. P(cos theta = +/-1) = a P(cos theta= 0) = b

Definition at line 37 of file mdweight.h.

◆ SetWeight()

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

Set available energy, E, and calculate statistical weight for this event

Implements MicroStat::StatWeight.

Examples
MicroStat_example.C, and MicroStat_example2.C.

Definition at line 120 of file mdweight.cpp.

Member Data Documentation

◆ A

Double_t MicroStat::mdweight::A
private

Definition at line 24 of file mdweight.h.

◆ B

Double_t MicroStat::mdweight::B
private

Definition at line 24 of file mdweight.h.

◆ eDisp

Double_t MicroStat::mdweight::eDisp
private

Definition at line 22 of file mdweight.h.

◆ fCosTheta

TF1 MicroStat::mdweight::fCosTheta
private

Definition at line 26 of file mdweight.h.

◆ fKEDist

KVHashList MicroStat::mdweight::fKEDist
private

Definition at line 23 of file mdweight.h.

◆ log10twelve

Double_t MicroStat::mdweight::log10twelve
private

Definition at line 21 of file mdweight.h.

◆ log2pi

Double_t MicroStat::mdweight::log2pi
private

Definition at line 21 of file mdweight.h.

◆ massTot

Double_t MicroStat::mdweight::massTot
private

Definition at line 22 of file mdweight.h.

◆ massTot0

Double_t MicroStat::mdweight::massTot0
private

Definition at line 22 of file mdweight.h.

◆ px

Double_t MicroStat::mdweight::px
private

Definition at line 22 of file mdweight.h.

◆ py

Double_t MicroStat::mdweight::py
private

Definition at line 22 of file mdweight.h.

◆ pz

Double_t MicroStat::mdweight::pz
private

Definition at line 22 of file mdweight.h.


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