emcGlobals.h

Go to the documentation of this file.
00001 #ifndef  __EMCGLOBALS_H__
00002 #define  __EMCGLOBALS_H__
00003 
00004 #include <iosfwd>
00005 #include <Rtypes.h>
00006 
00007 class PHTimeStamp;
00008 class Event;
00009 class TH2;
00010 class TLine;
00011 
00012 //*************************************************************************
00013 
00016 struct GF{
00017 
00019   static Int_t Save(const Text_t *file, Option_t *option="",
00020                     const Text_t *ftitle="", Int_t compress=1);
00021 
00022   static PHTimeStamp * getFileCreationDate(char * fName);
00023   static void getEventTimeStamp(Event * ev, char * fName, PHTimeStamp * & StartTime, PHTimeStamp *& when);
00024 
00028   static PHTimeStamp * GF::getGLV1TimeStamp(Event * ev);
00029 
00030   static void zero(int   * i, int n){for (int k=0;k<n;k++) i[k]=0;}
00031   static void zero(float * f, int n){for (int k=0;k<n;k++) f[k]=0.;}
00032   static int  reducedMean(int items, float * e, float  & av, float & rms, float retain=0.7);
00033   static char * getNextFileName(std::ifstream & conffile, PHTimeStamp * & fTS);
00034   static void   drawGrid(TH2*, TLine &);
00035   };
00036 
00037 //***************************************************************************
00038 #endif // _EMC_GLOBALS_h