LArRawInputDriverJP250L.h
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 /// \file LArRawInputDriverJP250L.h
3 /// \brief Source to convert JP250L files to LArSoft files
4 ///
5 /// \author eito@post.kek.jp, brebel@fnal.gov
6 ////////////////////////////////////////////////////////////////////////
7 
8 #include <string>
9 
10 namespace art {
11  class EventPrincipal;
12  class FileBlock;
13  class ProductRegistryHelper;
14  class RunPrincipal;
15  class SourceHelper;
16  class SubRunPrincipal;
17 }
18 namespace fhicl { class ParameterSet; }
19 
20 class TTree;
21 
22 ///Conversion of binary data to root files
23 namespace lris {
24  class LArRawInputDriverJP250L;
25 }
26 
28  /// Class to fill the constraints on a template argument to the class,
29  /// FileReaderSource
30  public:
31  // Required constructor
34  art::SourceHelper const &pm);
35 
36  // Required by FileReaderSource:
37  void closeCurrentFile();
38  void readFile(std::string const &name,
39  art::FileBlock* &fb);
40  bool readNext(art::RunPrincipal* const &inR,
41  art::SubRunPrincipal* const &inSR,
42  art::RunPrincipal* &outR,
43  art::SubRunPrincipal* &outSR,
44  art::EventPrincipal* &outE);
45 
46  private:
47 
48  // --- data members:
50 
51  // added by E.Iwai
52  TTree* m_eventTree; ///< TTree containing information from each trigger
53  unsigned int m_nEvent; ///< number of triggers in the TTree
54  unsigned int m_current; ///< current entry in the TTree
55  unsigned short m_runID; ///< run ID, has to start from 1
56  unsigned int m_unixtime; ///< unix timestamp of the start of the run
57  unsigned short m_nChannels; ///< number of channels in the detector
58  unsigned short m_nSamples; ///< number of time samples per channel
59  unsigned short* m_data; ///< the ADC of each time sample for each channel
60 
61 }; // LArRawInputDriverJP250L
static QCString name
Definition: declinfo.cpp:673
unsigned int m_unixtime
unix timestamp of the start of the run
unsigned int m_nEvent
number of triggers in the TTree
std::string string
Definition: nybbler.cc:12
unsigned short m_runID
run ID, has to start from 1
TTree * m_eventTree
TTree containing information from each trigger.
void readFile(string fileName, string &content)
Definition: test_suite.cc:16
unsigned short * m_data
the ADC of each time sample for each channel
unsigned short m_nChannels
number of channels in the detector
unsigned short m_nSamples
number of time samples per channel
Conversion of binary data to root files.
art::SourceHelper const & principalMaker_
unsigned int m_current
current entry in the TTree