#ifndef __THIRASIDET_H
#define __THIRASIDET_H
#include <iostream>
#include <bitset>
#include <TROOT.h>
#include <TBranch.h>
#include <TTree.h>
#include <TObject.h>
#ifndef __ROOTDEFINE_H
#include "rootDefine.h"
#define __ROOTDEFINE_H
#endif
using namespace std;
class THiRASiDet : public TObject {
protected:
TString fName;
TString fTitle;
public:
THiRASiDet *fCon;
bitset<THIRA_SI_CHANNELS> fBadStrips;
Bool_t fAddRndm;
Short_t fMb;
Short_t fSlot;
Short_t fCbSequence;
Short_t fChSequence;
UInt_t fHitSequence;
Short_t ERaw[THIRA_SI_CHANNELS];
Short_t TRaw[THIRA_SI_CHANNELS];
Double_t E[THIRA_SI_CHANNELS];
Double_t T[THIRA_SI_CHANNELS];
Double_t Emax;
Short_t Emaxch;
Short_t rawMult;
TBranch *b_fCbSequence;
TBranch *b_fChSequence;
TBranch *b_fHitSequence;
TBranch *b_ERaw;
TBranch *b_TRaw;
TBranch *b_E;
TBranch *b_T;
TBranch *b_Emax;
TBranch *b_Emaxch;
TBranch *b_rawMult;
TTree *fChain;
Int_t fCurrent;
public:
THiRASiDet(): fName(), fTitle() {}
~THiRASiDet() {}
THiRASiDet(const THiRASiDet &);
const Char_t *GetName() const { return fName; }
const Char_t *GetTitle() const { return fTitle; }
void SetName(const Char_t *name);
void SetNameTitle(const Char_t *name, const Char_t *title);
void SetTitle(const Char_t *title="");
virtual void Calculate();
virtual void Calibrate();
virtual void Clear(Option_t *option="");
void Copy(TObject &det) const;
Int_t GetEntry(Long64_t entry=0,Int_t getall=0);
virtual void InitClass(TString name);
virtual void InitTree(TTree *tree);
Bool_t IsBad(Int_t strip);
Short_t GetMB(){return fMb;}
Short_t GetSlot(){return fSlot;}
Short_t GetCbReadOrder(){return fCbSequence;}
Short_t GetChReadOrder(Int_t strip);
Short_t GetChPriorReadOrder(){return fChSequence;}
Short_t GetHitReadOrder(Int_t strip);
void SetBad(Int_t strip, Int_t bitValue=1);
ClassDef(THiRASiDet,4)
};
#endif
Last change: Sun Dec 21 12:38:49 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.