All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
LArRawInputDriverShortBo.h
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 /// \file LArRawInputDriverShortBo.h
3 /// \brief Source to convert raw binary files to root files for Short Bo TPC
4 ///
5 /// \author brebel@fnal.gov, soderber@fnal.gov
6 ////////////////////////////////////////////////////////////////////////
7 
8 namespace art {
9  class EventPrincipal;
10  class FileBlock;
11  class ProductRegistryHelper;
12  class RunPrincipal;
13  class SourceHelper;
14  class SubRunPrincipal;
15 }
16 namespace fhicl { class ParameterSet; }
17 
18 #include "canvas/Persistency/Provenance/SubRunID.h"
19 
20 #include <string>
21 #include <vector>
22 
23 ///Conversion of binary data to root files
24 namespace lris {
25  class LArRawInputDriverShortBo;
26 }
27 
29  /// Class to fill the constraints on a template argument to the class,
30  /// FileReaderSource
31  public:
32  // Required constructor
33  LArRawInputDriverShortBo(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 }; // LArRawInputDriverShortBo
stringvec_t::const_iterator filesdone_
art::SourceHelper const & principalMaker_
std::vector< std::string > stringvec_t
void readFile(std::string const &name, art::FileBlock *&fb)
LArRawInputDriverShortBo(fhicl::ParameterSet const &pset, art::ProductRegistryHelper &helper, art::SourceHelper const &pm)
stringvec_t::const_iterator nextfile_
then echo fcl name
bool readNext(art::RunPrincipal *const &inR, art::SubRunPrincipal *const &inSR, art::RunPrincipal *&outR, art::SubRunPrincipal *&outSR, art::EventPrincipal *&outE)