KaliVeda
1.12/06
Heavy-Ion Analysis Toolkit
|
Database class used to store information on different colliding systems studied during an experiment.
A 'system' is a unique combination of projectile, target and beam energy.
Informations on Z & A of projectile and target and beam energy are here (GetZbeam(), GetZtarget(), etc.)
GetTarget() returns a pointer to a KVTarget object describing the physical characteristics of the target for this system : such an object can be used to calculate energy losses of incident charged particles etc. NOTE: if the current run being analysed corresponds to this system, the target of INDRA will have been set using this method. i.e. you can use gIndra->GetTarget() to obtain the KVTarget object of the current run.
GetKinematics() returns a pointer to a KV2Body object which can be used to obtain information on the kinematics of the colliding system. See the KV2Body class for more details. Some of the more commonly used kinematical quantities are also available directly here: GetPtot(), GetZVtot(), GetECM() etc.
Definition at line 51 of file KVDBSystem.h.
Public Member Functions | |
KVDBSystem () | |
KVDBSystem (const Char_t *name) | |
virtual | ~ KVDBSystem () |
void | AddRun (Int_t) |
void | AddRun (KVDBRecord *) |
Int_t | Compare (const TObject *) const |
UInt_t | GetAbeam () const |
UInt_t | GetAproj () const |
UInt_t | GetAtarget () const |
UInt_t | GetAtot () const |
virtual const Char_t * | GetBatchName () |
Float_t | GetEbeam () const |
Double_t | GetECM () const |
Float_t | GetEproj () const |
Double_t | GetEtot () const |
KV2Body * | GetKinematics () |
Int_t | GetNumberRuns () |
Double_t | GetPtot () const |
virtual void | GetRunList (KVNumberList &) const |
Fills the KVNumberList object with the list of all run numbers associated with this system. More... | |
KVList * | GetRuns () const |
Returns a sorted list of all the runs associated with this system. More... | |
KVTarget * | GetTarget () const |
Float_t | GetTargetThickness () const |
UInt_t | GetZbeam () const |
UInt_t | GetZproj () const |
UInt_t | GetZtarget () const |
.............. inline functions ............... More... | |
UInt_t | GetZtot () const |
Double_t | GetZVtot () const |
Bool_t | IsCollision () const |
retourne kTRUE, si le systeme est une collision ie projectile+cible More... | |
virtual void | Load (std::istream &) |
virtual void | ls (Option_t *option="*") const |
virtual void | Print (Option_t *option="") const |
void | RemoveAllRuns () |
void | RemoveRun (Int_t) |
void | RemoveRun (KVDBRecord *) |
virtual void | Save (std::ostream &) const |
void | SetAbeam (UInt_t a) |
void | SetAtarget (UInt_t a) |
void | SetBeam (UInt_t z, UInt_t a, Float_t energy) |
void | SetEbeam (Float_t energy) |
void | SetNumberRuns (Int_t n) |
set number of runs associated to this system More... | |
void | SetRuns (KVNumberList &) |
void | SetTarget (KVTarget *targ) |
void | SetZbeam (UInt_t z) |
void | SetZtarget (UInt_t z) |
![]() | |
KVDBRecord () | |
KVDBRecord (const Char_t *name, const Char_t *title="") | |
virtual | ~ KVDBRecord () |
virtual KVDBKey * | AddKey (const Char_t *name, const Char_t *title, Bool_t check=kTRUE) |
virtual Bool_t | AddKey (KVDBKey *key, Bool_t check=kTRUE) |
virtual Bool_t | AddLink (const Char_t *key_name, KVDBRecord *rec, Bool_t linkback=kTRUE) |
virtual KVDBKey * | GetKey (const Char_t *key) const |
virtual TList * | GetKeys () const |
virtual KVDBRecord * | GetLink (const Char_t *key, const Char_t *link) const |
Returns the record named "link" in the table named "key". More... | |
virtual KVRList * | GetLinks (const Char_t *key) const |
Returns the list of records linked to this record in table "key". More... | |
virtual Int_t | GetNumber () const |
virtual KVDBTable * | GetTable () const |
virtual void | RemoveAllLinks (const Char_t *key) |
Remove all links between this record and the records in the DB table"key_name". More... | |
virtual void | RemoveLink (const Char_t *key_name, KVDBRecord *rec, Bool_t linkback=kTRUE) |
Remove the link between this record and the record "rec" in the DB table"key_name". More... | |
virtual void | SetNumber (Int_t n) |
virtual void | SetTable (const KVDBTable *table) |
![]() | |
TFolder () | |
TFolder (const char *name, const char *title) | |
virtual | ~TFolder () |
virtual void | Add (TObject *obj) |
TFolder * | AddFolder (const char *name, const char *title, TCollection *collection=0) |
virtual void | Browse (TBrowser *b) |
virtual void | Clear (Option_t *option="") |
virtual void | Copy (TObject &) const |
virtual const char * | FindFullPathName (const char *name) const |
virtual const char * | FindFullPathName (const TObject *obj) const |
virtual TObject * | FindObject (const char *name) const |
virtual TObject * | FindObject (const TObject *obj) const |
virtual TObject * | FindObjectAny (const char *name) const |
TCollection * | GetListOfFolders () const |
Bool_t | IsFolder () const |
Bool_t | IsOwner () const |
virtual Int_t | Occurence (const TObject *obj) const |
virtual void | RecursiveRemove (TObject *obj) |
virtual void | Remove (TObject *obj) |
virtual void | SaveAs (const char *filename="", Option_t *option="") const |
virtual void | SetOwner (Bool_t owner=kTRUE) |
![]() | |
TNamed () | |
TNamed (const char *name, const char *title) | |
TNamed (const TNamed &named) | |
TNamed (const TString &name, const TString &title) | |
virtual | ~TNamed () |
virtual TObject * | Clone (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 |
TNamed & | operator= (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 |
![]() | |
TObject () | |
TObject (const TObject &object) | |
virtual | ~TObject () |
void | AbstractMethod (const char *method) const |
virtual void | AppendPad (Option_t *option="") |
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 TObject * | DrawClone (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 Option_t * | GetDrawOption () const |
virtual const char * | GetIconName () const |
virtual char * | GetObjectInfo (Int_t px, Int_t py) const |
virtual Option_t * | GetOption () 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 |
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 * | operator new (size_t sz) |
void * | operator new (size_t sz, void *vp) |
void * | operator new[] (size_t sz) |
void * | operator new[] (size_t sz, void *vp) |
TObject & | operator= (const TObject &rhs) |
virtual void | Paint (Option_t *option="") |
virtual void | Pop () |
virtual Int_t | Read (const char *name) |
void | ResetBit (UInt_t f) |
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 | |
KVList * | _GetRuns () |
KVDBTable * | GetRunsTable () |
![]() | |
virtual void | DoError (int level, const char *location, const char *fmt, va_list va) const |
void | MakeZombie () |
Protected Attributes | |
UInt_t | fAbeam |
Mass of the projectile nucleus. More... | |
UInt_t | fAtarget |
Mass of the target nucleus. More... | |
Float_t | fEbeam |
Energy of the beam in MeV/nucleon. More... | |
UInt_t | fZbeam |
charge of the projectile nucleus More... | |
UInt_t | fZtarget |
charge of the target nucleus More... | |
![]() | |
TString | fFullPathTable |
full path to parent table in folder structure More... | |
Int_t | fNumber |
number which can be used to identify/sort record More... | |
![]() | |
TCollection * | fFolders |
Bool_t | fIsOwner |
![]() | |
TString | fName |
TString | fTitle |
![]() | |
kOnlyPrepStep | |
Private Attributes | |
KV2Body * | fCinema |
used to calculate kinematics of entrance channel More... | |
KVList * | fRunlist |
used to store pointer to sorted list of runs More... | |
Int_t | fRuns |
temporary variable used to stock number of associated runs More... | |
KVTarget * | fTarget |
physical target used for experiment run More... | |
Additional Inherited Members | |
![]() | |
enum | EDeprecatedStatusBits |
enum | EStatusBits |
![]() | |
static Longptr_t | GetDtorOnly () |
static Bool_t | GetObjectStat () |
static void | SetDtorOnly (void *obj) |
static void | SetObjectStat (Bool_t stat) |
![]() | |
kBitMask | |
kCanDelete | |
kCannotPick | |
kHasUUID | |
kInconsistent | |
kInvalidObject | |
kIsOnHeap | |
kIsReferenced | |
kMustCleanup | |
kNoContextMenu | |
kNotDeleted | |
kObjInCanvas | |
kOverwrite | |
kSingleKey | |
kWriteDelete | |
kZombie | |
#include <KVDBSystem.h>
KVDBSystem::KVDBSystem | ( | ) |
Definition at line 25 of file KVDBSystem.cpp.
KVDBSystem::KVDBSystem | ( | const Char_t * | name | ) |
Definition at line 39 of file KVDBSystem.cpp.
|
virtual |
|
protected |
Associate the given run with this system. If the run was previously associated with another system, this association will be removed.
Definition at line 464 of file KVDBSystem.cpp.
void KVDBSystem::AddRun | ( | KVDBRecord * | rec | ) |
Associate the given run with this system. If the run was previously associated with another system, this association will be removed.
Definition at line 433 of file KVDBSystem.cpp.
Function used to sort lists of systems. Systems are sorted according to the number of the first run in the (sorted) list of runs associated to the system. Systems with lower first run numbers appear earlier in the list.
Reimplemented from KVDBRecord.
Definition at line 184 of file KVDBSystem.cpp.
|
inline |
Definition at line 181 of file KVDBSystem.h.
|
inline |
Definition at line 191 of file KVDBSystem.h.
|
inline |
Definition at line 161 of file KVDBSystem.h.
|
inline |
Definition at line 171 of file KVDBSystem.h.
|
virtual |
Gives name of system in compact form with all (unix-)illegal characters replaced by '_'. Can be used for naming batch jobs, files, etc.
Definition at line 577 of file KVDBSystem.cpp.
|
inline |
Definition at line 196 of file KVDBSystem.h.
Double_t KVDBSystem::GetECM | ( | ) | const |
Returns total available (CM) kinetic energy of entrance channel corresponding to system Units are MeV
Definition at line 166 of file KVDBSystem.cpp.
|
inline |
Definition at line 201 of file KVDBSystem.h.
Double_t KVDBSystem::GetEtot | ( | ) | const |
Returns total (mass + kinetic) energy of entrance channel corresponding to system Units are MeV
Definition at line 150 of file KVDBSystem.cpp.
KV2Body * KVDBSystem::GetKinematics | ( | ) |
Create (if it doesn't already exist) and return pointer to a KV2Body object initialised with the entrance channel corresponding to this system. Use this to obtain information such as the recoil velocity of the CM, available energy, etc. (see KV2Body).
If no projectile and/or target are defined for the system, we return 0x0.
Definition at line 79 of file KVDBSystem.cpp.
|
inline |
get number of runs previously set by SetNumberRuns. WARNING: for total number of runs associated to this system in database, use GetRuns()->GetEntries()
Definition at line 139 of file KVDBSystem.h.
Double_t KVDBSystem::GetPtot | ( | ) | const |
Returns momentum component parallel to beam axis of projectile nucleus in laboratory frame Units are MeV/c
Definition at line 134 of file KVDBSystem.cpp.
|
virtual |
Fills the KVNumberList object with the list of all run numbers associated with this system.
Definition at line 233 of file KVDBSystem.cpp.
|
inline |
Returns a sorted list of all the runs associated with this system.
Definition at line 116 of file KVDBSystem.h.
|
protected |
Deduce path to runs table in database from full path to parent table of this record. The systems are stored in a table called "Systems" The runs are stored in a table called "Runs" Therefore if we take the full path to the Systems table and replace Systems with Runs, we can then use gROOT->FindObject to get the pointer to the Runs table.
Definition at line 557 of file KVDBSystem.cpp.
|
inline |
Definition at line 78 of file KVDBSystem.h.
|
inline |
Definition at line 206 of file KVDBSystem.h.
|
inline |
Definition at line 176 of file KVDBSystem.h.
|
inline |
Definition at line 186 of file KVDBSystem.h.
|
inline |
.............. inline functions ...............
Definition at line 156 of file KVDBSystem.h.
|
inline |
Definition at line 166 of file KVDBSystem.h.
Double_t KVDBSystem::GetZVtot | ( | ) | const |
Returns product of atomic number and velocity component parallel to beam axis of projectile nucleus in laboratory frame Units are cm/ns (velocity units)
Definition at line 118 of file KVDBSystem.cpp.
Bool_t KVDBSystem::IsCollision | ( | ) | const |
retourne kTRUE, si le systeme est une collision ie projectile+cible
Definition at line 104 of file KVDBSystem.cpp.
|
virtual |
Read and set informations on system in the format used in Systems.dat files:
+155Gd + 238U 36 MeV/A '+' followed by name of system 155 64 238 92 36.0 Aproj Zproj Atarg Ztarg Ebeam Target: 3 0.0 target with 3 layers, angle 0 degrees C 0.02 1st layer : carbon, 20 ug/cm2 238U 0.1 2nd layer : uranium-238, 100 ug/cm2 C 0.023 3rd layer : carbon, 23 ug/cm2 Runs: 770-804 list of runs in KVNumberList format
Definition at line 301 of file KVDBSystem.cpp.
Reimplemented from KVDBRecord.
Definition at line 541 of file KVDBSystem.cpp.
Reimplemented from KVDBRecord.
Definition at line 518 of file KVDBSystem.cpp.
void KVDBSystem::RemoveAllRuns | ( | ) |
Unassociate all runs from this system. Cross-reference links to this system are removed from the runs at the same time.
Definition at line 507 of file KVDBSystem.cpp.
Unassociate the given run from this system. Cross-reference link to this system is removed from the run at the same time.
Definition at line 493 of file KVDBSystem.cpp.
void KVDBSystem::RemoveRun | ( | KVDBRecord * | run | ) |
Unassociate the given run from this system. Cross-reference link to this system is removed from the run at the same time.
Definition at line 479 of file KVDBSystem.cpp.
|
virtual |
Write informations on system in the format used in Systems.dat files:
+155Gd + 238U 36 MeV/A '+' followed by name of system 155 64 238 92 36.0 Aproj Zproj Atarg Ztarg Ebeam Target: 3 0.0 target with 3 layers, angle 0 degrees C 0.02 1st layer : carbon, 20 g/cm2 238U 0.1 2nd layer : uranium-238, 100 g/cm2 C 0.023 3rd layer : carbon, 23 g/cm2 Runs: 770-804 list of runs in KVNumberList format
Definition at line 258 of file KVDBSystem.cpp.
Definition at line 226 of file KVDBSystem.h.
Definition at line 216 of file KVDBSystem.h.
Definition at line 236 of file KVDBSystem.h.
Definition at line 231 of file KVDBSystem.h.
set number of runs associated to this system
Definition at line 132 of file KVDBSystem.h.
void KVDBSystem::SetRuns | ( | KVNumberList & | rl | ) |
Associate this system with the runs in the list Any previously associated runs are first removed (links in the runs will be removed too)
Definition at line 392 of file KVDBSystem.cpp.
Definition at line 82 of file KVDBSystem.h.
Definition at line 221 of file KVDBSystem.h.
Definition at line 211 of file KVDBSystem.h.
|
protected |
Mass of the projectile nucleus.
Definition at line 64 of file KVDBSystem.h.
|
protected |
Mass of the target nucleus.
Definition at line 66 of file KVDBSystem.h.
|
private |
used to calculate kinematics of entrance channel
Definition at line 55 of file KVDBSystem.h.
|
protected |
Energy of the beam in MeV/nucleon.
Definition at line 67 of file KVDBSystem.h.
|
private |
used to store pointer to sorted list of runs
Definition at line 59 of file KVDBSystem.h.
|
private |
temporary variable used to stock number of associated runs
Definition at line 60 of file KVDBSystem.h.
|
private |
physical target used for experiment run
Definition at line 57 of file KVDBSystem.h.
|
protected |
charge of the projectile nucleus
Definition at line 63 of file KVDBSystem.h.
|
protected |
charge of the target nucleus
Definition at line 65 of file KVDBSystem.h.