KaliVeda
Toolkit for HIC analysis
|
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 52 of file KVDBSystem.h.
#include <KVDBSystem.h>
Public Member Functions | |
KVDBSystem () | |
KVDBSystem (const Char_t *name) | |
virtual | ~KVDBSystem () |
Delete kinematics, target and associated runlist if they exist. | |
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 |
TString | GetBatchName () |
TString | GetBatchNameWithoutEnergy () |
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 |
TString | GetReactionNameWithoutEnergy () |
virtual void | GetRunList (KVNumberList &) const |
Fills the KVNumberList object with the list of all run numbers associated with this system. | |
KVUnownedList * | GetRuns () const |
Returns a sorted list of all the runs associated with this system. | |
KVTarget * | GetTarget () const |
Float_t | GetTargetThickness () const |
UInt_t | GetZbeam () const |
UInt_t | GetZproj () const |
UInt_t | GetZtarget () const |
.............. inline functions ............... | |
UInt_t | GetZtot () const |
Double_t | GetZVtot () const |
Bool_t | IsCollision () const |
retourne kTRUE, si le systeme est une collision ie projectile+cible | |
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 | |
void | SetRuns (KVNumberList &) |
void | SetTarget (KVTarget *targ) |
void | SetZbeam (UInt_t z) |
void | SetZtarget (UInt_t z) |
Public Member Functions inherited from KVDBRecord | |
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". | |
virtual KVRList * | GetLinks (const Char_t *key) const |
Returns the list of records linked to this record in table "key". | |
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". | |
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". | |
virtual void | SetNumber (Int_t n) |
virtual void | SetTable (const KVDBTable *table) |
Public Member Functions inherited from TFolder | |
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=nullptr) |
void | Browse (TBrowser *b) override |
void | Clear (Option_t *option="") override |
void | Copy (TObject &) const override |
virtual const char * | FindFullPathName (const char *name) const |
virtual const char * | FindFullPathName (const TObject *obj) const |
TObject * | FindObject (const char *name) const override |
TObject * | FindObject (const TObject *obj) const override |
virtual TObject * | FindObjectAny (const char *name) const |
TCollection * | GetListOfFolders () const |
TClass * | IsA () const override |
Bool_t | IsFolder () const override |
Bool_t | IsOwner () const |
void | ls (Option_t *option="") const override |
virtual Int_t | Occurence (const TObject *obj) const |
void | RecursiveRemove (TObject *obj) override |
virtual void | Remove (TObject *obj) |
void | SaveAs (const char *filename="", Option_t *option="") const override |
virtual void | SetOwner (Bool_t owner=kTRUE) |
void | Streamer (TBuffer &) override |
void | StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b) |
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 |
TObject * | Clone (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 |
TClass * | IsA () const override |
Bool_t | IsSortable () const override |
void | ls (Option_t *option="") const override |
TNamed & | operator= (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="") |
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=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 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) |
Bool_t | IsDestructed () const |
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 *vp) |
void | operator delete[] (void *ptr) |
void | operator delete[] (void *ptr, void *vp) |
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) |
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 | |
KVUnownedList * | _GetRuns () |
KVDBTable * | GetRunsTable () |
Private Attributes | |
UInt_t | fAbeam |
Mass of the projectile nucleus. | |
UInt_t | fAtarget |
Mass of the target nucleus. | |
KV2Body * | fCinema |
used to calculate kinematics of entrance channel | |
Float_t | fEbeam |
Energy of the beam in MeV/nucleon. | |
KVUnownedList * | fRunlist |
used to store pointer to sorted list of runs | |
Int_t | fRuns |
temporary variable used to stock number of associated runs | |
KVTarget * | fTarget |
physical target used for experiment run | |
UInt_t | fZbeam |
charge of the projectile nucleus | |
UInt_t | fZtarget |
charge of the target nucleus | |
Additional Inherited Members | |
Public Types inherited from TObject | |
enum | EDeprecatedStatusBits |
enum | EStatusBits |
Static Public Member Functions inherited from TFolder | |
static TClass * | Class () |
static const char * | Class_Name () |
static constexpr Version_t | Class_Version () |
static const char * | DeclFileName () |
Static Public Member Functions inherited from TNamed | |
static TClass * | Class () |
static const char * | Class_Name () |
static constexpr Version_t | Class_Version () |
static const char * | DeclFileName () |
Static Public Member Functions inherited from TObject | |
static TClass * | Class () |
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 TFolder | |
TCollection * | fFolders |
Bool_t | fIsOwner |
Protected Attributes inherited from TNamed | |
TString | fName |
TString | fTitle |
Protected Attributes inherited from TObject | |
kOnlyPrepStep | |
KVDBSystem::KVDBSystem | ( | ) |
Definition at line 26 of file KVDBSystem.cpp.
KVDBSystem::KVDBSystem | ( | const Char_t * | name | ) |
Definition at line 40 of file KVDBSystem.cpp.
|
virtual |
Delete kinematics, target and associated runlist if they exist.
Definition at line 58 of file KVDBSystem.cpp.
|
private |
Associate the given run with this system. If the run was previously associated with another system, this association will be removed.
Definition at line 465 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 434 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 185 of file KVDBSystem.cpp.
|
inline |
Definition at line 184 of file KVDBSystem.h.
|
inline |
Definition at line 194 of file KVDBSystem.h.
|
inline |
Definition at line 164 of file KVDBSystem.h.
|
inline |
Definition at line 174 of file KVDBSystem.h.
TString KVDBSystem::GetBatchName | ( | ) |
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 578 of file KVDBSystem.cpp.
TString KVDBSystem::GetBatchNameWithoutEnergy | ( | ) |
Gives name of system in compact form with all (unix-)illegal characters replaced by '_'. Can be used for naming batch jobs, files, etc. Only symbols of projectile and target are used, not the beam energy
Definition at line 611 of file KVDBSystem.cpp.
|
inline |
Definition at line 199 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 167 of file KVDBSystem.cpp.
|
inline |
Definition at line 204 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 151 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 80 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 140 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 135 of file KVDBSystem.cpp.
TString KVDBSystem::GetReactionNameWithoutEnergy | ( | ) |
Returns name of reaction without the beam energy i.e. just projectile + target.
E.g. for system "129Xe + natSn 50 MeV/A" we return "129Xe + natSn"
Definition at line 642 of file KVDBSystem.cpp.
|
virtual |
Fills the KVNumberList object with the list of all run numbers associated with this system.
Definition at line 234 of file KVDBSystem.cpp.
|
inline |
Returns a sorted list of all the runs associated with this system.
Definition at line 117 of file KVDBSystem.h.
|
private |
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 558 of file KVDBSystem.cpp.
|
inline |
Definition at line 79 of file KVDBSystem.h.
|
inline |
Definition at line 209 of file KVDBSystem.h.
|
inline |
Definition at line 179 of file KVDBSystem.h.
|
inline |
Definition at line 189 of file KVDBSystem.h.
|
inline |
.............. inline functions ...............
Definition at line 159 of file KVDBSystem.h.
|
inline |
Definition at line 169 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 119 of file KVDBSystem.cpp.
Bool_t KVDBSystem::IsCollision | ( | ) | const |
retourne kTRUE, si le systeme est une collision ie projectile+cible
Definition at line 105 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 302 of file KVDBSystem.cpp.
Reimplemented from KVDBRecord.
Definition at line 542 of file KVDBSystem.cpp.
Reimplemented from KVDBRecord.
Definition at line 519 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 508 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 494 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 480 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 259 of file KVDBSystem.cpp.
Definition at line 229 of file KVDBSystem.h.
Definition at line 219 of file KVDBSystem.h.
Definition at line 239 of file KVDBSystem.h.
Definition at line 234 of file KVDBSystem.h.
set number of runs associated to this system
Definition at line 133 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 393 of file KVDBSystem.cpp.
Definition at line 83 of file KVDBSystem.h.
Definition at line 224 of file KVDBSystem.h.
Definition at line 214 of file KVDBSystem.h.
|
private |
Mass of the projectile nucleus.
Definition at line 65 of file KVDBSystem.h.
|
private |
Mass of the target nucleus.
Definition at line 67 of file KVDBSystem.h.
|
private |
used to calculate kinematics of entrance channel
Definition at line 56 of file KVDBSystem.h.
|
private |
Energy of the beam in MeV/nucleon.
Definition at line 68 of file KVDBSystem.h.
|
private |
used to store pointer to sorted list of runs
Definition at line 60 of file KVDBSystem.h.
|
private |
temporary variable used to stock number of associated runs
Definition at line 61 of file KVDBSystem.h.
|
private |
physical target used for experiment run
Definition at line 58 of file KVDBSystem.h.
|
private |
charge of the projectile nucleus
Definition at line 64 of file KVDBSystem.h.
|
private |
charge of the target nucleus
Definition at line 66 of file KVDBSystem.h.