~chris-rogers/maus/emr_mc_digitization

« back to all changes in this revision

Viewing changes to src/input/InputCppDAQOnlineData/InputCppDAQOnlineData.hh

  • Committer: Chris Rogers
  • Date: 2014-04-16 11:48:45 UTC
  • mfrom: (707 merge)
  • mto: This revision was merged to the branch mainline in revision 711.
  • Revision ID: chris.rogers@stfc.ac.uk-20140416114845-h3u3q7pdcxkxvovs
Update to trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
 
27
27
#include "src/input/InputCppDAQData/InputCppDAQData.hh"
28
28
 
 
29
namespace MAUS {
 
30
/** \class InputCppDAQOnlineData
 
31
* This class is used to access the DAQ data online.
 
32
*/
29
33
class InputCppDAQOnlineData : public InputCppDAQData {
30
34
 
31
35
 public:
32
36
 
33
37
  /** Create an instance of InputCppDAQOnlineData.
34
 
  * 
 
38
  *
35
39
  * This is the constructor for InputCppDAQOnlineData.
36
 
  *
37
 
  * \param[in] pDataPath The (directory) path to read the data from
38
 
  * \param[in] pFilename The filename to read from the pDataPath directory
39
40
  */
40
41
  InputCppDAQOnlineData();
41
42
 
42
43
  /** Initialise the Unpacker.
43
44
  *
44
 
  * This prepares the unpacker to read the files given in the constructor.
 
45
  * This prepares the unpacker to read from a socket given in the configuration.
45
46
  *
46
 
  * \return True if at least one file was opened sucessfully.
 
47
  * \return True if initialised sucessfully.
47
48
  */
48
49
  bool birth(std::string pJSONConfig);
49
50
 
60
61
   *
61
62
   *  \param mon file name of the source
62
63
   */
63
 
  void setMonitorSrc(std::string mon) {
64
 
    _dataManager->setMonSrc(mon);
65
 
    _dataManager->Init();
66
 
  }
 
64
  void setMonitorSrc(std::string mon);
67
65
 
68
66
 private:
69
67
 
71
69
  MDmonitoring * _dataManager;
72
70
  struct timespec _sleep_time; // time.h
73
71
};
 
72
}
74
73
 
75
74
#endif  // _MAUS_INPUTCPPDAQDATA_INPUTCPPDAQDATA_H__