(UNKNOWN PRODUCT) » INCLUDE » PStaticData

class PStaticData: public TObject

  Pluto Data Wrapper
  Provides a lot of helpfull wrapper function to deal with the data
  base.


                             Author:  M.A. Kagarlis
                             Written: 31/01/99
                             Revised: 24/05/2004 R.H.
                             Reimplemented: 3/5/2007 IF


Function Members (Methods)

public:
virtual~PStaticData()
voidTObject::AbstractMethod(const char* method) const
intAddAlias(const char* old_name, const char* new_name)
intAddDecay(int* ipid, int n)
intAddDecay(const char* name, const char* parent, const char* daughters, double br)
intAddDecay(int didx, const char* name, const char* parent, const char* daughters, double br)
intAddParticle(int pid, const char* name, double mass)
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTObject::Browse(TBrowser* b)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTObject::Clear(Option_t* = "")
voidclearFreezeOut()
virtual TObject*TObject::Clone(const char* newname = "") const
virtual Int_tTObject::Compare(const TObject* obj) const
virtual voidTObject::Copy(TObject& object) const
virtual voidTObject::Delete(Option_t* option = "")MENU
voidDisableAllChannelBR(const char* parent)
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
virtual voidTObject::Dump() constMENU
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
voidFreezeDecayBR(Int_t id, Int_t brn)
intGetAliasParent(const char* alias_name)
intGetAliasParent(int key)
Double_t*GetBatchValue(const char* name, Int_t make_val = 1)
Double_tGetDecayBR(Int_t id)
intGetDecayBRFlag(int didx)
doubleGetDecayEmin(const int& idx)
intGetDecayIdx(int* pid, int n)
intGetDecayIdx(const char* parent, const char* daughters)
intGetDecayIdxByKey(int key)
intGetDecayKey(const int& id)
intGetDecayKey(int* pid, int n)
voidGetDecayMode(const int, int* n)
voidGetDecayModeByKey(const int, int* n)
const char*GetDecayName(Int_t id)
const char*GetDecayNameByKey(Int_t key)
intGetDecayNProducts(const int&)
intGetDecayNProducts(const char*)
intGetDecayNProductsByKey(const int& key)
intGetDecayParent(const int&)
intGetDecayParentByKey(const int&)
Double_tGetDecayPartialWidth(Int_t id)
Double_tGetDecayPartialWidthByKey(Int_t id)
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
Double_tGetEnhanceChannelBR(const int id)
boolGetFreezeOut()
intGetHDepth(const int&)
virtual const char*TObject::GetIconName() const
virtual const char*TObject::GetName() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
intGetParticleBaryon(const int& id)
intGetParticleCharge(const int& id)
intGetParticleCharge(const char* id)
doubleGetParticleEmin(const int& id)
intGetParticleID(const char* id, int warn = 1)
intGetParticleIDByKey(int key)
intGetParticleIDbyKF(const int kf)
intGetParticleIsospin(const int& id)
intGetParticleIsospin(const char* id)
intGetParticleKey(const int& id)
intGetParticleKey(const char* id)
intGetParticleKF(const int Id)
intGetParticleLepton(const int& id)
doubleGetParticleLMass(const int& id)
doubleGetParticleLMass(const char* id)
doubleGetParticleMass(const int& id)
doubleGetParticleMass(const char* id)
doubleGetParticleMassByKey(const int& id)
const char*GetParticleName(const int& id)
intGetParticleNChannels(const int& id)
intGetParticleNChannels(const char* id)
intGetParticleNChannelsByKey(int id)
intGetParticleParity(const int& id)
intGetParticleParity(const char* id)
intGetParticleSpin(const int& id)
intGetParticleSpin(const char* id)
doubleGetParticleTotalWidth(const int& id)
doubleGetParticleTotalWidth(const char* id)
doubleGetParticleTotalWidthByKey(const int& id)
doubleGetParticleUMass(const int& id)
doubleGetParticleUMass(const char* id)
PMesh*GetPWidthMesh(const int&)
intGetPWidx(const int&)
intGetSecondaryKey(int key, int defkey)
intGetTDepth(const int&)
TF1*GetTF1(const int&)
virtual const char*TObject::GetTitle() const
PMesh*GetTWidthMesh(const int&)
intGetTWidx(const int&)
virtual UInt_tTObject::GetUniqueID() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTObject::Hash() const
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual voidTObject::Inspect() constMENU
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
Int_tIsDecayHadronic(Int_t didx)
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
Bool_tTObject::IsOnHeap() const
intIsParticle(const int& id, const char* name)
intIsParticleHadron(const int& id)
intIsParticleMeson(const int& id)
intIsParticleValid(const int& id)
intIsParticleValid(const char* n)
virtual Bool_tTObject::IsSortable() const
Bool_tTObject::IsZombie() const
virtual voidTObject::ls(Option_t* option = "") const
intMakeDirectoryEntry(const char* name, const char* n, const char* l, const char* ename)
voidTObject::MayNotUse(const char* method) const
boolNormParticleBR(Int_t id)
boolNormParticleBRbyKey(Int_t key)
virtual Bool_tTObject::Notify()
voidTObject::Obsolete(const char* method, const char* asOfVers, const char* removedFromVers) const
voidTObject::operator delete(void* ptr)
voidTObject::operator delete(void* ptr, void* vp)
voidTObject::operator delete[](void* ptr)
voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
PStaticData&operator=(const PStaticData&)
PStaticData&operator=(PStaticData&&)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidTObject::Print(Option_t* option = "") const
voidPrintDecayByKey(int key)
voidPrintParticle(int pid)
voidPrintParticle(const char* id)
voidPrintParticleByKey(int pid)
PStaticData()
PStaticData(PStaticData&&)
PStaticData(const PStaticData&)
virtual Int_tTObject::Read(const char* name)
virtual voidTObject::RecursiveRemove(TObject* obj)
voidTObject::ResetBit(UInt_t f)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTObject::SavePrimitive(ostream& out, Option_t* option = "")
boolSetBatchValue(const char* name, Double_t val)
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
boolSetDecayBR(int didx, double br, int mode)
boolSetDecayBR(const char* parent, const char* daughters, double br, int mode)
boolSetDecayBRByKey(int key, double br, int mode)
voidSetDecayBRFlag(int didx, int flag)
voidSetDecayEmin(const int& idx, const double v)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
voidSetEnhanceChannelBR(const int id, const double factor)
voidSetEnhanceChannelBR(const char* parent, const char* decay, Double_t factor = 1.)
voidSetFreezeOut()
voidSetHDepth(const int&, const int&)
static voidTObject::SetObjectStat(Bool_t stat)
voidSetParticleBaryon(const char* id, Int_t num = 1)
voidSetParticleCharge(const char* id, Int_t charge)
voidSetParticleEmin(const int& id, const double v)
voidSetParticleIsospin(const char* id, Int_t isospin)
voidSetParticleLepton(const char* id, Int_t num = 1)
voidSetParticleLMass(const int& id, const double v)
voidSetParticleLMass(const char* id, const double v)
voidSetParticleMass(Int_t id, Float_t mass)
voidSetParticleMass(const char* id, Float_t mass)
voidSetParticleMeson(const char* id, Int_t num = 1)
voidSetParticleParity(const char* id, Int_t parity)
voidSetParticleSpin(const char* id, Int_t spin)
voidSetParticleTotalWidth(Int_t id, Float_t wid)
voidSetParticleTotalWidth(const char* id, Float_t wid)
voidSetParticleUMass(const int& id, const double v)
voidSetParticleUMass(const char* id, const double v)
voidSetPWidthMesh(const int&, PMesh* mesh)
voidSetPWidx(const int&, const int&)
voidSetTDepth(const int&, const int&)
voidSetTF1(const int&, TF1* mesh)
voidSetTotalNormalization(char* p, int flag = 1)
voidSetTWidthMesh(const int&, PMesh* mesh)
voidSetTWidx(const int&, const int&)
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidShowMembers(TMemberInspector& insp) const
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
virtual voidTObject::UseCurrentStyle()
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const
protected:
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
voidTObject::MakeZombie()

