KaliVeda
Toolkit for HIC analysis
|
Handles a set of Tassan-Got functional-based identifications (KVTGID objects) for use by a KVIDTelescope.
IdentZ and IdentA are, respectively, Z and A identification procedures. Their purpose is to retrieve the correct KVTGID identification object from the manager's list, and then use KVTGID::GetIdentification.
Status code for last identification with IdentZ and IdentA can be obtained using GetStatus/GetStatusString.
Definition at line 41 of file KVTGIDManager.h.
#include <KVTGIDManager.h>
Public Types | |
enum | ETGIDMStatus { kStatus_OK , kStatus_noTGID , kStatus_OutOfIDRange , kStatus_ZtooSmall , kStatus_ZtooLarge , kCurrentStatus } |
status codes for IdentZ/IdentA More... | |
Public Member Functions | |
KVTGIDManager () | |
Default constructor. | |
virtual | ~KVTGIDManager () |
virtual void | AddTGID (KVTGID *) |
Double_t | GetIDmax () const |
const KVList & | GetListOfIDFunctions () const |
virtual Int_t | GetStatus () const |
virtual const Char_t * | GetStatusString (ETGIDMStatus s=kCurrentStatus) const |
virtual KVTGID * | GetTGID (const Char_t *idt_name, const Char_t *id_type, const Char_t *grid_type) |
KVTGID * | GetTGID (const Char_t *name) |
Retrieve the identification object with name. | |
virtual KVTGIDGrid * | GetTGIDGrid (const Char_t *idt_name, const Char_t *id_type, const Char_t *grid_type, Double_t xmax, Double_t xmin=0., Int_t ID_min=0, Int_t ID_max=0, Int_t npoints=100, Bool_t logscale=kFALSE) |
virtual KVTGIDGrid * | GetTGIDGrid (const Char_t *tgid_name, Double_t xmax, Double_t xmin=0., Int_t ID_min=0, Int_t ID_max=0, Int_t npoints=100, Bool_t logscale=kFALSE) |
virtual KVTGIDGrid * | GetTGIDGrid (KVTGID *tgid, Double_t xmax, Double_t xmin=0., Int_t ID_min=0, Int_t ID_max=0, Int_t npoints=100, Bool_t logscale=kFALSE) |
const Char_t * | GetTGIDName (const Char_t *idt_name, const Char_t *id_type, const Char_t *grid_type) |
virtual Double_t | IdentA (const Char_t *, Double_t, Double_t, Double_t &funLTG, const Char_t *grid_type, Int_t Z) |
virtual Double_t | IdentZ (const Char_t *, Double_t, Double_t, Double_t &funLTG, const Char_t *grid_type) |
virtual void | RemoveAllTGID () |
Delete all identification objects. | |
virtual void | RemoveTGID (const Char_t *name) |
Delete the identification object with name. | |
void | SetStatus (ETGIDMStatus s) |
Private Attributes | |
Double_t | fID_max |
maximum ID of all TGID objects | |
KVList | fIDList |
KVTGID objects for identifications. | |
Int_t | fStatus |
transient member used to hold status of last call to IdentZ/IdentA | |
status codes for IdentZ/IdentA
Enumerator | |
---|---|
kStatus_OK | |
kStatus_noTGID | |
kStatus_OutOfIDRange | |
kStatus_ZtooSmall | |
kStatus_ZtooLarge | |
kCurrentStatus |
Definition at line 50 of file KVTGIDManager.h.
KVTGIDManager::KVTGIDManager | ( | ) |
Default constructor.
Definition at line 20 of file KVTGIDManager.cpp.
|
virtual |
Definition at line 32 of file KVTGIDManager.cpp.
Add an identification object to the list. It will be deleted when the KVTGIDManager is deleted.
Reimplemented in KVRTGIDManager.
Definition at line 43 of file KVTGIDManager.cpp.
|
inline |
Definition at line 76 of file KVTGIDManager.h.
|
inline |
Definition at line 72 of file KVTGIDManager.h.
|
inlinevirtual |
Definition at line 99 of file KVTGIDManager.h.
|
virtual |
Returns explanatory message for status code 's' If no code argument is given, the status string corresponds to the current value of GetStatus(), i.e. only valid if an identification has just been performed
Definition at line 384 of file KVTGIDManager.cpp.
|
virtual |
Retrieve the identification object using: idt_name = name of ID telescope id_type = type of identification ("Z", "A", "A_for_Z=3", etc.) grid_type = type of identification grid ("GG", "PG1", etc.)
Reimplemented in KVRTGIDManager.
Definition at line 108 of file KVTGIDManager.cpp.
Retrieve the identification object with name.
Definition at line 57 of file KVTGIDManager.cpp.
|
virtual |
Generates and returns a pointer to a KVIDGrid object permitting to visualise the effective identification lines represented by the Tassan-Got functional of ID telescope "idt_name", of identification type "id_type", and identification grid type "grid_type". The KVIDGrid object must be deleted by the user. See KVTGID::MakeIDGrid for meaning of other arguments.
Definition at line 359 of file KVTGIDManager.cpp.
|
virtual |
Generates and returns a pointer to a KVIDGrid object permitting to visualise the effective identification lines represented by the Tassan-Got functional "tgid_name". The KVIDGrid object must be deleted by the user. See KVTGID::MakeIDGrid for meaning of other arguments.
Definition at line 336 of file KVTGIDManager.cpp.
|
virtual |
Generates and returns a pointer to a KVIDGrid object permitting to visualise the effective identification lines represented by the Tassan-Got functional "tgid". The KVIDGrid object must be deleted by the user. See KVTGID::MakeIDGrid for meaning of other arguments.
Definition at line 311 of file KVTGIDManager.cpp.
const Char_t * KVTGIDManager::GetTGIDName | ( | const Char_t * | idt_name, |
const Char_t * | id_type, | ||
const Char_t * | grid_type | ||
) |
Return unique name for KVTGID object using: idt_name = name of ID telescope id_type = type of identification ("Z", "A", "A_for_Z=3", etc.) grid_type = type of identification grid ("GG", "PG1", etc.)
Definition at line 128 of file KVTGIDManager.cpp.
|
virtual |
Get A identification (we already know Z) for ID telescope idt using grid "grid_type". The "signal_type" argument is passed to GetIDMapX/Y(signal_type), in case "grid_type" and "signal_type" are not exactly the same.
funLTG is the ABSOLUTE value of the Tassan-Got function for the Z and the calculated A i.e. in an ideal world it should equal zero. This gives an idea of the quality of the identification. funLTG = 0 -> identification parfaite funLTG = -1 -> no identification
Definition at line 225 of file KVTGIDManager.cpp.
|
virtual |
Identification in Z of particle for ID telescope idt using Tassan-Got functional corresponding to grid of type "grid_type". The "signal_type" argument is passed to GetIDMapX/Y(signal_type), in case "grid_type" and "signal_type" are not exactly the same.
funLTG gives distance to identification line (absolute value of LTG function for the Z we find) funLTG = 0 -> identification parfaite funLTG = -1 -> no identification If the point to identify is outside of the range of the identification for this 'grid_type' (not between Zmin and Zmax) then we return -1 and funLTG=-1. if no identification of the required type exists, we return -1. and funLTG=-1.
Definition at line 154 of file KVTGIDManager.cpp.
|
virtual |
Delete all identification objects.
Reimplemented in KVRTGIDManager.
Definition at line 92 of file KVTGIDManager.cpp.
Delete the identification object with name.
Reimplemented in KVRTGIDManager.
Definition at line 69 of file KVTGIDManager.cpp.
|
inline |
Definition at line 103 of file KVTGIDManager.h.
|
private |
maximum ID of all TGID objects
Definition at line 44 of file KVTGIDManager.h.
|
private |
KVTGID objects for identifications.
Definition at line 43 of file KVTGIDManager.h.
|
private |
transient member used to hold status of last call to IdentZ/IdentA
Definition at line 45 of file KVTGIDManager.h.