LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
|
#include "LArRawInputDriverJP250L.h"
Public Member Functions | |
LArRawInputDriverJP250L (fhicl::ParameterSet const &pset, art::ProductRegistryHelper &helper, art::SourceHelper const &pm) | |
void | closeCurrentFile () |
void | readFile (std::string const &name, art::FileBlock *&fb) |
bool | readNext (art::RunPrincipal *const &inR, art::SubRunPrincipal *const &inSR, art::RunPrincipal *&outR, art::SubRunPrincipal *&outSR, art::EventPrincipal *&outE) |
Private Attributes | |
art::SourceHelper const & | principalMaker_ |
TTree * | m_eventTree |
TTree containing information from each trigger. More... | |
unsigned int | m_nEvent |
number of triggers in the TTree More... | |
unsigned int | m_current |
current entry in the TTree More... | |
unsigned short | m_runID |
run ID, has to start from 1 More... | |
unsigned int | m_unixtime |
unix timestamp of the start of the run More... | |
unsigned short | m_nChannels |
number of channels in the detector More... | |
unsigned short | m_nSamples |
number of time samples per channel More... | |
unsigned short * | m_data |
the ADC of each time sample for each channel More... | |
Definition at line 29 of file LArRawInputDriverJP250L.h.
lris::LArRawInputDriverJP250L::LArRawInputDriverJP250L | ( | fhicl::ParameterSet const & | pset, |
art::ProductRegistryHelper & | helper, | ||
art::SourceHelper const & | pm | ||
) |
Class to fill the constraints on a template argument to the class, FileReaderSource
Definition at line 29 of file LArRawInputDriverJP250L.cxx.
References art::InEvent, art::InRun, and art::ProductRegistryHelper::reconstitutes().
void lris::LArRawInputDriverJP250L::closeCurrentFile | ( | ) |
Definition at line 42 of file LArRawInputDriverJP250L.cxx.
References m_data.
void lris::LArRawInputDriverJP250L::readFile | ( | std::string const & | name, |
art::FileBlock *& | fb | ||
) |
Definition at line 48 of file LArRawInputDriverJP250L.cxx.
References m_data, m_eventTree, m_nChannels, m_nEvent, m_nSamples, m_runID, and m_unixtime.
bool lris::LArRawInputDriverJP250L::readNext | ( | art::RunPrincipal *const & | inR, |
art::SubRunPrincipal *const & | inSR, | ||
art::RunPrincipal *& | outR, | ||
art::SubRunPrincipal *& | outSR, | ||
art::EventPrincipal *& | outE | ||
) |
Definition at line 83 of file LArRawInputDriverJP250L.cxx.
References raw::DAQHeader::GetEvent(), raw::DAQHeader::GetRun(), raw::DAQHeader::GetTimeStamp(), m_current, m_data, m_eventTree, m_nChannels, m_nEvent, m_nSamples, m_runID, m_unixtime, art::SourceHelper::makeEventPrincipal(), art::SourceHelper::makeRunPrincipal(), art::SourceHelper::makeSubRunPrincipal(), n, principalMaker_, art::put_product_in_principal(), raw::DAQHeader::SetEvent(), raw::DAQHeader::SetNChannels(), raw::DAQHeader::SetRun(), and raw::DAQHeader::SetTimeStamp().
|
private |
current entry in the TTree
Definition at line 56 of file LArRawInputDriverJP250L.h.
Referenced by readNext().
|
private |
the ADC of each time sample for each channel
Definition at line 61 of file LArRawInputDriverJP250L.h.
Referenced by closeCurrentFile(), readFile(), and readNext().
|
private |
TTree containing information from each trigger.
Definition at line 54 of file LArRawInputDriverJP250L.h.
Referenced by readFile(), and readNext().
|
private |
number of channels in the detector
Definition at line 59 of file LArRawInputDriverJP250L.h.
Referenced by readFile(), and readNext().
|
private |
number of triggers in the TTree
Definition at line 55 of file LArRawInputDriverJP250L.h.
Referenced by readFile(), and readNext().
|
private |
number of time samples per channel
Definition at line 60 of file LArRawInputDriverJP250L.h.
Referenced by readFile(), and readNext().
|
private |
run ID, has to start from 1
Definition at line 57 of file LArRawInputDriverJP250L.h.
Referenced by readFile(), and readNext().
|
private |
unix timestamp of the start of the run
Definition at line 58 of file LArRawInputDriverJP250L.h.
Referenced by readFile(), and readNext().
|
private |
Definition at line 51 of file LArRawInputDriverJP250L.h.
Referenced by readNext().