Data Members

public:
static TObject::(anonymous)TObject::kBitMask
static TObject::EStatusBitsTObject::kCanDelete
static TObject::EStatusBitsTObject::kCannotPick
static TObject::EStatusBitsTObject::kHasUUID
static TObject::EStatusBitsTObject::kInvalidObject
static TObject::(anonymous)TObject::kIsOnHeap
static TObject::EStatusBitsTObject::kIsReferenced
static TObject::EStatusBitsTObject::kMustCleanup
static TObject::EStatusBitsTObject::kNoContextMenu
static TObject::(anonymous)TObject::kNotDeleted
static TObject::EStatusBitsTObject::kObjInCanvas
static TObject::(anonymous)TObject::kOverwrite
static TObject::(anonymous)TObject::kSingleKey
static TObject::(anonymous)TObject::kWriteDelete
static TObject::(anonymous)TObject::kZombie
private:
Int_tbaryon_param
Int_tbr_param
Int_tbrflag_param
Int_tbrorig_param
const char*c_result
Int_tcharge_param
Int_tcount_param
Int_td1_param
Int_td2_param
Int_td3_param
Int_td4_param
Int_td5_param
Int_td6_param
Int_td7_param
Double_t*d_result
Int_tdefkey_param
Int_tdidx_param
Int_tenhance_br_param
Int_tethreshold_param
Bool_tfreeze
Int_thdepth_param
Int_t*i_result
Int_tispin_param
Int_tlalias_param
Int_tlepton_param
Int_tlmass_param
Int_tmass_param
Int_tmesh_param
Int_tmeson_param
Int_tnalias_param
Int_tname_param
Int_tparity_param
Int_tpid_param
Int_tpkf_param
Int_tpnmodes_param
Int_tppid_param
Int_tspin_param
Double_t*system_alloc_verbosity
TObject*t_result
Int_ttdepth_param
Int_ttf1_param
Int_tumass_param
Int_twidth_param
Int_twidx_param

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

