mEmcCalibratorModulev2.h

Go to the documentation of this file.
00001 #ifndef __MEMCCALIBRATORMODULEV2_H__
00002 #define __MEMCCALIBRATORMODULEV2_H__
00003 
00004 #include "EMCModule.h"
00005 #ifndef __EMCMANAGEABLE_H__
00006 #  include "emcManageable.h"
00007 #endif
00008 #ifndef __EMCDATASTORAGEMAP_H__
00009 #  include "emcDataStorageMap.h"
00010 #endif
00011 #include <string>
00012 #include <vector>
00013 
00014 class emcDataProcessor;
00015 class PHTimeStamp;
00016 class emcBadModules;
00017 class emcTowerContainer;
00018 
00026 class mEmcCalibratorModulev2 : public EMCModule
00027 {
00028 public:
00029 
00042   mEmcCalibratorModulev2
00043   (int runnumber, 
00044    const PHTimeStamp& ts, 
00045    bool constantGains=false,
00046    const emcDataStorageMap& source = emcDataStorageMap(),
00047    const char* sectors="emcal");
00048 
00049   virtual ~mEmcCalibratorModulev2();
00050    
00051   PHBoolean event(PHCompositeNode*);
00052 
00053  private:
00054   void changeToF(emcTowerContainer&);
00055 
00056 private:
00057   emcDataProcessor* fDataProcessor;
00058   PHTimeStamp* fTimeStamp;
00059   emcBadModules* fBadModules;
00060   bool fConstantGains;
00061   int fRunNumber;
00062   std::string fSectors;
00063   std::vector<float> fTofSectorOffsets;
00064 };
00065 
00066 #endif