#ifndef THaCodaDecoder_
#define THaCodaDecoder_
#include "TObject.h"
#include "TString.h"
#include "THaSlotData.h"
#include "TBits.h"
#include "evio.h"
#include "THaEvData.h"
class THaCodaDecoder : public THaEvData {
public:
THaCodaDecoder();
~THaCodaDecoder();
virtual Int_t LoadEvent(const Int_t* evbuffer, THaCrateMap* usermap);
virtual Int_t GetPrescaleFactor(Int_t trigger) const;
virtual Int_t GetScaler(const TString& spec, Int_t slot, Int_t chan) const;
virtual Int_t GetScaler(Int_t roc, Int_t slot, Int_t chan) const;
virtual Bool_t IsLoadedEpics(const char* tag) const;
virtual Double_t GetEpicsData(const char* tag, Int_t event=0) const;
virtual Double_t GetEpicsTime(const char* tag, Int_t event=0) const;
virtual std::string GetEpicsString(const char* tag, Int_t event=0) const;
virtual void PrintOut() const { dump(buffer); }
virtual void SetRunTime(ULong64_t tloc);
protected:
THaFastBusWord* fb;
THaEpics* epics;
Bool_t first_scaler;
TString scalerdef[MAXROC];
Int_t numscaler_crate;
Int_t scaler_crate[MAXROC];
Int_t psfact[MAX_PSFACT];
Int_t synchflag,datascan;
Bool_t buffmode,synchmiss,synchextra;
static void dump(const Int_t* evbuffer);
Int_t gendecode(const Int_t* evbuffer, THaCrateMap* map);
Int_t loadFlag(const Int_t* evbuffer);
Int_t epics_decode(const Int_t* evbuffer);
Int_t prescale_decode(const Int_t* evbuffer);
Int_t physics_decode(const Int_t* evbuffer);
Int_t fastbus_decode(Int_t roc, const Int_t* evbuffer, Int_t p1, Int_t p2);
Int_t vme_decode(Int_t roc, const Int_t* evbuffer, Int_t p1, Int_t p2);
Int_t camac_decode(Int_t roc, const Int_t* evbuffer, Int_t p1, Int_t p2);
Int_t scaler_event_decode(const Int_t* evbuffer );
ClassDef(THaCodaDecoder,0)
};
#endif
Last change: Sat Nov 7 21:26:43 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.