| 1 |
/** @file |
/** @file |
| 2 |
* $Author: kusanagi $ |
* $Author: kusanagi $ |
| 3 |
* $Date: 2004/07/29 16:19:11 $ |
* $Date: 2004/12/03 22:08:01 $ |
| 4 |
* $Revision: 1.6 $ |
* $Revision: 2.2 $ |
| 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 |
*/ |
*/ |
| 20 |
#include "physics/AnticounterReader.h" |
#include "physics/AnticounterReader.h" |
| 21 |
#include "physics/CalorimeterReader.h" |
#include "physics/CalorimeterReader.h" |
| 22 |
#include "physics/NeutronDetectorReader.h" |
#include "physics/NeutronDetectorReader.h" |
| 23 |
|
#include "physics/S4Reader.h" |
| 24 |
#include "CalibTrkBothEvent.h" |
#include "CalibTrkBothEvent.h" |
| 25 |
#include "CalibTrk1Event.h" |
#include "CalibTrk1Event.h" |
| 26 |
#include "CalibTrk2Event.h" |
#include "CalibTrk2Event.h" |
| 37 |
#include "InitTrailerEvent.h" |
#include "InitTrailerEvent.h" |
| 38 |
#include "EventTrkEvent.h" |
#include "EventTrkEvent.h" |
| 39 |
#include "TestTrkEvent.h" |
#include "TestTrkEvent.h" |
| 40 |
|
#include "TestTofEvent.h" |
| 41 |
#include "log/LogEvent.h" |
#include "log/LogEvent.h" |
| 42 |
#include "varDump/VarDumpEvent.h" |
#include "varDump/VarDumpEvent.h" |
| 43 |
#include "arrDump/ArrDumpEvent.h" |
#include "arrDump/ArrDumpEvent.h" |
| 50 |
#include "TrkInitEvent.h" |
#include "TrkInitEvent.h" |
| 51 |
#include "TofInitEvent.h" |
#include "TofInitEvent.h" |
| 52 |
#include "TrgInitEvent.h" |
#include "TrgInitEvent.h" |
| 53 |
|
#include "NdInitEvent.h" |
| 54 |
|
#include "S4InitEvent.h" |
| 55 |
|
#include "CalAlarmEvent.h" |
| 56 |
#define UINT32 unsigned int |
#include "AcAlarmEvent.h" |
| 57 |
#define UINT16 unsigned short |
#include "TrkAlarmEvent.h" |
| 58 |
#define BYTE unsigned char |
#include "TrgAlarmEvent.h" |
| 59 |
|
#include "TofAlarmEvent.h" |
| 60 |
|
#include "S4AlarmEvent.h" |
| 61 |
|
|
| 62 |
using namespace std; |
using namespace std; |
| 63 |
|
|
| 74 |
public: |
public: |
| 75 |
PhysEndRunReader(void); |
PhysEndRunReader(void); |
| 76 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
| 77 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
| 78 |
//this type of RUNEvent should be the future develop. |
//this type of RUNEvent should be the future develop. |
| 79 |
//Pass the buffer not the pointer to file |
//Pass the buffer not the pointer to file |
| 80 |
//virtual void RunEvent(int, long int, char[]); |
//virtual void RunEvent(int, long int, char[]); |
| 92 |
public: |
public: |
| 93 |
CalibCalPulse1Reader(void); |
CalibCalPulse1Reader(void); |
| 94 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
| 95 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (Exception); |
| 96 |
//this type of RUNEvent should be the future develop. |
//this type of RUNEvent should be the future develop. |
| 97 |
//Pass the buffer not the pointer to file |
//Pass the buffer not the pointer to file |
| 98 |
//virtual void RunEvent(int, long int, char[]); |
//virtual void RunEvent(int, long int, char[]); |
| 110 |
public: |
public: |
| 111 |
CalibCalPulse2Reader(void); |
CalibCalPulse2Reader(void); |
| 112 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
| 113 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (Exception); |
| 114 |
//this type of RUNEvent should be the future develop. |
//this type of RUNEvent should be the future develop. |
| 115 |
//Pass the buffer not the pointer to file |
//Pass the buffer not the pointer to file |
| 116 |
//virtual void RunEvent(int, long int, char[]); |
//virtual void RunEvent(int, long int, char[]); |
| 128 |
anticounter::AnticounterReader* anticounterReader; |
anticounter::AnticounterReader* anticounterReader; |
| 129 |
calorimeter::CalorimeterReader* calorimeterReader; |
calorimeter::CalorimeterReader* calorimeterReader; |
| 130 |
neutron::NeutronDetectorReader* neutronReader; |
neutron::NeutronDetectorReader* neutronReader; |
| 131 |
|
S4::S4Reader* s4Reader; |
| 132 |
public: |
public: |
| 133 |
PhysicsReader(void); |
PhysicsReader(void); |
| 134 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
| 135 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (Exception); |
| 136 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
| 137 |
}; |
}; |
| 138 |
|
|
| 147 |
public: |
public: |
| 148 |
CalibTrkBothReader(void); |
CalibTrkBothReader(void); |
| 149 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
| 150 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (Exception); |
| 151 |
//this type of RUNEvent should be the future develop. |
//this type of RUNEvent should be the future develop. |
| 152 |
//Pass the buffer not the pointer to file |
//Pass the buffer not the pointer to file |
| 153 |
//virtual void RunEvent(int, long int, char[]); |
//virtual void RunEvent(int, long int, char[]); |
| 165 |
public: |
public: |
| 166 |
CalibTrk1Reader(void); |
CalibTrk1Reader(void); |
| 167 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
| 168 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (Exception); |
| 169 |
//this type of RUNEvent should be the future develop. |
//this type of RUNEvent should be the future develop. |
| 170 |
//Pass the buffer not the pointer to file |
//Pass the buffer not the pointer to file |
| 171 |
//virtual void RunEvent(int, long int, char[]); |
//virtual void RunEvent(int, long int, char[]); |
| 183 |
public: |
public: |
| 184 |
CalibTrk2Reader(void); |
CalibTrk2Reader(void); |
| 185 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
| 186 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (Exception); |
| 187 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
| 188 |
}; |
}; |
| 189 |
|
|
| 198 |
public: |
public: |
| 199 |
CalibTrdReader(void); |
CalibTrdReader(void); |
| 200 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
| 201 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (Exception); |
| 202 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
| 203 |
}; |
}; |
| 204 |
|
|
| 213 |
public: |
public: |
| 214 |
CalibTofReader(void); |
CalibTofReader(void); |
| 215 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
| 216 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (Exception); |
| 217 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
| 218 |
}; |
}; |
| 219 |
|
|
| 228 |
public: |
public: |
| 229 |
CalibS4Reader(void); |
CalibS4Reader(void); |
| 230 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
| 231 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (Exception); |
| 232 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
| 233 |
}; |
}; |
| 234 |
|
|
| 243 |
public: |
public: |
| 244 |
CalibCalPedReader(void); |
CalibCalPedReader(void); |
| 245 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
| 246 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (Exception); |
| 247 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
| 248 |
}; |
}; |
| 249 |
|
|
| 258 |
public: |
public: |
| 259 |
CalibAcReader(void); |
CalibAcReader(void); |
| 260 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
| 261 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (Exception); |
| 262 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
| 263 |
}; |
}; |
| 264 |
|
|
| 273 |
public: |
public: |
| 274 |
RunHeaderReader(void); |
RunHeaderReader(void); |
| 275 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
| 276 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
| 277 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
| 278 |
}; |
}; |
| 279 |
|
|
| 288 |
public: |
public: |
| 289 |
RunTrailerReader(void); |
RunTrailerReader(void); |
| 290 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
| 291 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
| 292 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
| 293 |
}; |
}; |
| 294 |
|
|
| 303 |
public: |
public: |
| 304 |
CalibHeaderReader(void); |
CalibHeaderReader(void); |
| 305 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
| 306 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
| 307 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
| 308 |
}; |
}; |
| 309 |
|
|
| 318 |
public: |
public: |
| 319 |
CalibTrailerReader(void); |
CalibTrailerReader(void); |
| 320 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
| 321 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
| 322 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
| 323 |
}; |
}; |
| 324 |
|
|
| 333 |
public: |
public: |
| 334 |
InitHeaderReader(void); |
InitHeaderReader(void); |
| 335 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
| 336 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
| 337 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
| 338 |
}; |
}; |
| 339 |
|
|
| 348 |
public: |
public: |
| 349 |
InitTrailerReader(void); |
InitTrailerReader(void); |
| 350 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
| 351 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
| 352 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
| 353 |
}; |
}; |
| 354 |
|
|
| 363 |
public: |
public: |
| 364 |
EventTrkReader(void); |
EventTrkReader(void); |
| 365 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
| 366 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (Exception); |
| 367 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
| 368 |
}; |
}; |
| 369 |
|
|
| 378 |
public: |
public: |
| 379 |
TestTrkReader(void); |
TestTrkReader(void); |
| 380 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
| 381 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (Exception); |
| 382 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
| 383 |
}; |
}; |
| 384 |
|
|
| 385 |
|
/********************************************** |
| 386 |
|
* Event reader algorithm for TestTof events. |
| 387 |
|
**********************************************/ |
| 388 |
|
class TestTofReader: public TechmodelAlgorithm { |
| 389 |
|
private: |
| 390 |
|
/** The TestTof event that is created in the reader. */ |
| 391 |
|
TestTofEvent* testTof; |
| 392 |
|
public: |
| 393 |
|
TestTofReader(void); |
| 394 |
|
virtual void Init(PamelaRun *); |
| 395 |
|
virtual void RunEvent(int, long int) throw (Exception); |
| 396 |
|
virtual std::string GetVersionInfo(void) const; |
| 397 |
|
}; |
| 398 |
|
|
| 399 |
/********************************************** |
/********************************************** |
| 400 |
* Event reader algorithm for Log events. |
* Event reader algorithm for Log events. |
| 406 |
public: |
public: |
| 407 |
LogReader(void); |
LogReader(void); |
| 408 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
| 409 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
| 410 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
| 411 |
}; |
}; |
| 412 |
|
|
| 421 |
public: |
public: |
| 422 |
VarDumpReader(void); |
VarDumpReader(void); |
| 423 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
| 424 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
| 425 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
| 426 |
}; |
}; |
| 427 |
|
|
| 436 |
public: |
public: |
| 437 |
ArrDumpReader(void); |
ArrDumpReader(void); |
| 438 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
| 439 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
| 440 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
| 441 |
}; |
}; |
| 442 |
|
|
| 451 |
public: |
public: |
| 452 |
TabDumpReader(void); |
TabDumpReader(void); |
| 453 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
| 454 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
| 455 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
| 456 |
}; |
}; |
| 457 |
|
|
| 473 |
public: |
public: |
| 474 |
TmtcReader(void); |
TmtcReader(void); |
| 475 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
| 476 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
| 477 |
virtual string GetVersionInfo(void) const; |
virtual string GetVersionInfo(void) const; |
| 478 |
}; |
}; |
| 479 |
|
|
| 488 |
public: |
public: |
| 489 |
McmdReader(void); |
McmdReader(void); |
| 490 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
| 491 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
| 492 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
| 493 |
}; |
}; |
| 494 |
|
|
| 503 |
public: |
public: |
| 504 |
ForcedFECmdReader(void); |
ForcedFECmdReader(void); |
| 505 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
| 506 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
| 507 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
| 508 |
}; |
}; |
| 509 |
|
|
| 518 |
public: |
public: |
| 519 |
AcInitReader(void); |
AcInitReader(void); |
| 520 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
| 521 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
| 522 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
| 523 |
}; |
}; |
| 524 |
|
|
| 533 |
public: |
public: |
| 534 |
CalInitReader(void); |
CalInitReader(void); |
| 535 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
| 536 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
| 537 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
| 538 |
}; |
}; |
| 539 |
|
|
| 548 |
public: |
public: |
| 549 |
TrkInitReader(void); |
TrkInitReader(void); |
| 550 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
| 551 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
| 552 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
| 553 |
}; |
}; |
| 554 |
|
|
| 563 |
public: |
public: |
| 564 |
TofInitReader(void); |
TofInitReader(void); |
| 565 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
| 566 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
| 567 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
| 568 |
}; |
}; |
| 569 |
|
|
| 578 |
public: |
public: |
| 579 |
TrgInitReader(void); |
TrgInitReader(void); |
| 580 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
| 581 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
| 582 |
|
virtual std::string GetVersionInfo(void) const; |
| 583 |
|
}; |
| 584 |
|
|
| 585 |
|
/********************************************** |
| 586 |
|
* Event reader algorithm for NdInit events. |
| 587 |
|
**********************************************/ |
| 588 |
|
class NdInitReader: public TechmodelAlgorithm { |
| 589 |
|
private: |
| 590 |
|
/** The NdInit event that is created in the reader. */ |
| 591 |
|
NdInitEvent* ndInit; |
| 592 |
|
public: |
| 593 |
|
NdInitReader(void); |
| 594 |
|
virtual void Init(PamelaRun *); |
| 595 |
|
virtual void RunEvent(int, long int) throw (WrongCRCException); |
| 596 |
|
virtual std::string GetVersionInfo(void) const; |
| 597 |
|
}; |
| 598 |
|
|
| 599 |
|
/********************************************** |
| 600 |
|
* Event reader algorithm for S4Init events. |
| 601 |
|
**********************************************/ |
| 602 |
|
class S4InitReader: public TechmodelAlgorithm { |
| 603 |
|
private: |
| 604 |
|
/** The S4Init event that is created in the reader. */ |
| 605 |
|
S4InitEvent* s4Init; |
| 606 |
|
public: |
| 607 |
|
S4InitReader(void); |
| 608 |
|
virtual void Init(PamelaRun *); |
| 609 |
|
virtual void RunEvent(int, long int) throw (WrongCRCException); |
| 610 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
| 611 |
}; |
}; |
| 612 |
|
|
| 613 |
|
|
| 614 |
/********************************************** |
/********************************************** |
| 615 |
|
* Event reader algorithm for CalAlarm events. |
| 616 |
|
**********************************************/ |
| 617 |
|
class CalAlarmReader: public TechmodelAlgorithm { |
| 618 |
|
private: |
| 619 |
|
/** The CalAlarm event that is created in the reader. */ |
| 620 |
|
CalAlarmEvent* calAlarm; |
| 621 |
|
public: |
| 622 |
|
CalAlarmReader(void); |
| 623 |
|
virtual void Init(PamelaRun *); |
| 624 |
|
virtual void RunEvent(int, long int) throw (WrongCRCException); |
| 625 |
|
virtual std::string GetVersionInfo(void) const; |
| 626 |
|
}; |
| 627 |
|
|
| 628 |
|
/********************************************** |
| 629 |
|
* Event reader algorithm for AcAlarm events. |
| 630 |
|
**********************************************/ |
| 631 |
|
class AcAlarmReader: public TechmodelAlgorithm { |
| 632 |
|
private: |
| 633 |
|
/** The AcAlarm event that is created in the reader. */ |
| 634 |
|
AcAlarmEvent* acAlarm; |
| 635 |
|
public: |
| 636 |
|
AcAlarmReader(void); |
| 637 |
|
virtual void Init(PamelaRun *); |
| 638 |
|
virtual void RunEvent(int, long int) throw (WrongCRCException); |
| 639 |
|
virtual std::string GetVersionInfo(void) const; |
| 640 |
|
}; |
| 641 |
|
|
| 642 |
|
/********************************************** |
| 643 |
|
* Event reader algorithm for TrkAlarm events. |
| 644 |
|
**********************************************/ |
| 645 |
|
class TrkAlarmReader: public TechmodelAlgorithm { |
| 646 |
|
private: |
| 647 |
|
/** The TrkAlarm event that is created in the reader. */ |
| 648 |
|
TrkAlarmEvent* trkAlarm; |
| 649 |
|
public: |
| 650 |
|
TrkAlarmReader(void); |
| 651 |
|
virtual void Init(PamelaRun *); |
| 652 |
|
virtual void RunEvent(int, long int) throw (WrongCRCException); |
| 653 |
|
virtual std::string GetVersionInfo(void) const; |
| 654 |
|
}; |
| 655 |
|
|
| 656 |
|
/********************************************** |
| 657 |
|
* Event reader algorithm for TrgAlarm events. |
| 658 |
|
**********************************************/ |
| 659 |
|
class TrgAlarmReader: public TechmodelAlgorithm { |
| 660 |
|
private: |
| 661 |
|
/** The TrgAlarm event that is created in the reader. */ |
| 662 |
|
TrgAlarmEvent* trgAlarm; |
| 663 |
|
public: |
| 664 |
|
TrgAlarmReader(void); |
| 665 |
|
virtual void Init(PamelaRun *); |
| 666 |
|
virtual void RunEvent(int, long int) throw (WrongCRCException); |
| 667 |
|
virtual std::string GetVersionInfo(void) const; |
| 668 |
|
}; |
| 669 |
|
|
| 670 |
|
/********************************************** |
| 671 |
|
* Event reader algorithm for TofAlarm events. |
| 672 |
|
**********************************************/ |
| 673 |
|
class TofAlarmReader: public TechmodelAlgorithm { |
| 674 |
|
private: |
| 675 |
|
/** The TofAlarm event that is created in the reader. */ |
| 676 |
|
TofAlarmEvent* tofAlarm; |
| 677 |
|
public: |
| 678 |
|
TofAlarmReader(void); |
| 679 |
|
virtual void Init(PamelaRun *); |
| 680 |
|
virtual void RunEvent(int, long int) throw (WrongCRCException); |
| 681 |
|
virtual std::string GetVersionInfo(void) const; |
| 682 |
|
}; |
| 683 |
|
|
| 684 |
|
/********************************************** |
| 685 |
|
* Event reader algorithm for S4Alarm events. |
| 686 |
|
**********************************************/ |
| 687 |
|
class S4AlarmReader: public TechmodelAlgorithm { |
| 688 |
|
private: |
| 689 |
|
/** The S4Alarm event that is created in the reader. */ |
| 690 |
|
S4AlarmEvent* s4Alarm; |
| 691 |
|
public: |
| 692 |
|
S4AlarmReader(void); |
| 693 |
|
virtual void Init(PamelaRun *); |
| 694 |
|
virtual void RunEvent(int, long int) throw (WrongCRCException); |
| 695 |
|
virtual std::string GetVersionInfo(void) const; |
| 696 |
|
}; |
| 697 |
|
|
| 698 |
|
/********************************************** |
| 699 |
* Event reader algorithm for PSCU events. |
* Event reader algorithm for PSCU events. |
| 700 |
**********************************************/ |
**********************************************/ |
| 701 |
class PscuReader: public TechmodelAlgorithm { |
class PscuReader: public TechmodelAlgorithm { |
| 705 |
public: |
public: |
| 706 |
PscuReader(void); |
PscuReader(void); |
| 707 |
virtual void Init(PamelaRun *); |
virtual void Init(PamelaRun *); |
| 708 |
virtual void RunEvent(int, long int); |
virtual void RunEvent(int, long int) throw (WrongCRCException); |
| 709 |
virtual std::string GetVersionInfo(void) const; |
virtual std::string GetVersionInfo(void) const; |
| 710 |
}; |
}; |
| 711 |
|
|
| 716 |
#endif /* READER_ALGORITHM_H */ |
#endif /* READER_ALGORITHM_H */ |
| 717 |
|
|
| 718 |
|
|
| 719 |
|
|