Newer
Older
TB_Chris / TbUT / src / .svn / text-base / TbUTClusterCreatorAlgorithm.h.svn-base
  1. /*
  2. * TbUTClusterCreatorAlgorithm.h
  3. *
  4. * Created on: Jan 6, 2015
  5. * Author: ADendek
  6. */
  7.  
  8. #pragma once
  9.  
  10. #include "GaudiAlg/GaudiAlgorithm.h"
  11. #include "TbUTRawData.h"
  12. #include "TbUTClusterCreatorFactory.h"
  13. #include "TbUTTresholdProvider.h"
  14. #include "TbUTCluster.h"
  15.  
  16.  
  17. namespace TbUT
  18. {
  19.  
  20. class ClusterCreatorAlgorithm : public GaudiAlgorithm
  21. {
  22. public:
  23. ClusterCreatorAlgorithm(const std::string& name, ISvcLocator* pSvcLocator);
  24.  
  25. virtual StatusCode initialize();
  26. virtual StatusCode execute();
  27. virtual StatusCode finalize();
  28.  
  29. private:
  30.  
  31. StatusCode initializeBase();
  32. StatusCode buildClusterCreator();
  33. StatusCode retreiveNoise();
  34.  
  35. StatusCode getData();
  36. void processAndSaveDataToTES();
  37.  
  38. RawDataContainer<double>* m_dataContainer;
  39. RawData<double>* m_data;
  40.  
  41. std::string m_inputDataLocation;
  42. std::string m_outputDataLocation;
  43. std::string m_clusterCreatorOption;
  44. std::string m_noiseFile;
  45. std::string m_sensorType;
  46. int m_event;
  47. int m_skipEvent;
  48. double m_lowThreshold;
  49. double m_highThreshold;
  50.  
  51. TresholdProvider m_zsThresholdProvider;
  52. ClusterCreatorFactory m_clusterCreatorFactory;
  53. ClusterCreatorFactory::ClusterCreatorPtr m_clusterCreator;
  54. };
  55.  
  56. } /* namespace TbUT */
  57.