~ajdobbs/maus/event-selection

« back to all changes in this revision

Viewing changes to src/input/InputCppDAQData/UnpackEventLib.hh

  • Committer: Yordan Karadzhov
  • Date: 2016-07-01 11:05:05 UTC
  • Revision ID: yordan.karadzhov@cern.ch-20160701110505-6c8a0osghvnwffjy
EpicsInterface and TriggerEngine are added to the Data structure.

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
#include "unpacking/MDfragmentV830.h"
37
37
#include "unpacking/MDfragmentDBB.h"
38
38
#include "unpacking/MDfragmentDBBChain.h"
 
39
#include "unpacking/MDfragmentV1495.h"
 
40
#include "unpacking/MDfragmentEI.h"
39
41
#include "unpacking/MDequipMap.h"
40
42
 
41
43
#include "src/input/InputCppDAQData/fADCDataProcessor.hh"
443
445
 
444
446
  MAUS::DBBArray _spill;
445
447
};
 
448
 
 
449
class TriggerEngineCppDataProcessor : public MDarranger {
 
450
 public:
 
451
  TriggerEngineCppDataProcessor()  {_equipment="V1495";}
 
452
 
 
453
  virtual ~TriggerEngineCppDataProcessor() {}
 
454
 
 
455
 /** Unpack a single event part to the MAUS Data Structure.
 
456
  *
 
457
  * This function unpacks a single particleevent,
 
458
  * into the MAUS Data Structur tree.
 
459
  *
 
460
  * \param[in,out] dc Pointer to the event to process.
 
461
  * recorded by equipment a chain of 6 DBBs (EMR boards)
 
462
  * Will be casted to MDfragmentDBBChain.
 
463
  */
 
464
  virtual int Process(MDdataContainer* dc);
 
465
 
 
466
 /**
 
467
  * This function uses the Part Event Array of the different detectors
 
468
  * to fill into the DAQData object.
 
469
  */
 
470
  void fill_daq_data();
 
471
 
 
472
  void reset();
 
473
 
 
474
 private:
 
475
 
 
476
  MAUS::TriggerEngine _tr_spill;
 
477
};
 
478
 
 
479
class EpicsInterfaceCppDataProcessor : public MDarranger {
 
480
 public:
 
481
  EpicsInterfaceCppDataProcessor()  {_equipment="EI";}
 
482
 
 
483
  virtual ~EpicsInterfaceCppDataProcessor() {}
 
484
 
 
485
 /** Unpack a single event part to the MAUS Data Structure.
 
486
  *
 
487
  * This function unpacks a single particleevent,
 
488
  * into the MAUS Data Structur tree.
 
489
  *
 
490
  * \param[in,out] dc Pointer to the event to process.
 
491
  * recorded by equipment a chain of 6 DBBs (EMR boards)
 
492
  * Will be casted to MDfragmentDBBChain.
 
493
  */
 
494
  virtual int Process(MDdataContainer* dc);
 
495
 
 
496
 /**
 
497
  * This function uses the Part Event Array of the different detectors
 
498
  * to fill into the DAQData object.
 
499
  */
 
500
  void fill_daq_data();
 
501
 
 
502
  void reset();
 
503
 
 
504
 private:
 
505
 
 
506
  MAUS::EpicsInterface _ei_spill;
 
507
};
446
508
}
447
509
 
448
510
#endif  // _MAUS_INPUTCPPDATA_UNPACKEVENTLIB_H__