1 |
kusanagi |
1.1 |
/** @file |
2 |
kusanagi |
2.0 |
* $Author: kusanagi $ |
3 |
kusanagi |
4.4 |
* $Date: 2005/03/06 04:33:02 $ |
4 |
|
|
* $Revision: 4.0 $ |
5 |
kusanagi |
1.1 |
* |
6 |
|
|
* Implementation of the base class for the algorithms used to read the |
7 |
|
|
* techmodel data file of Pamela. |
8 |
|
|
*/ |
9 |
|
|
|
10 |
|
|
|
11 |
|
|
#include "TechmodelAlgorithm.h" |
12 |
|
|
#include "TechmodelPamelaRun.h" |
13 |
|
|
|
14 |
|
|
using namespace pamela; |
15 |
|
|
using namespace pamela::techmodel; |
16 |
|
|
|
17 |
|
|
TechmodelAlgorithm::TechmodelAlgorithm(const PacketType* type, std::string name): |
18 |
|
|
Algorithm(type, name) { |
19 |
|
|
} |
20 |
|
|
|
21 |
|
|
/** |
22 |
|
|
* Set the input stream used to read the techmodel file. |
23 |
|
|
*/ |
24 |
|
|
void TechmodelAlgorithm::SetInputStream(PamelaRun* run) { |
25 |
|
|
InputFile = (dynamic_cast<TechmodelPamelaRun*>(run))->GetInputFile(); |
26 |
|
|
} |
27 |
|
|
|
28 |
|
|
/** |
29 |
|
|
* On default, the Init() function just calls the SetInputStream(). |
30 |
|
|
*/ |
31 |
|
|
void TechmodelAlgorithm::Init(PamelaRun* run) { |
32 |
|
|
SetInputStream(run); |
33 |
|
|
} |
34 |
|
|
|
35 |
|
|
ClassImp(TechmodelAlgorithm) |