38 : principalMaker_(pm), m_current(0), m_data(0)
54 TFile m_f(name.c_str());
55 TTree* runTree =
dynamic_cast<TTree*
>(m_f.Get(
"runTree"));
57 m_eventTree =
dynamic_cast<TTree*
>(m_f.Get(
"eventTree"));
62 runTree->SetBranchAddress(
"runID", &
m_runID);
63 runTree->SetBranchAddress(
"unixtime", &
m_unixtime);
64 runTree->SetBranchAddress(
"nChannels", &
m_nChannels);
65 runTree->SetBranchAddress(
"nSamples", &
m_nSamples);
73 m_data =
new unsigned short[nLength];
111 std::unique_ptr<raw::DAQHeader> daqcol(
new raw::DAQHeader(daqHeader));
112 std::unique_ptr<std::vector<raw::RawDigit>> rdcol(
new std::vector<raw::RawDigit>);
119 for (
unsigned int i = 0; i <
m_nSamples; ++i) {
120 adcVec.push_back(
m_data[(m_nSamples + 4) *
n + (4 + i)]);
Collection of charge vs time digitized from a single readout channel.
SubRunPrincipal * makeSubRunPrincipal(SubRunAuxiliary subRunAux) const
EventPrincipal * makeEventPrincipal(EventAuxiliary eventAux) const
Definition of basic raw digits.
TypeLabel const & reconstitutes(std::string const &modLabel, std::string const &instanceName={})
IDNumber_t< Level::SubRun > SubRunNumber_t
RunPrincipal * makeRunPrincipal(RunAuxiliary runAux) const
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
IDNumber_t< Level::Run > RunNumber_t