// Author: Andrew M. Rogers, NSCL 07/01/2006
//* Copyright (C) 2006-2008 Andrew M. Rogers

#ifndef __TSCALERCH_H
#define __TSCALERCH_H

#include <iostream>

#include <TROOT.h>
#include <TBranch.h>
#include <TNamed.h>
#include <TTree.h>
#include <TObject.h>

#ifndef  __ROOTDEFINE_H
#define  __ROOTDEFINE_H
#include "rootDefine.h"
#endif

using namespace std;

class TScaler;


class TScalerCh : public TNamed{
 protected:
  
 public:
  TScaler     *parent;                       //! Parent class.

  Long64_t     counts;                       //  Number of scaler counts.
  Double_t     rate;                         //  Near instantaneous scaler rate.

  TBranch     *b_counts;                     //! Counts branch.
  TBranch     *b_rate;                       //! Rate branch.


  TTree       *fChain;          //! Pointer to the analyzed TTree or TChain
  Int_t        fCurrent;        //! Current Tree number in a TChain

 public:
  TScalerCh() {}   
  TScalerCh(const char *name, const char *title) {SetNameTitle(name,title);}
  ~TScalerCh() {}
  
  void         Clear(Option_t *option="");                   // Clear and reset all class members to defaults.
  Bool_t       InitClass();                                  // Initialize any default properties of the class.
  void         InitTree(TTree *tree);                        // Initialize the tree.
  
  ClassDef(TScalerCh,2); // Scaler Channel.
  
};

#endif

Last change: Sun Dec 21 12:39:00 2008
Last generated: 2008-12-21 12:39

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.