DepoBagger.h
Go to the documentation of this file.
1 /* This collects depos inside a fixed time gate and releases the
2  * collection on an input EOS.
3  *
4  * This component is useful, for example, in the case of depos
5  * produced by uB LArG4 into art::Event where each "event" is near
6  * t=0.0.
7  *
8  * This component is equivalent to the input action of the Ductor in
9  * "fixed" mode.
10  */
11 
12 #ifndef WIRECELLGEN_DEPOBAGGER
13 #define WIRECELLGEN_DEPOBAGGER
14 
17 
18 #include <map>
19 #include <vector>
20 
21 namespace WireCell {
22  namespace Gen {
23 
24  class DepoBagger : public IDepoCollector, public IConfigurable {
25  public:
26  DepoBagger();
27  virtual ~DepoBagger();
28 
29  // IDepoCollector
30  virtual bool operator()(const input_pointer& depo, output_queue& deposetqueue);
31 
32  // IConfigurable
33  virtual void configure(const WireCell::Configuration& config);
35  private:
36 
37  // Count how many we've produced, use this for the depo set ident.
38  int m_count;
39 
40  // The acceptance time gate
41  std::pair<double,double> m_gate;
42 
43  // Temporary holding of accepted depos.
45  };
46  }
47 }
48 
49 #endif
virtual bool operator()(const input_pointer &depo, output_queue &deposetqueue)
The calling signature:
Definition: DepoBagger.cxx:39
std::pair< double, double > m_gate
Definition: DepoBagger.h:41
std::vector< pointer > vector
Definition: IData.h:21
std::deque< output_pointer > output_queue
static Config * config
Definition: config.cpp:1054
Definition: Main.h:22
IDepo::vector m_depos
Definition: DepoBagger.h:44
virtual void configure(const WireCell::Configuration &config)
Accept a configuration.
Definition: DepoBagger.cxx:32
Json::Value Configuration
Definition: Configuration.h:50
std::shared_ptr< const IDepo > input_pointer
virtual WireCell::Configuration default_configuration() const
Optional, override to return a hard-coded default configuration.
Definition: DepoBagger.cxx:21