00001
00002
00003
00004 #ifndef FROOT_TFndPreanMan
00005 #define FROOT_TFndPreanMan
00006
00007 #include <TString.h>
00008 #include "TFile.h"
00009
00010 #include "TFndRun.h"
00011 #include "FIN_PHYS.h"
00012 #include "FROOT.h"
00013
00014
00015 class TFndPrean;
00016 class TFndGebSpy;
00017
00018 class TFndPreanMan: public TFndRun
00019 {
00020 public:
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030 private:
00031
00032 TString fCurFidaVer;
00033 Int_t fNumOfProcessedFidaEvents;
00034
00035 Int_t fJFGES;
00036 Int_t fJFDST;
00037
00038 TFndPrean *fPrean;
00039
00040
00041 TFile *fCurPreanFile;
00042
00043 protected:
00044 Int_t CloseInterface();
00045
00046 public:
00047 TFndPreanMan(TString msqlhost="$MSQL_DB_HOST",TString data_path="$RDT",Int_t debug_lev=0);
00048 ~TFndPreanMan();
00049
00050 void SetFidaVersion(TString ver) { fCurFidaVer = ver; }
00051 TString GetCurrentFidaVersion() { return fCurFidaVer; }
00052
00053 Int_t InitNewPreanRun(TString runtype="ONLM",Int_t runnum=-1);
00054 Int_t FinishPreanRun(Bool_t last=kFALSE,Bool_t create_outfile=kTRUE);
00055
00056 TFndPrean *GetPrean() { return fPrean; }
00057
00058 Int_t GetNextFidaEvent();
00059 Int_t ReconstructFidaEvent();
00060
00061 Int_t GetNofProcessedFidaEvents() { return fNumOfProcessedFidaEvents; }
00062
00063
00064
00065
00066
00067
00068 void AnalyzeJFGES();
00069 void AnalyzeJFDST();
00070
00071
00072 void OpenLogFile(const TString &fdir, const TString &fnam);
00073
00074
00076
00077
00078 void CheckRawSwapping()
00079 {
00080 MayNotUse("CheckRawSwapping (working within pre-analysis environment)");
00081 return;
00082 }
00083
00084 Int_t CreateSocketToDAQ(E_Fnd_DaqRaw_Udp_Ports det_port)
00085 {
00086 det_port = (E_Fnd_DaqRaw_Udp_Ports)0;
00087 MayNotUse("CreateSocketToDAQ (working within pre-analysis environment)");
00088 return 0;
00089 }
00090
00091 Int_t ShutdownSocketToDAQ()
00092 {
00093 MayNotUse("ShutdownSocketToDAQ (working within pre-analysis environment)");
00094 return 0;
00095 }
00096
00097 Int_t CheckSocketToDAQ()
00098 {
00099 MayNotUse("CheckSocketToDAQ (working within pre-analysis environment)");
00100 return 0;
00101 }
00102
00103 Int_t RecreateSocketToDAQ(E_Fnd_DaqRaw_Udp_Ports det_port)
00104 {
00105 det_port = (E_Fnd_DaqRaw_Udp_Ports)0;
00106 MayNotUse("RecreateSocketToDAQ (working within pre-analysis environment)");
00107 return 0;
00108 }
00109
00110 Int_t GetNextEvent(Bool_t fill_hdt=kFALSE)
00111 {
00112 fill_hdt = 0;
00113 MayNotUse("GetNextEvent (working within pre-analysis environment)");
00114 return 0;
00115 }
00116
00117 UInt_t *GetNextRawEvent(Int_t &exit_value)
00118 {
00119 exit_value = 0;
00120 MayNotUse("GetNextRawEvent (working within pre-analysis environment)");
00121 return 0;
00122 }
00123
00124 UInt_t *GetNextRawEventFromSocket(int &exit_val)
00125 {
00126 exit_val = 0;
00127 MayNotUse("GetNextRawEventFromSocket (working within pre-analysis environment)");
00128 return 0;
00129 }
00130
00131 UInt_t *GetNextRawEventFromFile(int &exit_val)
00132 {
00133 exit_val = 0;
00134 MayNotUse("GetNextRawEventFromFile (working within pre-analysis environment)");
00135 return 0;
00136 }
00138
00139
00140 ClassDef(TFndPreanMan,0)
00141 };
00142
00143 #endif // FROOT_TFndPreanMan