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

Annotation of /yoda/techmodel/TestTofReader.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4.4 - (hide annotations) (download)
Sat May 28 10:44:11 2005 UTC (19 years, 6 months ago) by kusanagi
Branch: MAIN
Changes since 4.0: +0 -0 lines
Main features of this release are:
- updated classes documentations;
- major changes on the calibration fortran routine for the calorimeter
- update on the TMTC thermistors
- removed old classes as CalibTrkBoth and CalibTrd

1 kusanagi 1.1
2     // Implementation of the TestTofReader class.
3    
4    
5     #include <string>
6     #include <log4cxx/logger.h>
7     extern "C" {
8     #include "CRC.h"
9     }
10     #include <fstream>
11     #include "ReaderAlgorithms.h"
12    
13    
14     using namespace pamela;
15     using namespace pamela::techmodel;
16    
17     static log4cxx::LoggerPtr logger = log4cxx::Logger::getLogger(_T("pamela.techmodel.TestTofReader"));
18    
19     /**
20     * Constructor.
21     */
22     TestTofReader::TestTofReader(void):
23     TechmodelAlgorithm(PacketType::TestTof, "TechmodelTestTofReader") {
24     logger->debug(_T("Constructor"));
25     testTof = new TestTofEvent();
26     }
27    
28     /**
29     * Get a string with the version info of the algorithm.
30     */
31     std::string TestTofReader::GetVersionInfo(void) const {
32     return
33     "$Trailer: /home/cvsmanager/yoda/techmodel/TestTofReader.cpp,v 1.1.1.1 2004/07/06 12:20:23 kusanagi Exp $\n";
34     }
35    
36     /**
37     * Initialize the algorithm with a special run. This will initialize the
38     * event reader routines for all packet types.
39     */
40     void TestTofReader::Init(PamelaRun *run) {
41     SetInputStream(run);
42     run->WriteSubPacket(this, &testTof, testTof->Class());
43     logger->debug(_T("Initialize"));
44     }
45    
46     /**
47     * Unpack the TestTof event from an input file.
48     */
49 kusanagi 2.1 void TestTofReader::RunEvent(int EventNumber, long int length) throw (Exception){
50 kusanagi 1.1
51    
52     }
53    

  ViewVC Help
Powered by ViewVC 1.1.23