PStaticData()
int MakeDirectoryEntry(const char* name, const char* n, const char* l, const char* ename)
 Adds an entry of the form "dir"
 if entry/dir is existing, the key w/o warning is returned
 n and l are the data base columns of the list
Double_t * GetBatchValue(const char* name, Int_t make_val = 1)
int GetParticleID(const char* id, int warn = 1)
 pid by name
const char * GetParticleName(const int& id)
 name by pid
int GetParticleIDByKey(int key)
 pid by key
 -1 if unvalid
int GetParticleKey(const int& id)
 data base key by pid
int GetDecayKey(const int& id)
 data base key by pid
int IsParticle(const int& id, const char* name)
 does pid correspond to given name?
int IsParticleValid(const int& id)
 check id range by id
 Returns a "1" in any case if data base is filled with id
 PFireball particles return 0;
int IsParticleValid(const char* n)
 check id range by name
int AddAlias(const char* old_name, const char* new_name)
adds an alias to primary_key, ret value is alias key
int GetAliasParent(const char* alias_name)
int GetAliasParent(int key)
int GetSecondaryKey(int key, int defkey)
int AddParticle(int pid, const char* name, double mass)
void PrintParticle(int pid)
void PrintParticleByKey(int pid)
int GetParticleKF(const int Id)
 return Pythia6 kf code
int GetParticleIDbyKF(const int kf)
 return Id corresponding to Pythia6 kf code
int IsParticleMeson(const int& id)
 is meson?, by pid
