00001 #ifndef __MEMCTOFCORR6MODULE_H__
00002 #define __MEMCTOFCORR6MODULE_H__
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
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