GainBaseLinePlayer.h

Go to the documentation of this file.
00001 #ifndef __GAINBASELINEPLAYER_H__
00002 #define __GAINBASELINEPLAYER_H__
00003 
00004 #include "SubsysReco.h"
00005 #include <string>
00006 #include <vector>
00007 
00008 class emcCalibrationDataHelper;
00009 
00014 class GainBaseLinePlayer : public SubsysReco
00015 {
00016  public:
00017   GainBaseLinePlayer(const char* runningmode);
00018   virtual ~GainBaseLinePlayer();
00019 
00020   int End(PHCompositeNode*);
00021   int EndRun(PHCompositeNode*);
00022 
00023   int Init(PHCompositeNode*);
00024   int InitRun(PHCompositeNode*);
00025 
00026   int process_event(PHCompositeNode*);
00027 
00028   int Reset(PHCompositeNode*);
00029   int ResetEvent(PHCompositeNode*);
00030 
00031   void Print(const char* what="ALL") const;
00032 
00033  private:
00034   emcCalibrationDataHelper* fCH;
00035   std::string fRunningMode;
00036   std::vector<float> fCorrectionFactor;
00037 };
00038 
00039 #endif