Analysis  version 7.0 - august 2014
SpecNorm.hh
Go to the documentation of this file.
1 //======================================================================
2 /*! \file SpecNorm.hh
3  *
4  * Déclaration de la classe des spectres de normalisation.
5  */
6 //======================================================================
7 
8 #ifndef SPEC_NORM_HH
9 #define SPEC_NORM_HH
10 
11 #include "SpecOper1.hh"
12 
13 
14 //======================================================================
15 /*! \class SpecNorm
16  *
17  * Classe des spectres qui normalisent un spectre opérande.
18  * Le spectre résultant est le spectre initial renormalisé de
19  * façon que la somme des canaux vale le coefficient de normalisation.
20  *
21  */
22 class SpecNorm : public SpecOper1
23 {
24 //----------------------------------------------------------------------
25  /*! \object_doc */
27 //----------------------------------------------------------------------
28 
29  protected:
30 
31  public:
32 
33 //----------------------------------------------------------------------
34 // CONSTRUCTEUR / AFFECTATION / DESTRUCTEUR
35 //----------------------------------------------------------------------
36 
37  // Constructeur
38  SpecNorm ( const string & spec_name, Spectrum *spec,
39  const Double_t fact = 1. );
40 
41  // Constructeur de recopie
42  SpecNorm ( const SpecNorm & original );
43 
44  // Destructeur
45  virtual ~SpecNorm ();
46 
47 //----------------------------------------------------------------------
48 
49  public:
50  // Fonction de mise à jour du spectre (calculés)
51  virtual void Update ( );
52 
53  // Définition d'un spectre du type de la classe
54  static Spectrum * NewSpectrumDef ( const string & sp_name, const string & def_str, const EventManager * evt_mgr, int & error );
55 
56  // Retourne l'identificateur du type de spectre.
57  u_int TypeId ( ) const;
58 
59  // Retourne le nom du type de spectre.
60  string Type ( ) const;
61 
62 //----------------------------------------------------------------------
63 // pour ROOT...
64  public:
65  /*! Définition à usage de ROOT... */
66  ClassDef(SpecNorm,0);
67 } ;
68 
69 
70 //======================================================================
71 // FONCTIONS INLINE
72 //======================================================================
73 
74 
75 /*! Retourne l'identificateur du type de spectre.
76  */
77 inline u_int SpecNorm::TypeId ( ) const
78  { return (spectrumTypeNorm); }
79 
80 /*! Retourne le nom du type de spectre.
81  */
82 inline string SpecNorm::Type ( ) const
83  { return (SPECTRUM_TYPE_TXT_NORM); }
84 
85 //----------------------------------------------------------------------
86 
87 
88 //======================================================================
89 #endif
virtual void Update()
Definition: SpecNorm.cpp:74
Definition: SpecNorm.hh:22
Definition: SpecOper1.hh:20
static Spectrum * NewSpectrumDef(const string &sp_name, const string &def_str, const EventManager *evt_mgr, int &error)
Definition: SpecNorm.cpp:129
string Type() const
Definition: SpecNorm.hh:82
SpecNorm(const string &spec_name, Spectrum *spec, const Double_t fact=1.)
Definition: SpecNorm.cpp:23
Definition: Spectrum.hh:222
ClassDef(SpecNorm, 0)
u_int TypeId() const
Definition: SpecNorm.hh:77
GObject(SpecNorm)
Definition: EventManager.hh:59
#define SPECTRUM_TYPE_TXT_NORM
Nom du type de spectre: opération normalisation.
Definition: Spectrum.hh:110
virtual ~SpecNorm()
Definition: SpecNorm.cpp:65