00001 // $Id: TGo4ComGetCurrentEvent.h 1033 2013-11-05 15:30:01Z linev $ 00002 //----------------------------------------------------------------------- 00003 // The GSI Online Offline Object Oriented (Go4) Project 00004 // Experiment Data Processing at EE department, GSI 00005 //----------------------------------------------------------------------- 00006 // Copyright (C) 2000- GSI Helmholtzzentrum für Schwerionenforschung GmbH 00007 // Planckstr. 1, 64291 Darmstadt, Germany 00008 // Contact: http://go4.gsi.de 00009 //----------------------------------------------------------------------- 00010 // This software can be used under the license agreements as stated 00011 // in Go4License.txt file which is part of the distribution. 00012 //----------------------------------------------------------------------- 00013 00014 #ifndef TGO4COMGETCURRENTEVENT_H 00015 #define TGO4COMGETCURRENTEVENT_H 00016 00017 #include "TGo4AnalysisObjectCommand.h" 00018 00031 class TGo4ComGetCurrentEvent : public TGo4AnalysisObjectCommand { 00032 public: 00033 00034 TGo4ComGetCurrentEvent(); 00035 00036 TGo4ComGetCurrentEvent(const char* obname); 00037 00038 virtual ~TGo4ComGetCurrentEvent(); 00039 00040 virtual Int_t ExeCom(); 00041 00045 virtual void Set(TGo4RemoteCommand* remcon); 00046 00047 00048 Bool_t IsOutputEvent() const { return fbOutputEvent; } 00049 00050 void SetOutputEvent(Bool_t output=kTRUE) { fbOutputEvent=output; } 00051 00052 Bool_t IsPrintoutOnly() const { return fbPrintoutOnly; } 00053 00054 void SetPrintoutOnly(Bool_t on=kTRUE) { fbPrintoutOnly=on; } 00055 00056 Bool_t IsTreeMode() const { return fbTreeMode; } 00057 00058 void SetTreeMode(Bool_t on=kTRUE) { fbTreeMode=on; } 00059 00060 private: 00061 /* we use integer for bool expressions due to root streamer problems */ 00062 00064 Bool_t fbOutputEvent; 00065 00067 Bool_t fbPrintoutOnly; 00068 00071 Bool_t fbTreeMode; 00072 00073 ClassDef(TGo4ComGetCurrentEvent,1) 00074 }; 00075 00076 00077 #endif //TGO4COMGETCURRENTEVENT_H 00078 00079 00080