mEmcTOFCorr6Module.h

Go to the documentation of this file.
00001 #ifndef __MEMCTOFCORR6MODULE_H__
00002 #define __MEMCTOFCORR6MODULE_H__
00003 //-----------------------------------------------------------------------------
00004 //
00005 //
00006 // Purpose: wraps the TOF Run-by-Run & Tower-by-Tower correction of DST
00007 // 
00008 // Description: algorithm class
00009 //              
00010 // The application of this class will make your life better, will make you smarter,
00011 // and your hair grow fuller *)
00012 
00013 // *) individual results may vary.
00014 // $Author: pinkenbu $
00015 // $Date: 2006/01/14 04:34:45 $
00016 // $Name:  $
00017 // $Source: /afs/rhic/phenix/PHENIX_CVS/offline/packages/emc/mEmcTOFCorr6Module.h,v $
00018 
00019 //-----------------------------------------------------------------------------
00020 
00021 #include "phool.h"
00022 #include "PdbEmcT0Sector.hh"
00023 #include "PdbEmcT0Tower.hh"
00024 
00027 class PHCompositeNode;
00028 
00029 class mEmcTOFCorr6Module
00030 {
00031 
00032 private:
00033   mEmcTOFCorr6Module();
00034 
00035  public:
00036   virtual ~mEmcTOFCorr6Module(){}
00037 
00039   static mEmcTOFCorr6Module* instance();
00040 
00042 
00043   void readDataFromDB(const int run_number);
00044 
00046   PHBoolean  event(PHCompositeNode * root) ;
00047   PHBoolean  eventFirst(PHCompositeNode * root) ;
00048 
00049  private:
00050 
00052   float get_correction( int arm, int sec, int ind_y, int ind_z );
00053 
00054   PdbEmcT0Sector TheSector;
00055   PdbEmcT0Tower TheTower;
00056   PdbEmcT0Sector TheSectorVd;
00057 
00058   int isvalid;
00059 
00060 };
00061 
00062 
00063 #endif /* __MEMCTOFCORR6MODULE_H__ */