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

#include <TTree.h>
#include <TObject.h>

#include "TScalerCh.h"

ClassImp(TScalerCh);



//______________________________________________________________________________
void TScalerCh::Clear(Option_t *)
{
  // -- Clears all TScalerCh members.

  counts = 0;
  rate   = 0;
}


//______________________________________________________________________________
Bool_t TScalerCh::InitClass()
{
  // -- Initialize the default TScalerCh class members.
  //

  Clear();

  return kTRUE;
}


//______________________________________________________________________________
void TScalerCh::InitTree(TTree *tree)
{
  // -- Initialize the scaler TTree and set the branch addresses.
  //

  fChain   = tree;
  fCurrent = -1;
  fChain->SetMakeClass(1);

  //  fChain->SetBranchAddress(fName + ".counts",&counts,&b_counts);
}


// //______________________________________________________________________________
// void TScalerCh::SetName(const Char_t *name)
// {
//   // -- Change (i.e. set) the name of the TScalerCh.
//   //

//   fName = name;
// }


// //______________________________________________________________________________
// void TScalerCh::SetNameTitle(const Char_t *name, const Char_t *title)
// {
//   // -- Change (i.e. set) all the TScalerCh parameters (name and title).
//   //

//   fName  = name;
//   fTitle = title;
// }


// //______________________________________________________________________________
// void TScalerCh::SetTitle(const Char_t *title)
// {
//   // -- Change (i.e. set) the title of the TScalerCh.
//   //

//   fTitle = title;
// }

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.