Analysis
version 7.0 - august 2014
|
#include <GEVSpectrumCreator.hh>
Public Member Functions | |
GEVSpectrumCreator (EventManager *evt_mgr, Int_t &result, Spectrum *&spec_ptr, const TGWindow *mw=NULL) | |
virtual | ~GEVSpectrumCreator () |
virtual void | Construct () |
virtual void | MapRequester () |
virtual bool | CheckInputs () |
virtual bool | CheckSize () |
virtual Int_t | SpecRequest (TGTextEntry *w_entry, const bool multi=false) |
virtual void | TypeSelected (Int_t type) |
virtual void | TypeInfoClicked () |
virtual void | XParamClicked () |
virtual void | YParamClicked () |
virtual void | ZParamClicked () |
virtual void | XDimMultClicked () |
virtual void | XDimDivClicked () |
virtual void | YDimMultClicked () |
virtual void | YDimDivClicked () |
virtual void | ZDimMultClicked () |
virtual void | ZDimDivClicked () |
virtual void | FileButtonClicked () |
virtual void | HistoButtonClicked () |
virtual void | OperSelectClicked (Int_t num) |
virtual void | OperListButtonClicked () |
virtual void | FamilyClicked () |
virtual void | Button (Int_t n) |
ClassDef (GEVSpectrumCreator, 0) | |
Protected Member Functions | |
GEVSpectrumCreator (const GEVSpectrumCreator &original) | |
Protected Attributes | |
EventManager * | event_mgr |
Pointeur sur le gestionnaire d'événements. | |
SpectrumList * | spec_list |
Pointeur sur la liste de spectres. | |
string | sp_name |
Nom du nouveau spectre. | |
string | spec_info [SPECTRUM_TYPE_MAX] |
Textes d'information sur les types de spectres. | |
Spectrum ** | spec_result |
Pointeur sur l'adresse du spectre alloué en sortie. | |
TGCompositeFrame * | w_frame |
Cadre principal (de la classe RGBaseRequester) | |
TGLabel * | w_name_label |
Label pour nom de spectre. | |
TGTextEntry * | w_name_text |
Texte pour nom de spectre. | |
TGComboBox * | w_spec_type |
Type de spectre. | |
TGTextButton * | w_type_info |
Bouton d'info du type de spectre. | |
TGGroupFrame * | w_x_frame |
Cadre d'ensemble pour l'axe X. | |
TGTextButton * | w_xparam_select |
Bouton de sélection du paramètre X. | |
TGTextEntry * | w_xparam_entry |
Saisie du paramètre X. | |
TGLabel * | w_xdim_label |
Label dimension axe X. | |
TGHorizontalFrame * | w_xdim_h |
Cadre saisie dimension. | |
TGNumberEntry * | w_xdim_entry |
Saisie dimension axe X. | |
TGTextButton * | w_xdim_mult |
Bouton dimension x2. | |
TGTextButton * | w_xdim_div |
Bouton dimension /2. | |
TGLabel * | w_xmin_label |
Label valeur mini axe X. | |
TGNumberEntry * | w_xmin_entry |
Saisie valeur mini axe X. | |
TGLabel * | w_xmax_label |
Label valeur maxi axe X. | |
TGNumberEntry * | w_xmax_entry |
Saisie valeur maxi axe X. | |
TGGroupFrame * | w_y_frame |
Cadre d'ensemble pour l'axe Y. | |
TGTextButton * | w_yparam_select |
Bouton de sélection du paramètre Y. | |
TGTextEntry * | w_yparam_entry |
Saisie du paramètre Y. | |
TGLabel * | w_ydim_label |
Label dimension axe Y. | |
TGHorizontalFrame * | w_ydim_h |
Cadre saisie dimension. | |
TGNumberEntry * | w_ydim_entry |
Saisie dimension axe Y. | |
TGTextButton * | w_ydim_mult |
Bouton dimension x2. | |
TGTextButton * | w_ydim_div |
Bouton dimension /2. | |
TGLabel * | w_ymin_label |
Label valeur mini axe Y. | |
TGNumberEntry * | w_ymin_entry |
Saisie valeur mini axe Y. | |
TGLabel * | w_ymax_label |
Label valeur maxi axe Y. | |
TGNumberEntry * | w_ymax_entry |
Saisie valeur maxi axe Y. | |
TGGroupFrame * | w_z_frame |
Cadre d'ensemble pour l'axe Z. | |
TGTextButton * | w_zparam_select |
Bouton de sélection du paramètre Z. | |
TGTextEntry * | w_zparam_entry |
Saisie du paramètre Z. | |
TGLabel * | w_zdim_label |
Label dimension axe Z. | |
TGHorizontalFrame * | w_zdim_h |
Cadre saisie dimension. | |
TGNumberEntry * | w_zdim_entry |
Saisie dimension axe Z. | |
TGTextButton * | w_zdim_mult |
Bouton dimension x2. | |
TGTextButton * | w_zdim_div |
Bouton dimension /2. | |
TGLabel * | w_zmin_label |
Label valeur mini axe Z. | |
TGNumberEntry * | w_zmin_entry |
Saisie valeur mini axe Z. | |
TGLabel * | w_zmax_label |
Label valeur maxi axe Z. | |
TGNumberEntry * | w_zmax_entry |
Saisie valeur maxi axe Z. | |
TGGroupFrame * | w_extern_frame |
Cadre d'ensemble pour données de spectre externe. | |
TGTextButton * | w_file_button |
Bouton de sélection du fichier. | |
TGTextEntry * | w_file_text |
Saisie du nom de fichier. | |
TGTextButton * | w_histo_button |
Bouton de sélection des histogrammes. | |
TGTextEntry * | w_histo_text |
Saisie des noms d'histogrammes. | |
TGGroupFrame * | w_calc_frame |
Cadre d'ensemble pour données de spectre calculé | |
TGVerticalFrame * | w_calc_oper_frame |
Cadre pour spectres opérandes. | |
TGHorizontalFrame * | w_oper_frame [2] |
Cadre-ligne pour spectre opérande. | |
TGTextButton * | w_oper_select [2] |
Bouton de sélection opérandes. | |
TGTextEntry * | w_oper_entry [2] |
Saisie des spectres opérandes. | |
TGVerticalFrame * | w_calc_coef_frame |
Cadre pour coefficients. | |
TGHorizontalFrame * | w_coef_frame [3] |
Cadre-ligne pour coefficient. | |
TGLabel * | w_coef_label [3] |
Label coefficients. | |
TGNumberEntry * | w_coef_entry [3] |
Saisie valeur coefficients. | |
TGGroupFrame * | w_oplist_frame |
Cadre d'ensemble pour données de spectre calculé sur liste d'opérandes. | |
TGTextButton * | w_oplist_select |
Bouton de sélection de la liste de spectres. | |
TGTextEntry * | w_oplist_entry |
Saisie des noms de spectres. | |
TGGroupFrame * | w_fam_frame |
Cadre d'ensemble pour la famille. | |
TGTextButton * | w_fam_select |
Bouton de sélection de famille. | |
TGTextEntry * | w_fam_entry |
Saisie de la famille. | |
Static Protected Attributes | |
static Int_t | sp_type = spectrumTypeMono |
Type du nouveau spectre. | |
static string | sp_family = "" |
Nom de la famille. | |
static string | xparam = "" |
Nom du paramètre X. | |
static Int_t | xdim = 4096 |
Dimension sur l'axe X. | |
static Double_t | xmin = 0. |
Valeur inférieure sur l'axe X. | |
static Double_t | xmax = 1. |
Valeur supérieure sur l'axe X. | |
static string | yparam = "" |
Nom du paramètre Y. | |
static Int_t | ydim = 4096 |
Dimension sur l'axe Y. | |
static Double_t | ymin = 0. |
Valeur inférieure sur l'axe Y. | |
static Double_t | ymax = 1. |
Valeur supérieure sur l'axe Y. | |
static string | zparam = "" |
Nom du paramètre Z. | |
static Int_t | zdim = 256 |
Dimension sur l'axe Z. | |
static Double_t | zmin = 0. |
Valeur inférieure sur l'axe Z. | |
static Double_t | zmax = 1. |
Valeur supérieure sur l'axe Z. | |
static string | spec_names = "" |
Nom du spectre (spectre externe) | |
static string | histo_file = "" |
Nom du fichier (spectre externe) | |
Private Member Functions | |
GObject (GEVSpectrumCreator) | |
Interface graphique de création d'un spectre.
Elle permet de définir le type de spectre et les paramètres associés.
GEVSpectrumCreator::GEVSpectrumCreator | ( | EventManager * | evt_mgr, |
Int_t & | result, | ||
Spectrum *& | spec_ptr, | ||
const TGWindow * | mw = NULL |
||
) |
Constructeur de l'interface de définition de spectre.
evt_mgr | pointeur sur le gestionnaire d'événement |
result | résultat en retour de la requête |
spec_ptr | pointeur sur le spectre créé (en retour) |
mw | pointeur sur la fenêtre de l'application principale |
References Construct(), event_mgr, EventManager::GetParamName(), EventManager::GetSpectrumListPtr(), gevDico, GEVDico::spec_creator_info_bidim, GEVDico::spec_creator_info_cumul, GEVDico::spec_creator_info_distrib, GEVDico::spec_creator_info_div, GEVDico::spec_creator_info_extern, GEVDico::spec_creator_info_hcumul, GEVDico::spec_creator_info_hmean, GEVDico::spec_creator_info_hsum, GEVDico::spec_creator_info_inv, GEVDico::spec_creator_info_mono, GEVDico::spec_creator_info_norm, GEVDico::spec_creator_info_prod, GEVDico::spec_creator_info_sqrt, GEVDico::spec_creator_info_sum, GEVDico::spec_creator_info_sum_n, GEVDico::spec_creator_info_trace, GEVDico::spec_creator_info_tridim, spec_info, spec_list, spec_result, xparam, yparam, and zparam.
|
virtual |
Destructeur.
|
protected |
Constructeur de recopie (non implémenté).
original | instance à recopier |
|
private |
Macro from GCpp library that defines the following functions:
|
virtual |
Fonction qui met en place les widgets de l'interface graphique.
References GEVDico::ext_histo_req_file, GEVDico::ext_histo_req_file_tip, GEVDico::ext_histo_req_histo, GEVDico::ext_histo_req_histo_tip, GEV_SC_MAX_COEF, GEV_SC_MAX_OPER, gevDico, sp_type, GEVDico::spec_creator_bins, GEVDico::spec_creator_calc, GEVDico::spec_creator_coef, GEVDico::spec_creator_extern, GEVDico::spec_creator_fam_select, GEVDico::spec_creator_family, GEVDico::spec_creator_info, GEVDico::spec_creator_max, GEVDico::spec_creator_min, GEVDico::spec_creator_name, GEVDico::spec_creator_oper, GEVDico::spec_creator_oper_tip, GEVDico::spec_creator_oplist, GEVDico::spec_creator_oplist_tip, GEVDico::spec_creator_param, GEVDico::spec_creator_x_axis, GEVDico::spec_creator_y_axis, GEVDico::spec_creator_z_axis, SPECTRUM_TYPE_TXT_BIDIM, SPECTRUM_TYPE_TXT_CUMUL, SPECTRUM_TYPE_TXT_DISTRIB, SPECTRUM_TYPE_TXT_DIV, SPECTRUM_TYPE_TXT_EXTERN, SPECTRUM_TYPE_TXT_HCUMUL, SPECTRUM_TYPE_TXT_HMEAN, SPECTRUM_TYPE_TXT_HSUM, SPECTRUM_TYPE_TXT_INV, SPECTRUM_TYPE_TXT_MONO, SPECTRUM_TYPE_TXT_NORM, SPECTRUM_TYPE_TXT_PROD, SPECTRUM_TYPE_TXT_SQRT, SPECTRUM_TYPE_TXT_SUM, SPECTRUM_TYPE_TXT_SUM_N, SPECTRUM_TYPE_TXT_TRACE, SPECTRUM_TYPE_TXT_TRIDIM, w_calc_coef_frame, w_calc_frame, w_calc_oper_frame, w_coef_entry, w_coef_frame, w_coef_label, w_extern_frame, w_fam_entry, w_fam_frame, w_fam_select, w_file_button, w_file_text, w_frame, w_histo_button, w_histo_text, w_name_label, w_name_text, w_oper_entry, w_oper_frame, w_oper_select, w_oplist_entry, w_oplist_frame, w_oplist_select, w_spec_type, w_type_info, w_x_frame, w_xdim_div, w_xdim_entry, w_xdim_h, w_xdim_label, w_xdim_mult, w_xmax_entry, w_xmax_label, w_xmin_entry, w_xmin_label, w_xparam_entry, w_xparam_select, w_y_frame, w_ydim_div, w_ydim_entry, w_ydim_h, w_ydim_label, w_ydim_mult, w_ymax_entry, w_ymax_label, w_ymin_entry, w_ymin_label, w_yparam_entry, w_yparam_select, w_z_frame, w_zdim_div, w_zdim_entry, w_zdim_h, w_zdim_label, w_zdim_mult, w_zmax_entry, w_zmax_label, w_zmin_entry, w_zmin_label, w_zparam_entry, w_zparam_select, xdim, xmax, xmin, ydim, ymax, ymin, zdim, zmax, and zmin.
Referenced by GEVSpectrumCreator().
|
virtual |
Affichage de la requête (surcharge de RGBaseRequester: cette fonction est appelée par la fonction Request()).
References GEV_SC_MAX_COEF, GEV_SC_MAX_OPER, histo_file, sp_family, sp_type, spec_names, TypeSelected(), w_coef_entry, w_fam_entry, w_file_text, w_name_text, w_oper_entry, w_oplist_entry, w_xparam_entry, w_yparam_entry, w_zparam_entry, xparam, yparam, and zparam.
|
virtual |
Fonction qui vérifie que la saisie est correcte.
References SpectrumList::Compare(), Spectrum::Compare(), event_mgr, EventManager::GetParamPtr(), EventManager::GetSpectrumListPtr(), EventManager::GetSpectrumPtr(), GEVDico::gev_req_continue, GEVDico::gev_req_warn_title, gevDico, GEVDico::spec_creator_bad_histo_err, GEVDico::spec_creator_err, GEVDico::spec_creator_exist_err, GEVDico::spec_creator_limit_err, GEVDico::spec_creator_name_err, GEVDico::spec_creator_no_hfile_err, GEVDico::spec_creator_no_histo_err, GEVDico::spec_creator_param_err, GEVDico::spec_creator_ptype_err, GEVDico::spec_creator_spec_comp_err, GEVDico::spec_creator_spec_err, GEVDico::spec_creator_spec_list_err, Param::TypeId(), w_file_text, w_histo_text, w_name_text, w_oper_entry, w_oplist_entry, w_spec_type, w_xmax_entry, w_xmin_entry, w_xparam_entry, w_ymax_entry, w_ymin_entry, w_yparam_entry, w_zmax_entry, w_zmin_entry, and w_zparam_entry.
Referenced by Button().
|
virtual |
Fonction qui vérifie que la dimension de spectre est correcte.
References GEVDico::gev_req_ok_cancel, GEVDico::gev_req_warn_title, gevDico, GEVPreferences::max_spec_size, GEVDico::spec_creator_size_warn, w_spec_type, w_xdim_entry, w_ydim_entry, and w_zdim_entry.
Referenced by Button().
|
virtual |
Fonction qui ouvre une requête pour la saisie d'un ou plusieurs spectres et met à jour un widget texte correspondant. Dans le cas d'un spectre unique, la fonction retourne le numéro du spectre saisi, ou -1 en cas d'abandon. Dans le cas d'un choix multiple, la fonction retourne le nombre de spectres sélectionnés.
w_entry | widget texte pour nom de spectre |
multi | test si choix de spectre unique ou multiple |
References event_mgr, EventManager::GetSpectrumIndex(), GEVDico::gev_req_continue, GEVDico::gev_req_ok_cancel, GEVDico::gev_req_warn_title, gevDico, GEVDico::spec_creator_no_spec_err, GEVDico::spec_creator_spec_select, spec_list, and GEVDico::spec_select_multi_title.
Referenced by OperListButtonClicked(), and OperSelectClicked().
|
virtual |
Slot appelé lorsque le type de spectre est modifié.
type | nouveau type de spectre sélectionné |
References GEV_SC_MAX_COEF, GEV_SC_MAX_OPER, w_calc_coef_frame, w_calc_frame, w_calc_oper_frame, w_coef_entry, w_coef_frame, w_extern_frame, w_frame, w_oper_frame, w_oplist_frame, w_x_frame, w_xdim_h, w_xdim_label, w_y_frame, w_ydim_h, w_ydim_label, w_ymax_entry, w_ymax_label, w_ymin_entry, w_ymin_label, w_yparam_entry, w_yparam_select, and w_z_frame.
Referenced by MapRequester().
|
virtual |
Slot appelé lorsque le bouton d'information sur le type de spectre est clické.
References GEVDico::gev_req_continue, GEVDico::gev_req_info_title, gevDico, spec_info, and w_spec_type.
|
virtual |
Slot appelé lorsque le bouton de sélection du paramètre X est clické.
References event_mgr, EventManager::GetParamIndex(), EventManager::GetParamName(), and w_xparam_entry.
|
virtual |
Slot appelé lorsque le bouton de sélection du paramètre Y est clické.
References event_mgr, EventManager::GetParamIndex(), EventManager::GetParamName(), and w_yparam_entry.
|
virtual |
Slot appelé lorsque le bouton de sélection du paramètre Z est clické.
References event_mgr, EventManager::GetParamIndex(), EventManager::GetParamName(), and w_zparam_entry.
|
virtual |
Slot appelé lorsque le bouton d'augmentation de la dimension. est clické.
References w_xdim_entry.
|
virtual |
Slot appelé lorsque le bouton de diminution de la dimension. est clické.
References w_xdim_entry.
|
virtual |
Slot appelé lorsque le bouton d'augmentation de la dimension. est clické.
References w_ydim_entry.
|
virtual |
Slot appelé lorsque le bouton de diminution de la dimension. est clické.
References w_ydim_entry.
|
virtual |
Slot appelé lorsque le bouton d'augmentation de la dimension. est clické.
References w_zdim_entry.
|
virtual |
Slot appelé lorsque le bouton de diminution de la dimension. est clické.
References w_zdim_entry.
|
virtual |
Slot appelé lorsque le bouton de sélection d'un fichier pour spectre externe est clické.
References histo_file, histo_file_types, and w_file_text.
|
virtual |
Slot appelé lorsque le bouton de sélection des histogrammes du fichier pour spectre externe est clické. Si le fichier existe et qu'il contient des histogrammes 1D/2D, une requête est lancée pour sélectionner les noms
References GEVDico::ext_histo_req_histo_title, GEVDico::ext_histo_req_no_file, GEVDico::ext_histo_req_no_histo, FileBaseName(), GEVDico::gev_req_continue, GEVDico::gev_req_ok_cancel, GEVDico::gev_req_warn_title, gevDico, w_file_text, w_histo_text, and w_name_text.
|
virtual |
Slot appelé lorsqu'un bouton de sélection d'un spectre opérande est clické (pour un spectre de type opération).
num | numéro d'opérande |
References SpecRequest(), and w_oper_entry.
|
virtual |
Slot appelé lorsque le bouton de sélection d'une liste de spectres opérandes est clické.
References SpecRequest(), and w_oplist_entry.
|
virtual |
Slot appelé lorsque le bouton de sélection de la famille est clické.
References spec_list, and w_fam_entry.
|
virtual |
Slot appelé lorsqu'un bouton est sélectionné. On quitte la requête, sauf s'il y a un problème dans la définition du spectre. Si la réponse est Ok, on crée le nouveau spectre.
n | identifiant du bouton |
References EventManager::AddSpecBidim(), EventManager::AddSpecCumul(), EventManager::AddSpecDistrib(), EventManager::AddSpecDiv(), EventManager::AddSpecExtern(), EventManager::AddSpecHCumul(), EventManager::AddSpecHMean(), EventManager::AddSpecHSum(), EventManager::AddSpecInv(), EventManager::AddSpecMono(), EventManager::AddSpecNorm(), EventManager::AddSpecProd(), EventManager::AddSpecSqrt(), EventManager::AddSpecSum(), EventManager::AddSpecSumN(), EventManager::AddSpecTrace(), EventManager::AddSpecTridim(), CheckInputs(), CheckSize(), SpectrumList::CreateSpecTable(), event_mgr, EventManager::GetSpectrumListPtr(), histo_file, sp_family, sp_type, w_coef_entry, w_fam_entry, w_file_text, w_histo_text, w_name_text, w_oper_entry, w_oplist_entry, w_spec_type, w_xdim_entry, w_xmax_entry, w_xmin_entry, w_xparam_entry, w_ydim_entry, w_ymax_entry, w_ymin_entry, w_yparam_entry, w_zdim_entry, w_zmax_entry, w_zmin_entry, w_zparam_entry, xdim, xmax, xmin, xparam, ydim, ymax, ymin, yparam, zdim, zmax, zmin, and zparam.
GEVSpectrumCreator::ClassDef | ( | GEVSpectrumCreator | , |
0 | |||
) |
Définition à usage de ROOT...