NOvARawInputDriver.h
Go to the documentation of this file.
1 #ifndef DAQ2RAWDIGIT_NOVARAWINPUTDRIVER_H
2 #define DAQ2RAWDIGIT_NOVARAWINPUTDRIVER_H
3 
4 ////////////////////////////////////////////////////////////////////////
5 /// \file NOvA.h
6 /// \brief Source to convert raw binary files to root files
7 ///
8 /// \version $Id: NOvARawInputDriver.h,v 1.7 2012-11-18 18:52:46 gsdavies Exp $
9 /// \author brebel@fnal.gov, soderber@fnal.gov, greenc@fnal.gov, paterno@fnal.gov
10 ////////////////////////////////////////////////////////////////////////
11 
13 #include "RawFileParser/RawFileParser.h"
14 
17 
18 #include <string>
19 
20 // forward declarations
21 namespace daq2raw {
22  class NOvARawInputDriver;
23 }
24 
25 namespace fhicl{
26  class ParameterSet;
27 }
28 
29 namespace art{
30  class ProductRegistryHelper;
31  class RunPrincipal;
32  class SubRunPrincipal;
33  class EventPrincipal;
34  class FileBlock;
35 }
36 
37 
39  /// Class to fill the constraints on a template argument to the class,
40  /// art::Source
41 public:
42  // Required constructor
45  art::SourceHelper const &pm);
46 
47  // Required by art::Source:
48  void closeCurrentFile();
49  void readFile(std::string const &name,
50  art::FileBlock* &fb);
51  bool readNext(art::RunPrincipal* const &inR,
52  art::SubRunPrincipal* const &inSR,
53  art::RunPrincipal* &outR,
54  art::SubRunPrincipal* &outSR,
55  art::EventPrincipal* &outE);
56 
57 private:
58 
59  art::SourceHelper const& fSourceHelper; ///< Class to help with {Run, SubRun, Event}Principal construction.
60  std::string fCurrentFilename; ///< Hang on to the current filename.
61  art::SubRunID fCurrentSubRunID; ///< Keep track of the current subRun details.
62  rawfileparser::RawFileParser fParser; ///< Online raw file parsing utility.
63  size_t fMaxEventSize; ///< Will not try to read an event bigger than this.
64  bool fFilterCorruptedNanoslices;///< Filter the corrupted nanaslices in the unpacking?
65  bool fDoFillFlatDAQData; ///< Do we need to fill FlatDAQData object?
66 }; // NOvARawInputDriver
67 
68 #endif /* DAQ2RAWDIGIT_NOVARAWINPUTDRIVER_H */
69 // Local Variables:
70 // mode: c++
71 // End:
72 
const XML_Char * name
Definition: expat.h:151
rawfileparser::RawFileParser fParser
Online raw file parsing utility.
size_t fMaxEventSize
Will not try to read an event bigger than this.
art::SourceHelper const & fSourceHelper
Class to help with {Run, SubRun, Event}Principal construction.
std::string fCurrentFilename
Hang on to the current filename.
art::SubRunID fCurrentSubRunID
Keep track of the current subRun details.
A module to produce rawdata::RawDigits from NOvADDT DAQHits.
bool fDoFillFlatDAQData
Do we need to fill FlatDAQData object?
::xsd::cxx::tree::string< char, simple_type > string
Definition: Database.h:154
bool fFilterCorruptedNanoslices
Filter the corrupted nanaslices in the unpacking?
Service to store calibration data products (CDP) in the SQLite3 metadatabase of a file...
Definition: FillParentInfo.h:8