HDF5RawInput.h
Go to the documentation of this file.
1 #ifndef HDF5RawInput_h
2 #define HDF5RawInput_h
17 #include "fhiclcpp/ParameterSet.h"
18 //#include "dune-raw-data/HDFUtils/HDFFileReader.hh"
19 #include "HDF5Utils.h"
20 
21 
22 //Is raw a good namespace?
23 namespace dune {
24 //Forward declare the class
25 class HDF5RawInputDetail;
26 }
27 
29  public:
32  art::SourceHelper const & sh);
33 
34  void readFile(std::string const & filename, art::FileBlock*& fb);
35 
36  bool readNext(art::RunPrincipal const* const inR,
37  art::SubRunPrincipal const* const inSR,
38  art::RunPrincipal*& outR,
39  art::SubRunPrincipal*& outSR,
40  art::EventPrincipal*& outE);
41 
43  if (hdf_file_->filePtr)
45  };
46 
47  private:
48  std::unique_ptr<dune::HDF5Utils::HDFFileInfo> hdf_file_;
49  std::deque<std::string> unprocessedEventList_;
51  int fLogLevel;
53  };
54 #endif
std::string string
Definition: nybbler.cc:12
bool readNext(art::RunPrincipal const *const inR, art::SubRunPrincipal const *const inSR, art::RunPrincipal *&outR, art::SubRunPrincipal *&outSR, art::EventPrincipal *&outE)
std::deque< std::string > unprocessedEventList_
Definition: HDF5RawInput.h:49
HDF5RawInputDetail(fhicl::ParameterSet const &ps, art::ProductRegistryHelper &rh, art::SourceHelper const &sh)
art::SourceHelper const & pmaker
Definition: HDF5RawInput.h:52
string filename
Definition: train.py:213
def move(depos, offset)
Definition: depos.py:107
static constexpr double ps
Definition: Units.h:99
std::string pretend_module_name
Definition: HDF5RawInput.h:50
void readFile(std::string const &filename, art::FileBlock *&fb)
std::unique_ptr< dune::HDF5Utils::HDFFileInfo > hdf_file_
Definition: HDF5RawInput.h:45
void closeFile(HDFFileInfoPtr hdfFileInfoPtr)
Definition: HDF5Utils.cc:31