Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
dunecore
dunecore
HDF5Utils
HDF5RawInput.h
Go to the documentation of this file.
1
#ifndef HDF5RawInput_h
2
#define HDF5RawInput_h
3
#include "
art/Framework/Core/InputSourceMacros.h
"
4
#include "
art/Framework/IO/Sources/Source.h
"
5
#include "
art/Framework/IO/Sources/SourceTraits.h
"
6
#include "
art/Framework/Core/Frameworkfwd.h
"
7
#include "
art/Framework/Core/FileBlock.h
"
8
#include "
art/Framework/Core/ProductRegistryHelper.h
"
9
#include "
art/Framework/IO/Sources/SourceHelper.h
"
10
#include "
art/Framework/IO/Sources/put_product_in_principal.h
"
11
#include "
art/Framework/Principal/EventPrincipal.h
"
12
#include "
art/Framework/Principal/RunPrincipal.h
"
13
#include "
art/Framework/Principal/SubRunPrincipal.h
"
14
#include "
art/Framework/Services/Registry/ServiceHandle.h
"
15
#include "
canvas/Persistency/Provenance/FileFormatVersion.h
"
16
#include "
messagefacility/MessageLogger/MessageLogger.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
28
class
dune::HDF5RawInputDetail
{
29
public
:
30
HDF5RawInputDetail
(
fhicl::ParameterSet
const
&
ps
,
31
art::ProductRegistryHelper
& rh,
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
42
void
closeCurrentFile
() {
43
if
(
hdf_file_
->filePtr)
44
dune::HDF5Utils::closeFile
(
std::move
(
hdf_file_
));
45
};
46
47
private
:
48
std::unique_ptr<dune::HDF5Utils::HDFFileInfo>
hdf_file_
;
49
std::deque<std::string>
unprocessedEventList_
;
50
std::string
pretend_module_name
;
51
int
fLogLevel
;
52
art::SourceHelper
const
&
pmaker
;
53
};
54
#endif
dune
Definition:
PdspHDFFileReader.hh:29
art::RunPrincipal
Definition:
RunPrincipal.h:17
InputSourceMacros.h
SourceTraits.h
string
std::string string
Definition:
nybbler.cc:12
dune::HDF5RawInputDetail::readNext
bool readNext(art::RunPrincipal const *const inR, art::SubRunPrincipal const *const inSR, art::RunPrincipal *&outR, art::SubRunPrincipal *&outSR, art::EventPrincipal *&outE)
Definition:
HDF5RawInput_source.cc:35
RunPrincipal.h
dune::HDF5RawInputDetail::unprocessedEventList_
std::deque< std::string > unprocessedEventList_
Definition:
HDF5RawInput.h:49
dune::HDF5RawInputDetail::HDF5RawInputDetail
HDF5RawInputDetail(fhicl::ParameterSet const &ps, art::ProductRegistryHelper &rh, art::SourceHelper const &sh)
Definition:
HDF5RawInput_source.cc:8
dune::HDF5RawInputDetail::pmaker
art::SourceHelper const & pmaker
Definition:
HDF5RawInput.h:52
art::ProductRegistryHelper
Definition:
ProductRegistryHelper.h:39
train.filename
string filename
Definition:
train.py:213
dune::HDF5RawInputDetail::fLogLevel
int fLogLevel
Definition:
HDF5RawInput.h:51
Frameworkfwd.h
MessageLogger.h
ParameterSet.h
ServiceHandle.h
EventPrincipal.h
FileFormatVersion.h
Source.h
wirecell.gen.depos.move
def move(depos, offset)
Definition:
depos.py:107
dune::HDF5RawInputDetail
Definition:
HDF5RawInput.h:28
art::SubRunPrincipal
Definition:
SubRunPrincipal.h:17
genie::units::ps
static constexpr double ps
Definition:
Units.h:99
dune::HDF5RawInputDetail::pretend_module_name
std::string pretend_module_name
Definition:
HDF5RawInput.h:50
HDF5Utils.h
SourceHelper.h
dune::HDF5RawInputDetail::closeCurrentFile
void closeCurrentFile()
Definition:
HDF5RawInput.h:42
SubRunPrincipal.h
art::EventPrincipal
Definition:
EventPrincipal.h:19
art::FileBlock
Definition:
FileBlock.h:17
ProductRegistryHelper.h
art::SourceHelper
Definition:
SourceHelper.h:31
FileBlock.h
dune::HDF5RawInputDetail::readFile
void readFile(std::string const &filename, art::FileBlock *&fb)
Definition:
HDF5RawInput_source.cc:19
put_product_in_principal.h
dune::HDF5RawInputDetail::hdf_file_
std::unique_ptr< dune::HDF5Utils::HDFFileInfo > hdf_file_
Definition:
HDF5RawInput.h:45
dune::HDF5Utils::closeFile
void closeFile(HDFFileInfoPtr hdfFileInfoPtr)
Definition:
HDF5Utils.cc:31
fhicl::ParameterSet
Definition:
ParameterSet.h:36
Generated by
1.8.11