19 #include <sys/types.h> 51 TFile m_f(name.c_str());
52 TTree* runTree =
dynamic_cast<TTree*
>(m_f.Get(
"runTree"));
54 m_eventTree =
dynamic_cast<TTree*
>(m_f.Get(
"eventTree"));
59 runTree->SetBranchAddress(
"runID",&
m_runID);
60 runTree->SetBranchAddress(
"unixtime",&
m_unixtime);
61 runTree->SetBranchAddress(
"nChannels",&
m_nChannels);
62 runTree->SetBranchAddress(
"nSamples",&
m_nSamples);
70 m_data =
new unsigned short[nLength];
110 std::unique_ptr<raw::DAQHeader> daqcol(
new raw::DAQHeader(daqHeader) );
111 std::unique_ptr<std::vector<raw::RawDigit> > rdcol(
new std::vector<raw::RawDigit> );
119 adcVec.push_back(
m_data[(m_nSamples+4)*
n+(4+i)]);
132 std::unique_ptr<sumdata::RunData> rundata(
new sumdata::RunData(
"jpl250l") );
Collection of charge vs time digitized from a single readout channel.
std::enable_if_t< P::branch_type==InEvent||P::branch_type==InResults > put_product_in_principal(std::unique_ptr< T > &&product, P &principal, std::string const &module_label, std::string const &instance_name={})
SubRunPrincipal * makeSubRunPrincipal(SubRunAuxiliary const &subRunAux) const
Definition of basic raw digits.
RunPrincipal * makeRunPrincipal(RunAuxiliary const &runAux) const
TypeLabel const & reconstitutes(std::string const &modLabel, std::string const &instanceName={})
IDNumber_t< Level::SubRun > SubRunNumber_t
Conversion of binary data to root files.
IDNumber_t< Level::Event > EventNumber_t
EventPrincipal * makeEventPrincipal(EventAuxiliary const &eventAux, std::shared_ptr< History > &&history) const
art framework interface to geometry description
IDNumber_t< Level::Run > RunNumber_t