/** @file * $Author: kusanagi $ * $Date: 2006/02/04 12:37:45 $ * $Revision: 5.1 $ * * Implementation of the base class for the algorithms used to read the * techmodel data file of Pamela. */ #include "TechmodelAlgorithm.h" #include "TechmodelPamelaRun.h" using namespace pamela; using namespace pamela::techmodel; TechmodelAlgorithm::TechmodelAlgorithm(const PacketType* type, std::string name): Algorithm(type, name) { } /** * Set the input stream used to read the techmodel file. */ void TechmodelAlgorithm::SetInputStream(PamelaRun* run) { InputFile = (dynamic_cast(run))->GetInputFile(); } /** * On default, the Init() function just calls the SetInputStream(). */ void TechmodelAlgorithm::Init(PamelaRun* run) { SetInputStream(run); } ClassImp(TechmodelAlgorithm)