KaliVeda  1.13/01
Heavy-Ion Analysis Toolkit
GTScalers.h
Go to the documentation of this file.
1 /***************************************************************************
11  * *
12  * This program is free software; you can redistribute it and/or modify *
13  * it under the terms of the GNU General Public License as published by *
14  * the Free Software Foundation; either version 2 of the License, or *
15  * (at your option) any later version. *
16  * *
17  ***************************************************************************/
20 
21 #ifndef GT_GTScalers_H
22 #define GT_GTScalers_H
23 
24 #include <TObject.h>
25 #include <TClonesArray.h>
26 class GTOneScaler;
27 
33 class GTScalers : public TObject {
34 public:
35  GTScalers(void);
36  ~GTScalers(void);
37  void Fill(void*); // Vocabulary: Set or Fill ?
38  void DumpScalers(void);
39 
40  const GTOneScaler* GetScalerPtr(Int_t index) const;
41  Int_t GetNbChannel(void) const
42  {
43  return fNbChannel;
44  }
45 
46 protected:
49 public:
50  ClassDef(GTScalers, 2) // Scaler events class
51 };
52 
53 
54 #endif
int Int_t
#define ClassDef(name, id)
Scaler class for the scaler structure.
Definition: GTOneScaler.h:35
Handle scaler buffers in GANIL DAQ data.
Definition: GTScalers.h:33
const GTOneScaler * GetScalerPtr(Int_t index) const
Return a constant pointer to the Scaler Index.
Definition: GTScalers.cpp:98
GTScalers(void)
Definition: GTScalers.cpp:43
TClonesArray fScalerArray
Array of scalers.
Definition: GTScalers.h:48
Int_t fNbChannel
Number of individual scales.
Definition: GTScalers.h:47
~GTScalers(void)
Definition: GTScalers.cpp:53
void Fill(void *)
Definition: GTScalers.cpp:61
Int_t GetNbChannel(void) const
Definition: GTScalers.h:41
void DumpScalers(void)
Dump scalers value on cout.
Definition: GTScalers.cpp:83