00001 #ifndef GO4_TCBMSECONDPROC_H 00002 #define GO4_TCBMSECONDPROC_H 00003 00004 #include "TGo4EventProcessor.h" 00005 00006 #include "TObjArray.h" 00007 00008 class TCBMProc; 00009 00010 class TCBMSecondProc : public TGo4EventProcessor { 00011 00012 protected: 00013 00014 static TString fDfltSetupScript; 00015 00016 static TCBMSecondProc* fInstance; 00017 00018 TObjArray fProc; 00019 00020 public: 00021 00022 TCBMSecondProc(const char* name = 0); 00023 virtual ~TCBMSecondProc(); 00024 00025 static TCBMSecondProc* Instance() { return fInstance; } 00026 00027 static void SetDfltScript(const char* name) { fDfltSetupScript = name; } 00028 static const char* GetDfltScript() { return fDfltSetupScript.Data(); } 00029 00031 void AddProc(TCBMProc* proc); 00032 00034 virtual Bool_t BuildEvent(TGo4EventElement*); 00035 00036 00037 ClassDef(TCBMSecondProc,1) 00038 }; 00039 00040 #endif 00041