LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
LArRawInputDriverJP250L.h
Go to the documentation of this file.
1 
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 {
19  class ParameterSet;
20 }
21 
22 class TTree;
23 
25 namespace lris {
26  class LArRawInputDriverJP250L;
27 }
28 
32 public:
33  // Required constructor
36  art::SourceHelper const& pm);
37 
38  // Required by FileReaderSource:
39  void closeCurrentFile();
40  void readFile(std::string const& name, 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:
50 
51  // added by E.Iwai
52  TTree* m_eventTree;
53  unsigned int m_nEvent;
54  unsigned int m_current;
55  unsigned short m_runID;
56  unsigned int m_unixtime;
57  unsigned short m_nChannels;
58  unsigned short m_nSamples;
59  unsigned short* m_data;
60 
61 }; // LArRawInputDriverJP250L
unsigned int m_unixtime
unix timestamp of the start of the run
unsigned int m_nEvent
number of triggers in the TTree
unsigned short m_runID
run ID, has to start from 1
TTree * m_eventTree
TTree containing information from each trigger.
parameter set interface
unsigned short * m_data
the ADC of each time sample for each channel
TFile fb("Li6.root")
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_
Definition: MVAAlg.h:12
unsigned int m_current
current entry in the TTree