13 #include "art/Framework/Core/FileBlock.h"
14 #include "art/Framework/Core/ProductRegistryHelper.h"
15 #include "art/Framework/IO/Sources/SourceHelper.h"
16 #include "art/Framework/IO/Sources/put_product_in_principal.h"
17 #include "art/Framework/Principal/EventPrincipal.h"
18 #include "art/Framework/Principal/RunPrincipal.h"
19 #include "canvas/Persistency/Provenance/FileFormatVersion.h"
20 #include "canvas/Persistency/Provenance/Timestamp.h"
36 art::ProductRegistryHelper &helper,
37 art::SourceHelper
const &pm)
43 helper.reconstitutes<std::vector<raw::RawDigit>, art::InEvent>(
"daq");
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];
81 fb =
new art::FileBlock(art::FileFormatVersion(1,
"LArRawInputJP250L 2013_01"),
90 art::SubRunPrincipal*
const & ,
91 art::RunPrincipal* &outR,
92 art::SubRunPrincipal* &outSR,
93 art::EventPrincipal* &outE)
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)]);
130 art::RunNumber_t rn = daqHeader.
GetRun();
131 art::SubRunNumber_t sn = 1;
132 art::EventNumber_t en = daqHeader.
GetEvent();
138 std::unique_ptr<sumdata::RunData> rundata(
new sumdata::RunData(
"jpl250l") );
143 art::put_product_in_principal(std::move(rundata), *outR,
"daq");
158 art::put_product_in_principal(std::move(rdcol),
161 art::put_product_in_principal(std::move(daqcol),
Collection of charge vs time digitized from a single readout channel.
Definition of basic raw digits.