~chris-rogers/maus/emr_mc_digitization

« back to all changes in this revision

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

  • 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:
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