BRAT 2.4.5
Class index
Full class index
brahmlib
BRAHMS
ROOT page

BrEventManager


class description - source file - inheritance tree

class BrEventManager : public TObject


    protected:
BrEventManager BrEventManager() public:
BrEventManager BrEventManager(BrEventManager&) static TClass* Class() Int_t DebugLevel() const void Event(const BrEvent* event) Int_t EventNumber() const Int_t EventType() const static BrEventManager* Instance() virtual TClass* IsA() const Bool_t IsEvent() const Bool_t IsSyncEvent() const Int_t RunNumber() const void SetDebugLevel(Int_t level) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b) Bool_t TriggerOn(Int_t trigno) const Int_t TriggerType() const Int_t TriggerWord1() const Int_t TriggerWord2() const

Data Members

    private:
static BrEventManager* fInstance Singleton class Int_t fDebugLevel Debug Flag Int_t fEventType Current EventType Int_t fRunNumber Current RunNumber Int_t fEventNumber Current EventNumber Int_t fTriggerType Trigger Type Int_t fTime Time (UNIX time) Int_t fTriggerWord1 Trigger word 1 Int_t fTriggerWord2 Trigger word 2 Int_t fState State of Manager public:
static const BrEventManager::EvStatus_t INIT static const BrEventManager::EvStatus_t READ static const BrEventManager::EvStatus_t FAILED

Class Description

  BrEventManager

  This manager class will assits user module is retrieving general
  event information regardless if a module has access to the EventHeader.


  Sample code:

  The application can load the Manager and keep a global pointer
  accesible via a Brat common application file. It is in fact
  implemented via a Singleton mechanism. This enables us to use both
  the global mechanism as well as the instantons.

  Main application will have
  ---------------------------
  BrEventManager *gEventMgr =
    BrEventManager::Instance();



  The application that reads the Event from DISK EVB etc
  should call the event method for the EventManager i.e.
	  InputFile->Event(event);
	  if(InputFile->Eof()){
	    cout << "End Of Data" << endl;
	    break;
	  }
	  gEventMgr->Event(event);


  The user module should have (either in the Named Constructor
  or in the Init() method.
  ------------------------------------
  BrCalibrationManager *gParamDb =
    BrCalibrationManager::Instance();


  At the time of Event the user code could access information e.g.
  as such
  BrEventManager *gEventMgr =
    BrEventManager::Instance();

  if(gEventMgr->IsEvent()){
    ....
  }
  int evno = gEventMgr->Event();
  if(gEventMgr->TriggerOn(6)){
   // collisions event
   ...
  }

 See also the TestEventManager.cxx in the brat/test directory
____________________________________________________

 Static instance of
 instanton.


BrEventManager()

BrEventManager* Instance()

void Event(const BrEvent* event) // // Extract Event runnumber from current event // and store in local variable. // This allows multiple modules to ask for // current values. //



Inline Functions


                Bool_t IsSyncEvent() const
                Bool_t IsEvent() const
                 Int_t RunNumber() const
                 Int_t EventNumber() const
                 Int_t EventType() const
                 Int_t TriggerType() const
                 Int_t TriggerWord1() const
                 Int_t TriggerWord2() const
                Bool_t TriggerOn(Int_t trigno) const
                 Int_t DebugLevel() const
                  void SetDebugLevel(Int_t level)
               TClass* Class()
               TClass* IsA() const
                  void ShowMembers(TMemberInspector& insp, char* parent)
                  void Streamer(TBuffer& b)
                  void StreamerNVirtual(TBuffer& b)
        BrEventManager BrEventManager(BrEventManager&)

This page automatically generated by script docBrat by Christian Holm

Copyright ; 2002 BRAHMS Collaboration <brahmlib@rcf.rhic.bnl.gov>
Last Update on Wed Sep 11 04:51:38 2002 by

Validate HTML
Validate CSS