#ifndef __S800ROOTGLOBALS_H
#define __S800ROOTGLOBALS_H 1
#endif
#ifndef __TS800CRDCPADS_H
#define __TS800CRDCPADS_H

#ifndef __S800PACKETS_H
#include "S800Packets.h"
#define __S8000PACKETS_H
#endif
#ifndef __S800DEFINE_H
#include "S800define.h"
#define __S800DEFINE_H
#endif
#ifndef __ROOTDEFINE_H
#include "rootDefine.h"
#define __ROOTDEFINE_H
#endif

#include "TBranch.h"
#include "TObject.h"
#include <TRandom3.h>
#include "TString.h"
#include "TTree.h"

using namespace std;

// Forward class declarations
class TS800Crdc;

class TS800CrdcPads : public TObject{ 
 private:
  TRandom3     fRandom;                    //! The class's random number generator.

 public:
  TS800CrdcPads* fCon;                           //!
  TS800Crdc*   parent;                           //! Parent class.

  Double_t     cal[TS800_FP_CRDC_CHANNELS];      //  Calibrated pad signals.
  Double_t     sum[256];                         //  Pad amplitudes (addative) before sample division.
  Double_t     ped[TS800_FP_CRDC_CHANNELS];      //! Pedestal value for a CRDC pad.
  Double_t     slope[TS800_FP_CRDC_CHANNELS];    //! Gain value for a CRDC pad.
  Double_t     thresh[TS800_FP_CRDC_CHANNELS];   //! Threshhold value:  Data below this is set to NAN. 
  Short_t      sampleWidth;                      //! 
  
  TString      name;                             //!
   
  TBranch      *b_cal;                           //!
  TBranch      *b_sum;                           //!

  TTree        *fChain;                          //!
  Int_t        fCurrent;                         //! Current Tree number in a TChain
  
 public:
  TS800CrdcPads() {fRandom.SetSeed(0);}
  virtual ~TS800CrdcPads() {}
  TS800CrdcPads(const TS800CrdcPads &);          // The copy constructor.

  Int_t     Calibrate(Long64_t entry);           //
  void      Clear(Option_t *option="");          //
  void      Copy(TObject &pads) const;           // The copy method.
  void      GetEntry(Int_t i);                   //
  void      InitClass(TString iname);            //
  void      InitTree(TTree *tree);               //
  void      LoadCalibration(Char_t *filename);   //
  
  ClassDef(TS800CrdcPads,6)     // S800 FP CRDC Pads.
};

#endif


Last change: Sun Dec 21 12:38:55 2008
Last generated: 2008-12-21 12:38

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.