Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

TScalerEvent Class Reference

#include <TScalerEvent.h>

List of all members.


Detailed Description

Scaler-event class.

This class contains unpacked scaler data which is placed into a vector. The vector will usually contain a fixed number of values (depending upon the number of scalers being used in an experiment). This class is also written to a ROOT tree if the correct TDragonRun methods are called.

Author:
JEP.
Version:
1.0.
Date:
November 2004.

Definition at line 16 of file TScalerEvent.h.

Public Member Functions

 TScalerEvent ()
virtual ~TScalerEvent ()
void Clear (const Char_t *="")
void Print (const Char_t *="") const
void AddScalers (const vector< TDataItem< UInt_t > > &scaler)
const vector< TDataItem< UInt_t > > & GetScalers () const

Private Attributes

vector< TDataItem< UInt_t > > fScalers


Constructor & Destructor Documentation

TScalerEvent  ) 
 

Default constructor.

Definition at line 24 of file TScalerEvent.cxx.

~TScalerEvent  )  [virtual]
 

Default destructor.

Definition at line 30 of file TScalerEvent.cxx.


Member Function Documentation

void Clear const Char_t *  option = ""  ) 
 

Clear all the data held in this class.

Parameters:
[in] option The option is currently unimplemented.

Definition at line 36 of file TScalerEvent.cxx.

References fScalers.

void Print const Char_t *  option = ""  )  const
 

Print data held in this class.

Parameters:
[in] option If option is 'a' (all) then the data in the scaler array is also printed out.

Definition at line 44 of file TScalerEvent.cxx.

References fScalers.

void AddScalers const vector< TDataItem< UInt_t > > &  scaler  )  [inline]
 

Add a data item to the fScalers vector.

Definition at line 35 of file TScalerEvent.h.

References fScalers.

const vector< TDataItem< UInt_t > > & GetScalers  )  const [inline]
 

Retrieve the scaler event vector.

Returns:
A reference to the scaler vector which contains simple scaler data. Add something like this to your code to retrieve the vector and print the information in the scaler event:
      const vector<TDataItem<UShort_t> > &sclr = GetScalerEvent();
      for (size_t i = 0; i < sclr.size(); i++)
        sclr[j].Print();

Definition at line 42 of file TScalerEvent.h.


Member Data Documentation

vector<TDataItem<UInt_t> > fScalers [private]
 

The vector containing scaler events.

Definition at line 28 of file TScalerEvent.h.


The documentation for this class was generated from the following files:
Generated on Mon Jan 8 11:54:36 2007 for DragonRoot by  doxygen 1.3.9.1