int IsParticleHadron(const int& id)
 is hadron?, by pid
int GetParticleBaryon(const int& id)
 baryon number by pid
void SetParticleBaryon(const char* id, Int_t num = 1)
 baryon number by name
void SetParticleMeson(const char* id, Int_t num = 1)
 set meson number
void SetParticleLepton(const char* id, Int_t num = 1)
void SetParticleCharge(const char* id, Int_t charge)
void SetParticleSpin(const char* id, Int_t spin)
void SetParticleIsospin(const char* id, Int_t isospin)
void SetParticleParity(const char* id, Int_t parity)
int GetParticleLepton(const int& id)
 lepton number by pid
int GetParticleCharge(const int& id)
 charge by pid
int GetParticleCharge(const char* id)
 charge by name
int GetParticleSpin(const int& id)
 2 x J by pid
int GetParticleSpin(const char* id)
 2 x J by name
int GetParticleIsospin(const int& id)
 2 x I by pid
int GetParticleIsospin(const char* id)
 2 x I by name
int GetParticleParity(const int& id)
 parity (0 if irrelevant)
int GetParticleParity(const char* id)
 parity (0 if irrelevant)
double GetParticleMass(const int& id)
 mass by id
double GetParticleMass(const char* id)
 mass by name
double GetParticleMassByKey(const int& id)
 mass by key
void SetParticleMass(Int_t id, Float_t mass)
reset mass
void SetParticleMass(const char* id, Float_t mass)
reset mass
const char * GetDecayName(Int_t id)
const char * GetDecayNameByKey(Int_t key)
void SetParticleTotalWidth(const char* id, Float_t wid)
void SetParticleTotalWidth(Int_t id, Float_t wid)
int GetTWidx(const int& )
 width flag from index
 0: static width only
 1: use dynamic width
-1: Disabled
int GetPWidx(const int& )
 width flag from index
 0: static width only
 1: use dynamic width
-1: Disabled
void SetTWidx(const int& , const int& )
 width flag from index
 0: static width only
 1: use dynamic width
void SetPWidx(const int& , const int& )
 width flag from index
 0: static width only
 1: use dynamic width
void SetTWidthMesh(const int& , PMesh* mesh)
PMesh * GetTWidthMesh(const int& )
void SetPWidthMesh(const int& , PMesh* mesh)
PMesh * GetPWidthMesh(const int& )
void SetTF1(const int& , TF1* mesh)
TF1 * GetTF1(const int& )
Double_t GetDecayEmin(const int& idx)
int GetDecayBRFlag(int didx)
void SetDecayBRFlag(int didx, int flag)
Set the BR flag for the "didx", thus the total normalization
is used (when flag=1) instead of the pole mass
void SetTotalNormalization(char* p, int flag = 1)
Wrapper function which enables the total normalization
for a particle "p"
void SetDecayEmin(const int& idx, const double v)
Double_t GetParticleEmin(const int& id)
void SetParticleEmin(const int& id, const double v)
Double_t GetParticleLMass(const int& id)
void SetParticleLMass(const char* id, const double v)
Double_t GetParticleUMass(const int& id)
void SetParticleUMass(const char* id, const double v)
int GetTDepth(const int& )
void SetTDepth(const int& , const int& )
int GetHDepth(const int& )
void SetHDepth(const int& , const int& )
Double_t GetDecayBR(Int_t id)
Double_t GetDecayPartialWidth(Int_t id)
Double_t GetDecayPartialWidthByKey(Int_t id)
bool SetDecayBR(int didx, double br, int mode)
Mode: see SetDecayBR(const char *parent, const char *daughters)
bool SetDecayBRByKey(int key, double br, int mode)
Mode: see SetDecayBR(const char *parent, const char *daughters)
bool SetDecayBR(const char* parent, const char* daughters, double br, int mode)
 Resets the decay branching ratio of an existing decay
 Handle this functon with care!
 Do not use this function to change the weighting etc.
 because the change of the decay b.r. will affect the
 shape of the parent resonance

 If you have really physics arguments to change the b.r.
 (e.g. update of PDG values)
 you *must* use this function at the very beginning of your macro,
 but at least before the "GetWidth" is called

 Mode flag:
 0: Add the new b.r. to the existing ones + re-weighting
 1: No re-weighting (in this case br must be <1.)
