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 
00012 class L1T : public TObject {
00013 private:
00014     UInt_t    m_trigCount;       // access the 32-bit L1 trigger count    
00015     UInt_t    m_trigTimeValue;   // access the 32-bit the trigger time value (32 bits)    
00016     UInt_t    m_xCapture;        // access the x-trigger REQ capture (32 bits)
00017     UInt_t    m_yCapture;        // access the y-trigger capture (32 bits)    
00018     UShort_t m_vetoCapture;     // access the veto REQ capture    
00019     UInt_t m_deadTimeAndCause;  // original 32 bit word that contains both dead time and cause
00020     UChar_t  m_deadTimeCause;  // access the dead-time reason (6 bits)    
00021     UShort_t m_deadTime;        // access the dead-time count (16-bits)
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     //void setDeadTime(UShort_t newVal) { m_deadTime = newVal; };
00050 
00051     ClassDef(L1T,3)           // Level 1 Trigger information
00052 };
00053 
00054 #endif

Generated at Wed Nov 14 20:41:47 2001 by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000