~mbogomilov/maus/devel3

« back to all changes in this revision

Viewing changes to src/input/InputCppDAQOfflineData/InputCppDAQOfflineData.cc

  • Committer: Durga Rajaram
  • Date: 2014-01-14 07:07:02 UTC
  • mfrom: (659.1.80 relcand)
  • Revision ID: durga@fnal.gov-20140114070702-2l1fuj1w6rraw7xe
Tags: MAUS-v0.7.6
MAUS-v0.7.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 
18
18
#include "src/input/InputCppDAQOfflineData/InputCppDAQOfflineData.hh"
19
19
 
 
20
namespace MAUS {
 
21
 
20
22
InputCppDAQOfflineData::InputCppDAQOfflineData(std::string pDataPath, std::string pFilename)
21
23
:InputCppDAQData::InputCppDAQData(), _dataPaths(pDataPath), _datafiles(pFilename) {
22
24
  _classname = "InputCppDAQOfflineData";
24
26
 
25
27
bool InputCppDAQOfflineData::birth(std::string jsonDataCards) {
26
28
 
27
 
  if (!InputCppDAQData::birth(jsonDataCards))
28
 
    return false;
29
 
 
30
29
  if ( _dataFileManager.GetNFiles() ) {
31
30
     return false;  // Faile because files are already open.
32
31
  }
80
79
    return false;
81
80
  }
82
81
 
 
82
  if (!InputCppDAQData::birth(jsonDataCards))
 
83
    return false;
 
84
 
83
85
  // _dataProcessManager.DumpProcessors();
84
86
 
85
87
  return true;
93
95
    if (_eventsCount >= _maxNumEvents)
94
96
      return false;
95
97
 
96
 
  // cout << "InputCppDAQData::readNextEvent   event " << _eventsCount << endl;
 
98
//   cerr << "InputCppDAQData::readNextEvent   event: " << _eventsCount << endl;
97
99
 
98
100
  // Use the MDfileManager object to get the next event.
99
101
  if (_phys_Events_Only && (!_calib_Events_Only))
110
112
 
111
113
  return true;
112
114
}
113
 
 
114
 
 
 
115
}
115
116
 
116
117
 
117
118