• Main Page
  • Related Pages
  • Namespaces
  • Data Structures
  • Files
  • File List
  • Globals

onlinemonitor/trbmonitor/TTrbEvent.h (r4864/r3395)

Go to the documentation of this file.
00001 #ifndef _TTrbEVENT_H_
00002 #define _TTrbEVENT_H_
00003 
00004 #include "TGo4EventElement.h"
00005 #include "TGo4CompositeEvent.h"
00006 
00007 #include "TTrbDefines.h"
00008 #include "TTrbHit.h"
00009 
00010 class TTrbData : public TGo4EventElement
00011 {
00012 public:
00013         TTrbData ();
00014         TTrbData (const char* name, Short_t id=0);
00015         virtual ~TTrbData ();
00016 
00018         virtual void Clear (Option_t *t="");
00019 
00021         std::vector<TTrbOutputHit> fHits;
00022 
00024         Double_t lastTrigTime;
00025 
00026 ClassDef(TTrbData,1)
00027 };
00028 
00029 
00030 
00031 class TTrbEvent : public TGo4CompositeEvent {
00032    public:
00033       TTrbEvent ();
00034       TTrbEvent (const char* name, Short_t id=0);
00035       virtual ~TTrbEvent ();
00036 
00037       static Bool_t AssertTRB (unsigned trbid)
00038       {
00039          return (trbid < TRB_TDC3_NUMBOARDS) ? TTrbEvent::ConfigTRBS[trbid] > 0 : kFALSE;
00040       }
00041 
00042       static Bool_t AssertTDC(unsigned trbid, unsigned ntdc)
00043       {
00044          return (trbid < TRB_TDC3_NUMBOARDS) && (ntdc<TRB_TDC3_NUMTDC) ? (TTrbEvent::ConfigTRBS[trbid] & (1<<ntdc)) != 0 : kFALSE;
00045       }
00046 
00047 
00049       static UInt_t ConfigTRBS[TRB_TDC3_NUMBOARDS];
00050 
00051 
00052 
00053    ClassDef(TTrbEvent,1)
00054 };
00055 
00056 #endif // _TTrbEVENT_H_

Generated on Tue Dec 10 2013 04:52:23 for ROCsoft by  doxygen 1.7.1