Analysis  version 7.0 - august 2014
GEVSpectrumCreator Class Reference

#include <GEVSpectrumCreator.hh>

Inheritance diagram for GEVSpectrumCreator:

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

EventManagerevent_mgr
 Pointeur sur le gestionnaire d'événements.
 
SpectrumListspec_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)
 

Detailed Description

Interface graphique de création d'un spectre.

Elle permet de définir le type de spectre et les paramètres associés.

Constructor & Destructor Documentation

GEVSpectrumCreator::~GEVSpectrumCreator ( )
virtual

Destructeur.

GEVSpectrumCreator::GEVSpectrumCreator ( const GEVSpectrumCreator original)
protected

Constructeur de recopie (non implémenté).

Parameters
originalinstance à recopier

Member Function Documentation

GEVSpectrumCreator::GObject ( GEVSpectrumCreator  )
private

Macro from GCpp library that defines the following functions:

  • ClassName(): return the real class name of the object
  • StaticClassName(): return the used class name of the object (that may be a base class of the real object).
  • IsInstanceOf<T>(): return true if the current object is an instance of the template class name argument
  • Clone(): return an allocated copy of the object.
void GEVSpectrumCreator::Construct ( )
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().

void GEVSpectrumCreator::MapRequester ( )
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.

bool GEVSpectrumCreator::CheckSize ( )
virtual
Int_t GEVSpectrumCreator::SpecRequest ( TGTextEntry *  w_entry,
const bool  multi = false 
)
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.

Parameters
w_entrywidget texte pour nom de spectre
multitest 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().

void GEVSpectrumCreator::TypeSelected ( Int_t  type)
virtual
void GEVSpectrumCreator::TypeInfoClicked ( )
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.

void GEVSpectrumCreator::XParamClicked ( )
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.

void GEVSpectrumCreator::YParamClicked ( )
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.

void GEVSpectrumCreator::ZParamClicked ( )
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.

void GEVSpectrumCreator::XDimMultClicked ( )
virtual

Slot appelé lorsque le bouton d'augmentation de la dimension. est clické.

References w_xdim_entry.

void GEVSpectrumCreator::XDimDivClicked ( )
virtual

Slot appelé lorsque le bouton de diminution de la dimension. est clické.

References w_xdim_entry.

void GEVSpectrumCreator::YDimMultClicked ( )
virtual

Slot appelé lorsque le bouton d'augmentation de la dimension. est clické.

References w_ydim_entry.

void GEVSpectrumCreator::YDimDivClicked ( )
virtual

Slot appelé lorsque le bouton de diminution de la dimension. est clické.

References w_ydim_entry.

void GEVSpectrumCreator::ZDimMultClicked ( )
virtual

Slot appelé lorsque le bouton d'augmentation de la dimension. est clické.

References w_zdim_entry.

void GEVSpectrumCreator::ZDimDivClicked ( )
virtual

Slot appelé lorsque le bouton de diminution de la dimension. est clické.

References w_zdim_entry.

void GEVSpectrumCreator::FileButtonClicked ( )
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.

void GEVSpectrumCreator::HistoButtonClicked ( )
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.

void GEVSpectrumCreator::OperSelectClicked ( Int_t  num)
virtual

Slot appelé lorsqu'un bouton de sélection d'un spectre opérande est clické (pour un spectre de type opération).

Parameters
numnuméro d'opérande

References SpecRequest(), and w_oper_entry.

void GEVSpectrumCreator::OperListButtonClicked ( )
virtual

Slot appelé lorsque le bouton de sélection d'une liste de spectres opérandes est clické.

References SpecRequest(), and w_oplist_entry.

void GEVSpectrumCreator::FamilyClicked ( )
virtual

Slot appelé lorsque le bouton de sélection de la famille est clické.

References spec_list, and w_fam_entry.

GEVSpectrumCreator::ClassDef ( GEVSpectrumCreator  ,
 
)

Définition à usage de ROOT...


The documentation for this class was generated from the following files: