FrameUtils.h
Go to the documentation of this file.
1 #ifndef WIRECELL_SIGPROC_PRIVATE_FRAMEUTILS
2 #define WIRECELL_SIGPROC_PRIVATE_FRAMEUTILS
3 
4 #include "WireCellIface/IFrame.h"
5 #include "WireCellIface/ITrace.h"
6 #include "WireCellUtil/Binning.h"
7 #include "WireCellUtil/Array.h"
8 
9 #include <vector>
10 
11 namespace wct { // eventually make this namespace
12  namespace sigproc { // pattern global.
13 
14  // Print some info to cerr about frame
16 
17 
18  // Raster a collection of traces into a 2D array block. Each
19  // row corresponds to one channel as indicated by the channels
20  // vector. The trace's tbin is used as an offset from column
21  // 0. If the array block is undersized, missed samples will
22  // be quietly ignored. Trace charge is added to any existing
23  // values in the array block.
26  const std::vector<int>& channels);
27 
28  // Return a baseline calculated on a collection of traces as
29  // the most probable binned sample value. By default use a 12
30  // bit ADC Binning. The index of the binning is returned.
32  const WireCell::Binning& binning = WireCell::Binning(4096,0,4096));
33 
34 
35  // Get the tagged trace indices and resolve them to traces.
36  // If no trace tags match but the given tag matches the frame
37  // tag then all traces are returned.
39 
40  }
41 }
42 
43 #endif
44 
std::shared_ptr< const IFrame > pointer
Definition: IData.h:19
Definition: FrameUtils.h:11
void dump_frame(WireCell::IFrame::pointer frame)
Definition: FrameUtils.cxx:10
std::vector< pointer > vector
Definition: IData.h:21
void raster(WireCell::Array::array_xxf &block, WireCell::ITrace::vector traces, const std::vector< int > &channels)
Definition: FrameUtils.cxx:55
std::string tag_t
Definition: IFrame.h:28
int maxcount_baseline(const WireCell::ITrace::vector &traces, const WireCell::Binning &binning=WireCell::Binning(4096, 0, 4096))
WireCell::ITrace::vector tagged_traces(WireCell::IFrame::pointer frame, WireCell::IFrame::tag_t tag)
Eigen::ArrayXXf array_xxf
A real, 2D array.
Definition: Array.h:54