All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
LArRawInputDriver.h
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 /// \file LArRawInputDriver.h
3 /// \brief Source to convert raw binary files to root files
4 ///
5 /// \author brebel@fnal.gov, soderber@fnal.gov
6 ////////////////////////////////////////////////////////////////////////
7 
8 #include "canvas/Persistency/Provenance/SubRunID.h"
9 
10 #include <string>
11 #include <vector>
12 
13 namespace art {
14  class EventPrincipal;
15  class FileBlock;
16  class ProductRegistryHelper;
17  class RunPrincipal;
18  class SourceHelper;
19  class SubRunPrincipal;
20 }
21 namespace fhicl { class ParameterSet; }
22 
23 ///Conversion of binary data to root files
24 namespace lris {
25  class LArRawInputDriver;
26 }
27 
29  /// Class to fill the constraints on a template argument to the class,
30  /// FileReaderSource
31  public:
32  // Required constructor
33  LArRawInputDriver(fhicl::ParameterSet const &pset,
34  art::ProductRegistryHelper &helper,
35  art::SourceHelper const &pm);
36 
37  // Required by FileReaderSource:
38  void closeCurrentFile();
39  void readFile(std::string const &name,
40  art::FileBlock* &fb);
41  bool readNext(art::RunPrincipal* const &inR,
42  art::SubRunPrincipal* const &inSR,
43  art::RunPrincipal* &outR,
44  art::SubRunPrincipal* &outSR,
45  art::EventPrincipal* &outE);
46 
47  private:
48  // --- data members:
49  typedef std::vector<std::string> stringvec_t;
50 
51  art::SourceHelper const& principalMaker_;
52  std::string currentDir_;
54  stringvec_t::const_iterator nextfile_;
55  stringvec_t::const_iterator filesdone_;
56  art::SubRunID currentSubRunID_;
57 }; // LArRawInputDriver
art::SubRunID currentSubRunID_
void readFile(std::string const &name, art::FileBlock *&fb)
stringvec_t::const_iterator nextfile_
art::SourceHelper const & principalMaker_
LArRawInputDriver(fhicl::ParameterSet const &pset, art::ProductRegistryHelper &helper, art::SourceHelper const &pm)
stringvec_t::const_iterator filesdone_
std::vector< std::string > stringvec_t
bool readNext(art::RunPrincipal *const &inR, art::SubRunPrincipal *const &inSR, art::RunPrincipal *&outR, art::SubRunPrincipal *&outSR, art::EventPrincipal *&outE)
then echo fcl name