get parent key
bool NormParticleBR(Int_t id)
 normalize branching ratios for particle id
TODO: check if this works
bool NormParticleBRbyKey(Int_t key)
 normalize branching ratios for particle id
void FreezeDecayBR(Int_t id, Int_t brn)
int GetParticleNChannels(const int& id)
 number of decay channels by pid
int GetParticleNChannels(const char* id)
 number of decay channels by name
int GetParticleNChannelsByKey(int id)
 number of decay channels by key
int IsDecayHadronic(Int_t didx)
int AddDecay(int* ipid, int n)
For internal use, e.g. PChannel
int AddDecay(int didx, const char* name, const char* parent, const char* daughters, double br)
make new decay with decay index "didx"
the didx should be a free number (or set to -1 for auto-alloc)
parent particle is "parent", which must be existing
"name" is the new unique string identifier of the decay
daughers is an particle array of the format "p1,p2,p3,..."
br is the branching ratio
all branching ratios are re-normalized
void PrintDecayByKey(int key)
int GetDecayNProductsByKey(const int& key)
 retrieve number of products by mode key
int GetDecayNProducts(const int& )
 retrieve number of products by mode index
int GetDecayNProducts(const char* )
 number of products by name
int GetDecayParent(const int& )
int GetDecayParentByKey(const int& )
int GetDecayIdxByKey(int key)
 return value is -1 on failure
int GetDecayIdx(int* pid, int n)
 decay-mode index from parent and product ids;
 n is the size of the array
 arguments: pointer to pid array of parent & products,
            number of products
int GetDecayIdx(const char* parent, const char* daughters)
get parent key
int GetDecayKey(int* pid, int n)
 decay-mode key from parent and product ids;
 n is the size of the daughters array
 arguments: pointer to pid array of parent & products,
            number of products
void GetDecayMode(const int , int* n)
 Retrieves the decay mode info for a given channel n.

 ARGUMENTS: 1. decay-mode index (PPosition),
 2. pointer to existing integer array (must have large
 enough dimension), 3. pointer to existing double (optional).

 RETURNS: int array with N, i_1, i_2,..., i_N, where N is
 the number of products for the decay mode with index n,
 followed by the pids of these products

 N should contain the maximum number of the array-size of before
 calling this function
 if the maximum is exceeded, or any other error occurs, N is set to 0
void GetDecayModeByKey(const int , int* n)
same as above, but by data base key
double GetParticleTotalWidth(const int& id)
 PWidth[id]
double GetParticleTotalWidthByKey(const int& id)
 PWidth[id]
void SetEnhanceChannelBR(const int id, const double factor)
void SetEnhanceChannelBR(const char* parent, const char* decay, Double_t factor = 1.)
void DisableAllChannelBR(const char* parent)
Double_t GetEnhanceChannelBR(const int id)
PStaticData()
void SetFreezeOut(void)
Freeze out -> Important to check this
void clearFreezeOut(void)
re-loop PStdModels
bool GetFreezeOut(void)
bool SetBatchValue(const char* name, Double_t val)
int GetParticleKey(const int& id)
void PrintParticle(int pid)
double GetParticleTotalWidth(const int& id)
double GetParticleLMass(const int& id)
Change particle range:
double GetParticleUMass(const int& id)
void SetParticleLMass(const int& id, const double v)
void SetParticleUMass(const int& id, const double v)
int AddDecay(int didx, const char* name, const char* parent, const char* daughters, double br)