00001
00002 #ifndef L1T_H
00003 #define L1T_H
00004
00005 #include "TObject.h"
00006
00012 class L1T : public TObject {
00013 private:
00014 UInt_t m_trigCount;
00015 UInt_t m_trigTimeValue;
00016 UInt_t m_xCapture;
00017 UInt_t m_yCapture;
00018 UShort_t m_vetoCapture;
00019 UInt_t m_deadTimeAndCause;
00020 UChar_t m_deadTimeCause;
00021 UShort_t m_deadTime;
00022 public:
00023 enum {
00024 DeadTimeMask = 0x00002fff,
00025 DeadTimeCauseMask = 0x001fc000,
00026 DeadTimeCauseShift = 14
00027 };
00028
00029 L1T();
00030 L1T(Int_t trigCount, Int_t trigTimeValue, Int_t xCapture, Int_t yCapture,
00031 UShort_t vetoCapture, UChar_t deadTimeCause, UShort_t deadTime);
00032 virtual ~L1T();
00033 void Clean();
00034 Int_t getTrigCount(){ return m_trigCount; };
00035 Int_t getTrigTime(){ return m_trigTimeValue; };
00036 Int_t getXCapture(){ return m_xCapture; };
00037 Int_t getYCapture(){ return m_yCapture; };
00038 UShort_t getVetoCapture(){ return m_vetoCapture; };
00039 UInt_t getDeadTimeAndCause() { return m_deadTimeAndCause; };
00040 UChar_t getDeadTimeCause(){ return ((m_deadTimeAndCause & DeadTimeCauseMask) >> DeadTimeCauseShift); };
00041 UShort_t getDeadTime(){ return (m_deadTimeAndCause & DeadTimeMask); };
00042
00043 void setTrigCount(Int_t newVal) { m_trigCount = newVal; };
00044 void setTrigTime(Int_t newVal) { m_trigTimeValue = newVal; };
00045 void setXCapture(Int_t newVal) { m_xCapture = newVal; };
00046 void setYCapture(Int_t newVal) { m_yCapture = newVal; };
00047 void setVetoCapture(UShort_t newVal) { m_vetoCapture = newVal; };
00048 void setDeadTimeAndCause(UInt_t newVal) { m_deadTimeAndCause = newVal; };
00049
00050
00051 ClassDef(L1T,3)
00052 };
00053
00054 #endif