Newer
Older
TB_Chris / TbUT / src / TbUTPedestalRetreiver.h
@iaro iaro on 9 May 2016 681 bytes first attempt of automated anal
/*
 * TbUTPedestalRetreiver.h
 *
 *  Created on: Jan 2, 2015
 *      Author: ADendek
 */

#pragma once

#include "TbUTIPedestalFollowing.h"
#include "TbUTPedestal.h"
#include "TbUTIFileValidator.h"

namespace TbUT
{

class PedestalRetreiver: public IPedestalFollowing
{
public:
	PedestalRetreiver(Pedestal& p_pedestal, IFileValidator& p_fileValidator, const std::string& p_filename);

	StatusCode processEvent(RawData<>* p_data);
	void savePedestalToFile(const std::string& p_filename);

private:
	void getPedestalFromFile();

	bool m_isFillingPedestalRequited;
	Pedestal & m_pedestal;
	IFileValidator& m_fileValidator;
	const std::string& m_filename;

};

} /* namespace TbUT */