#ifndef ROOT_THaG0Helicity
#define ROOT_THaG0Helicity
#include "THaHelicityDet.h"
#include "THaG0HelicityReader.h"
class TH1F;
class THaG0Helicity : public THaHelicityDet, public THaG0HelicityReader {
public:
THaG0Helicity( const char* name, const char* description,
THaApparatus* a = NULL );
THaG0Helicity();
virtual ~THaG0Helicity();
virtual Int_t Begin( THaRunBase* r=0 );
virtual void Clear( Option_t* opt = "" );
virtual Int_t Decode( const THaEvData& evdata );
virtual Int_t End( THaRunBase* r=0 );
virtual void SetDebug( Int_t level );
virtual Bool_t HelicityValid() const { return fValidHel; }
Int_t GetQuad() const { return fQuad; }
Double_t GetTdiff() const { return fTdiff; }
void SetG0Delay( Int_t delay );
void SetTdavg( Double_t tdavg );
void SetTtol( Double_t ttol );
void SetMaxMsQrt( Int_t missq );
protected:
void TimingEvent();
void QuadCalib();
void LoadHelicity();
void QuadHelicity(Int_t cond=0);
EHelicity RanBit(Int_t i);
UInt_t GetSeed();
Bool_t CompHel();
enum { kNbits = 24 };
Int_t fG0delay;
Int_t fEvtype;
Double_t fTdavg, fTdiff, fT0, fT9;
Bool_t fT0T9;
Bool_t fQuad_calibrated;
Bool_t fValidTime, fValidHel;
Bool_t fRecovery_flag;
Double_t fTlastquad, fTtol;
Int_t fQuad, fFirstquad;
Double_t fLastTimestamp;
Double_t fTimeLastQ1;
Int_t fT9count;
Int_t fPredicted_reading, fQ1_reading;
EHelicity fPresent_helicity, fSaved_helicity, fQ1_present_helicity;
Int_t fMaxMissed;
Int_t fHbits[kNbits];
UInt_t fNqrt;
TH1F * fHisto;
Int_t fNB;
UInt_t fIseed, fIseed_earlier, fInquad;
Int_t fTET9Index;
Int_t fTELastEvtQrt;
Double_t fTELastEvtTime;
Double_t fTELastTime;
Int_t fTEPresentReadingQ1;
Int_t fTEStartup;
Double_t fTETime;
Bool_t fTEType9;
UInt_t fManuallySet;
virtual Int_t DefineVariables( EMode mode = kDefine );
virtual Int_t ReadDatabase( const TDatime& date );
ClassDef(THaG0Helicity,2)
};
#endif
Last change: Sat Nov 7 21:26:47 2009
Last generated: 2009-11-07 21:26
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.