FrameUtil.h
Go to the documentation of this file.
1 #ifndef WIRECELLGEN_UTIL
2 #define WIRECELLGEN_UTIL
3 
4 #include "WireCellIface/IFrame.h"
5 #include <vector>
6 
7 namespace WireCell {
8  namespace Gen {
9 
10  /// Sum a vector of frames, returning a new one with the given
11  /// ident. The start time of the new one will be the minimum
12  /// time of all frames. The sample period (tick) of all
13  /// frames must be identical. Traces on a common channel are
14  /// summed producing a single trace which covers a time domain
15  /// spanning the minimum and maximum tbin of all the traces in
16  /// the channel. Zeros are padded for any intervening samples
17  /// outside of any individual trace.
18  IFrame::pointer sum(std::vector<IFrame::pointer> frames, int ident);
19 
20 
21  }
22 }
23 #endif
std::shared_ptr< const IFrame > pointer
Definition: IData.h:19
IFrame::pointer sum(std::vector< IFrame::pointer > frames, int ident)
Definition: FrameUtil.cxx:15
Definition: Main.h:22