/[PAMELA software]/yoda/techmodel/TechmodelAlgorithm.cpp
ViewVC logotype

Contents of /yoda/techmodel/TechmodelAlgorithm.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4.0 - (show annotations) (download)
Sun Mar 6 04:33:02 2005 UTC (19 years, 9 months ago) by kusanagi
Branch: MAIN
CVS Tags: yodaPreTermistors2_1/00, YODA4_1/00, YODA4_0/04, YODA4_0/03, YODA4_0/02, YODA4_0/01, YODA4_3/02, YODA4_3/00, YODA4_3/01, YODA4_2/01, YODA4_2/00, YODA4_2/03, yodaPreTermistores2_0/00
Branch point for: PreThermistores2
Changes since 3.0: +2 -2 lines
Stable version 4.0 - 6 March 2005 - Maurizio Nagni

1 /** @file
2 * $Author: kusanagi $
3 * $Date: 2005/03/04 15:54:11 $
4 * $Revision: 3.0 $
5 *
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)

  ViewVC Help
Powered by ViewVC 1.1.23