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