Analysis  version 7.0 - august 2014
GanilEventInfo.hh
Go to the documentation of this file.
1 //======================================================================
2 /*! \file GanilEventInfo.hh
3  *
4  * Déclaration des méthodes de la classe GanilEventInfo traitant les
5  * données du buffer Event Header.
6  */
7 //======================================================================
8 
9 #ifndef GANIL_EVENT_INFO_HH
10 #define GANIL_EVENT_INFO_HH
11 
12 #include "GanilCommon.hh"
13 #include "GanilBuffer.hh"
14 
15 //======================================================================
16 /*! \class GanilEventInfo
17  *
18  * Classe traitant les données du buffer Event Header.
19  */
21 {
22  friend class GanilRun;
23 
24 //----------------------------------------------------------------------
25  /*! \object_doc */
27 //----------------------------------------------------------------------
28 
29  protected:
30  string event_type; ///< Type d'événement (WORDC ou FFFF)
31  string data_format; ///< Format des données
32  string wc_format; ///< Format du compteur de mots
33  string date; ///< Date du run
34  string run_name; ///< Nom du run
35  u_int run_number; ///< Numéro du run
36  //string reserve1;
37  string struct_type; ///< Type de structure
38 
39  public:
40  // constructeur
41  GanilEventInfo ( );
42 
43  // constructeur de recopie
44  GanilEventInfo ( const GanilEventInfo & );
45 
46  // destructeur
47  virtual ~GanilEventInfo ( );
48 
49  // operateur de recopie
51 
52 //----------------------------------------------------------------------
53  // Opérateur de comparaison (équivalence).
54  bool operator == ( const GanilEventInfo & );
55 
56  /*! Opérateur de comparaison (non-équivalence).
57  * \param data donnée avec laquelle on teste l'équivalence
58  */
59  inline bool operator != ( const GanilEventInfo &data )
60  { return ( ! (*this == data) ); }
61 
62 //----------------------------------------------------------------------
63  // sortie des informations
64  void EventInfo ( );
65  void EventInfo ( ostream & );
66 
67  protected:
68  // rempli les données à partir d'un buffer
69  int SetEventInfo ( GanilBuffer & );
70 
71 
72 //----------------------------------------------------------------------
73 // pour ROOT...
74  public:
75  /*! Définition à usage de ROOT... */
77 } ;
78 
79 
80 //======================================================================
81 #endif
Definition: GanilRun.hh:39
u_int run_number
Numéro du run.
Definition: GanilEventInfo.hh:35
void EventInfo()
Definition: GanilEventInfo.cpp:111
bool operator==(const GanilEventInfo &)
Definition: GanilEventInfo.cpp:73
ClassDef(GanilEventInfo, 0)
string event_type
Type d&#39;événement (WORDC ou FFFF)
Definition: GanilEventInfo.hh:30
virtual ~GanilEventInfo()
Definition: GanilEventInfo.cpp:45
string wc_format
Format du compteur de mots.
Definition: GanilEventInfo.hh:32
bool operator!=(const GanilEventInfo &data)
Definition: GanilEventInfo.hh:59
GanilEventInfo & operator=(const GanilEventInfo &)
Definition: GanilEventInfo.cpp:52
string data_format
Format des données
Definition: GanilEventInfo.hh:31
string run_name
Nom du run.
Definition: GanilEventInfo.hh:34
GanilEventInfo()
Definition: GanilEventInfo.cpp:14
Definition: GanilBuffer.hh:26
Definition: GanilEventInfo.hh:20
string struct_type
Type de structure.
Definition: GanilEventInfo.hh:37
int SetEventInfo(GanilBuffer &)
Definition: GanilEventInfo.cpp:138
GObject(GanilEventInfo)
string date
Date du run.
Definition: GanilEventInfo.hh:33