STEER/TFndGenInfo.cxx

00001 // @(#)fROOT/STEER:$Name:  $:$Id: TFndGenInfo.cxx,v 1.5 2007/09/05 11:09:42 Diego_Faso Exp $
00002 // Revision Author: Diego Faso <mailto:faso@to.infn.it>, 2005/06/24
00003 // Original Author: Piergiorgio Cerello, 2001
00004 
00006 //                                                                   //
00007 //                              TFndGenInfo                          //
00008 //                                                                   //
00009 //     The Global Run Information: the class contains the variables  //
00010 //     defining the run configuration (number, trigger type, date,   //
00011 //     and the list of flags describing the presence/absence of      //
00012 //     individual detectors                                          //
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   // Default constructor
00029 
00030 }
00031 
00032 //___________________________________________
00033 TFndGenInfo::TFndGenInfo(UInt_t *raw):
00034   fRNum(),fDatime(),fGTS(),fTOF(),fISM(),fOSM(),fLMD(),fSTB()
00035 {
00036   // Get Run information directly from raw file
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 }

Generated on Tue Oct 16 15:40:48 2007 by  doxygen 1.5.2