1 |
/** @file |
/** @file |
2 |
* $Author: kusanagi $ |
* $Author: kusanagi $ |
3 |
* $Date: 2004/09/21 20:50:54 $ |
* $Date: 2004/09/24 11:57:49 $ |
4 |
* $Revision: 2.0 $ |
* $Revision: 2.1 $ |
5 |
* |
* |
6 |
* Header file for the algorithms used to read the techmodel data file. |
* Header file for the algorithms used to read the techmodel data file. |
7 |
*/ |
*/ |
56 |
#include "TrgAlarmEvent.h" |
#include "TrgAlarmEvent.h" |
57 |
#include "TofAlarmEvent.h" |
#include "TofAlarmEvent.h" |
58 |
|
|
|
|
|
|
|
|
|
#define UINT32 unsigned int |
|
|
#define UINT16 unsigned short |
|
|
#define BYTE unsigned char |
|
|
|
|
59 |
using namespace std; |
using namespace std; |
60 |
|
|
61 |
namespace pamela { |
namespace pamela { |
71 |
public: |
public: |
72 |
PhysEndRunReader(void); |
PhysEndRunReader(void); |
73 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
74 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
75 |
//this type of RUNEvent should be the future develop. |
//this type of RUNEvent should be the future develop. |
76 |
//Pass the buffer not the pointer to file |
//Pass the buffer not the pointer to file |
77 |
//virtual void RunEvent(int, long int, char[]); |
//virtual void RunEvent(int, long int, char[]); |
89 |
public: |
public: |
90 |
CalibCalPulse1Reader(void); |
CalibCalPulse1Reader(void); |
91 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
92 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (Exception); |
93 |
//this type of RUNEvent should be the future develop. |
//this type of RUNEvent should be the future develop. |
94 |
//Pass the buffer not the pointer to file |
//Pass the buffer not the pointer to file |
95 |
//virtual void RunEvent(int, long int, char[]); |
//virtual void RunEvent(int, long int, char[]); |
107 |
public: |
public: |
108 |
CalibCalPulse2Reader(void); |
CalibCalPulse2Reader(void); |
109 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
110 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (Exception); |
111 |
//this type of RUNEvent should be the future develop. |
//this type of RUNEvent should be the future develop. |
112 |
//Pass the buffer not the pointer to file |
//Pass the buffer not the pointer to file |
113 |
//virtual void RunEvent(int, long int, char[]); |
//virtual void RunEvent(int, long int, char[]); |
128 |
public: |
public: |
129 |
PhysicsReader(void); |
PhysicsReader(void); |
130 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
131 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (Exception); |
132 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
133 |
}; |
}; |
134 |
|
|
143 |
public: |
public: |
144 |
CalibTrkBothReader(void); |
CalibTrkBothReader(void); |
145 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
146 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (Exception); |
147 |
//this type of RUNEvent should be the future develop. |
//this type of RUNEvent should be the future develop. |
148 |
//Pass the buffer not the pointer to file |
//Pass the buffer not the pointer to file |
149 |
//virtual void RunEvent(int, long int, char[]); |
//virtual void RunEvent(int, long int, char[]); |
161 |
public: |
public: |
162 |
CalibTrk1Reader(void); |
CalibTrk1Reader(void); |
163 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
164 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (Exception); |
165 |
//this type of RUNEvent should be the future develop. |
//this type of RUNEvent should be the future develop. |
166 |
//Pass the buffer not the pointer to file |
//Pass the buffer not the pointer to file |
167 |
//virtual void RunEvent(int, long int, char[]); |
//virtual void RunEvent(int, long int, char[]); |
179 |
public: |
public: |
180 |
CalibTrk2Reader(void); |
CalibTrk2Reader(void); |
181 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
182 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (Exception); |
183 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
184 |
}; |
}; |
185 |
|
|
194 |
public: |
public: |
195 |
CalibTrdReader(void); |
CalibTrdReader(void); |
196 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
197 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (Exception); |
198 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
199 |
}; |
}; |
200 |
|
|
209 |
public: |
public: |
210 |
CalibTofReader(void); |
CalibTofReader(void); |
211 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
212 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (Exception); |
213 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
214 |
}; |
}; |
215 |
|
|
224 |
public: |
public: |
225 |
CalibS4Reader(void); |
CalibS4Reader(void); |
226 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
227 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (Exception); |
228 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
229 |
}; |
}; |
230 |
|
|
239 |
public: |
public: |
240 |
CalibCalPedReader(void); |
CalibCalPedReader(void); |
241 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
242 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (Exception); |
243 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
244 |
}; |
}; |
245 |
|
|
254 |
public: |
public: |
255 |
CalibAcReader(void); |
CalibAcReader(void); |
256 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
257 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (Exception); |
258 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
259 |
}; |
}; |
260 |
|
|
269 |
public: |
public: |
270 |
RunHeaderReader(void); |
RunHeaderReader(void); |
271 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
272 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
273 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
274 |
}; |
}; |
275 |
|
|
284 |
public: |
public: |
285 |
RunTrailerReader(void); |
RunTrailerReader(void); |
286 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
287 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
288 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
289 |
}; |
}; |
290 |
|
|
299 |
public: |
public: |
300 |
CalibHeaderReader(void); |
CalibHeaderReader(void); |
301 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
302 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
303 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
304 |
}; |
}; |
305 |
|
|
314 |
public: |
public: |
315 |
CalibTrailerReader(void); |
CalibTrailerReader(void); |
316 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
317 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
318 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
319 |
}; |
}; |
320 |
|
|
329 |
public: |
public: |
330 |
InitHeaderReader(void); |
InitHeaderReader(void); |
331 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
332 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
333 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
334 |
}; |
}; |
335 |
|
|
344 |
public: |
public: |
345 |
InitTrailerReader(void); |
InitTrailerReader(void); |
346 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
347 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
348 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
349 |
}; |
}; |
350 |
|
|
359 |
public: |
public: |
360 |
EventTrkReader(void); |
EventTrkReader(void); |
361 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
362 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (Exception); |
363 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
364 |
}; |
}; |
365 |
|
|
374 |
public: |
public: |
375 |
TestTrkReader(void); |
TestTrkReader(void); |
376 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
377 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (Exception); |
378 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
379 |
}; |
}; |
380 |
|
|
388 |
public: |
public: |
389 |
TestTofReader(void); |
TestTofReader(void); |
390 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
391 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (Exception); |
392 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
393 |
}; |
}; |
394 |
|
|
402 |
public: |
public: |
403 |
LogReader(void); |
LogReader(void); |
404 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
405 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
406 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
407 |
}; |
}; |
408 |
|
|
417 |
public: |
public: |
418 |
VarDumpReader(void); |
VarDumpReader(void); |
419 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
420 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
421 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
422 |
}; |
}; |
423 |
|
|
432 |
public: |
public: |
433 |
ArrDumpReader(void); |
ArrDumpReader(void); |
434 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
435 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
436 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
437 |
}; |
}; |
438 |
|
|
447 |
public: |
public: |
448 |
TabDumpReader(void); |
TabDumpReader(void); |
449 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
450 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
451 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
452 |
}; |
}; |
453 |
|
|
469 |
public: |
public: |
470 |
TmtcReader(void); |
TmtcReader(void); |
471 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
472 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
473 |
virtual string GetVersionInfo(void) const; |
virtual string GetVersionInfo(void) const; |
474 |
}; |
}; |
475 |
|
|
484 |
public: |
public: |
485 |
McmdReader(void); |
McmdReader(void); |
486 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
487 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
488 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
489 |
}; |
}; |
490 |
|
|
499 |
public: |
public: |
500 |
ForcedFECmdReader(void); |
ForcedFECmdReader(void); |
501 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
502 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
503 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
504 |
}; |
}; |
505 |
|
|
514 |
public: |
public: |
515 |
AcInitReader(void); |
AcInitReader(void); |
516 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
517 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
518 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
519 |
}; |
}; |
520 |
|
|
529 |
public: |
public: |
530 |
CalInitReader(void); |
CalInitReader(void); |
531 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
532 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
533 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
534 |
}; |
}; |
535 |
|
|
544 |
public: |
public: |
545 |
TrkInitReader(void); |
TrkInitReader(void); |
546 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
547 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
548 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
549 |
}; |
}; |
550 |
|
|
559 |
public: |
public: |
560 |
TofInitReader(void); |
TofInitReader(void); |
561 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
562 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
563 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
564 |
}; |
}; |
565 |
|
|
574 |
public: |
public: |
575 |
TrgInitReader(void); |
TrgInitReader(void); |
576 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
577 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
578 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
579 |
}; |
}; |
580 |
|
|
588 |
public: |
public: |
589 |
NdInitReader(void); |
NdInitReader(void); |
590 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
591 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
592 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
593 |
}; |
}; |
594 |
|
|
603 |
public: |
public: |
604 |
CalAlarmReader(void); |
CalAlarmReader(void); |
605 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
606 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
607 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
608 |
}; |
}; |
609 |
|
|
617 |
public: |
public: |
618 |
AcAlarmReader(void); |
AcAlarmReader(void); |
619 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
620 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
621 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
622 |
}; |
}; |
623 |
|
|
631 |
public: |
public: |
632 |
TrkAlarmReader(void); |
TrkAlarmReader(void); |
633 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
634 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
635 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
636 |
}; |
}; |
637 |
|
|
645 |
public: |
public: |
646 |
TrgAlarmReader(void); |
TrgAlarmReader(void); |
647 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
648 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
649 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
650 |
}; |
}; |
651 |
|
|
659 |
public: |
public: |
660 |
TofAlarmReader(void); |
TofAlarmReader(void); |
661 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
662 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
663 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
664 |
}; |
}; |
665 |
|
|
673 |
public: |
public: |
674 |
PscuReader(void); |
PscuReader(void); |
675 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
676 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
677 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
678 |
}; |
}; |
679 |
|
|