57 TFile m_f(name.c_str());
58 TTree* runTree =
dynamic_cast<TTree*
>(m_f.Get(
"runTree"));
60 m_eventTree =
dynamic_cast<TTree*
>(m_f.Get(
"eventTree"));
65 runTree->SetBranchAddress(
"runID",&
m_runID);
66 runTree->SetBranchAddress(
"unixtime",&
m_unixtime);
67 runTree->SetBranchAddress(
"nChannels",&
m_nChannels);
68 runTree->SetBranchAddress(
"nSamples",&
m_nSamples);
76 m_data =
new unsigned short[nLength];
116 std::unique_ptr<raw::DAQHeader> daqcol(
new raw::DAQHeader(daqHeader) );
117 std::unique_ptr<std::vector<raw::RawDigit> > rdcol(
new std::vector<raw::RawDigit> );
125 adcVec.push_back(
m_data[(m_nSamples+4)*
n+(4+i)]);
138 std::unique_ptr<sumdata::RunData> rundata(
new sumdata::RunData(
"jpl250l") );
Collection of charge vs time digitized from a single readout channel.
SubRunPrincipal * makeSubRunPrincipal(SubRunAuxiliary const &subRunAux) const
RunPrincipal * makeRunPrincipal(RunAuxiliary const &runAux) const
TypeLabel const & reconstitutes(std::string const &modLabel, std::string const &instanceName={})
IDNumber_t< Level::SubRun > SubRunNumber_t
std::enable_if_t<!detail::range_sets_supported(P::branch_type)> put_product_in_principal(std::unique_ptr< T > &&product, P &principal, std::string const &module_label, std::string const &instance_name={})
Conversion of binary data to root files.
IDNumber_t< Level::Event > EventNumber_t
EventPrincipal * makeEventPrincipal(EventAuxiliary const &eventAux, std::unique_ptr< History > &&history) const
IDNumber_t< Level::Run > RunNumber_t