00001 #ifndef SubSystemHeader_H 00002 #define SubSystemHeader_H 00003 00004 #include "TObject.h" 00005 00010 class SubSystemHeader: public TObject { 00011 00012 public: 00013 enum { 00014 DeadTimeMask = 0x00002fff, 00015 DeadTimeCauseMask = 0x001fc000, 00016 DeadTimeCauseShift = 14 00017 }; 00018 00019 00020 SubSystemHeader(); 00021 00022 virtual ~SubSystemHeader(); 00023 00024 void Clean(Option_t *option=""); 00025 00026 UInt_t getEventId() { return m_eventId; }; 00027 void setEventId(unsigned int id) { m_eventId = id; }; 00028 00029 UInt_t getTimerWord() { return m_timerWord; }; 00030 void setTimerWord(unsigned int time) { m_timerWord = time; }; 00031 00032 UInt_t getTreqStatus() { return m_TREQ_VETO_status; }; 00033 void setTreqStatus(unsigned int stat) { m_TREQ_VETO_status = stat; }; 00034 00035 UInt_t getDeadTime() { return (m_deadtime_and_cause & DeadTimeMask); }; 00036 00037 UChar_t getDeadTimeCause() { return ((m_deadtime_and_cause & DeadTimeCauseMask) >> DeadTimeCauseShift); }; 00038 00039 UInt_t getDeadTimeAndCause() { return m_deadtime_and_cause; }; 00040 void setDeadTimeAndCause(unsigned int t) { m_deadtime_and_cause = t; }; 00041 00042 protected: 00043 00044 00045 UInt_t m_eventId; 00046 UInt_t m_timerWord; 00047 UInt_t m_TREQ_VETO_status; 00048 UInt_t m_deadtime_and_cause; 00049 00050 ClassDef(SubSystemHeader,1) 00051 }; 00052 00053 #endif 00054
1.2.3 written by Dimitri van Heesch,
© 1997-2000