00001
00002
00003
00004
00006
00007
00008
00009
00010
00011
00012
00013
00015
00016 #include <Riostream.h>
00017 #include "TFndGenInfo.h"
00018 #include "TFndHdt.h"
00019 #include "TFndRdt.h"
00020 #include "TObjectTable.h"
00021
00022 ClassImp(TFndGenInfo)
00023
00024
00025 TFndGenInfo::TFndGenInfo():
00026 fRNum(),fDatime(),fGTS(),fTOF(),fISM(),fOSM(),fLMD(),fSTB()
00027 {
00028
00029
00030 }
00031
00032
00033 TFndGenInfo::TFndGenInfo(UInt_t *raw):
00034 fRNum(),fDatime(),fGTS(),fTOF(),fISM(),fOSM(),fLMD(),fSTB()
00035 {
00036
00037
00038 fRNum = *(raw+4);
00039
00040 if(( *(raw+5) ) == 0) fDatime = TDatime();
00041 else fDatime = TDatime( (UInt_t) ( *(raw+5)) );
00042
00043 fGTS = (*(raw+7));
00044 fTOF = (*(raw+8));
00045 fISM = (*(raw+9));
00046 fOSM = (*(raw+10));
00047 fLMD = (*(raw+11));
00048 fSTB = (*(raw+12));
00049 }
00050
00051
00052 TFndGenInfo::~TFndGenInfo() {
00053
00054 }
00055
00056
00057 void TFndGenInfo::Print(Option_t *)const{
00058 cout << "****************************" << endl;
00059 cout << " Run Global Information " << endl;
00060 cout << "****************************" << endl;
00061 cout << "Run Number: " << fRNum << endl;
00062 cout << "Run Time : " << fDatime.Convert() << " (" << fDatime.AsSQLString() << ")" << endl;
00063 if(fGTS != 0) cout << "Gts buffer starts at location: " << fGTS << endl;
00064 if(fTOF != 0) cout << "Tof buffer starts at location: " << fTOF << endl;
00065 if(fISM != 0) cout << "Ism buffer starts at location: " << fISM << endl;
00066 if(fOSM != 0) cout << "Osm buffer starts at location: " << fOSM << endl;
00067 if(fLMD != 0) cout << "Lmd buffer starts at location: " << fLMD << endl;
00068 if(fSTB != 0) cout << "Stb buffer starts at location: " << fSTB << endl;
00069 cout << "****************************" << endl;
00070 }