Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

L1T.h

Go to the documentation of this file.
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;       // access the 32-bit L1 trigger count    
00016     UInt_t    m_trigTimeValue;   // access the 32-bit the trigger time value (32 bits)    
00017     UInt_t    m_xCapture;        // access the x-trigger REQ capture (32 bits)
00018     UInt_t    m_yCapture;        // access the y-trigger capture (32 bits)    
00019     UShort_t m_vetoCapture;     // access the veto REQ capture    
00020     UInt_t m_deadTimeAndCause;  // original 32 bit word that contains both dead time and cause
00021     UChar_t  m_deadTimeCause;  // access the dead-time reason (6 bits)    
00022     UShort_t m_deadTime;        // access the dead-time count (16-bits)
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     //void setDeadTime(UShort_t newVal) { m_deadTime = newVal; };
00051 
00052     ClassDef(L1T,3)           // Level 1 Trigger information
00053 };
00054 
00055 #endif

Generated at Wed Nov 21 12:22:45 2001 by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000