All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SimDepoSetSource.h
Go to the documentation of this file.
1 /** A sim depo set source provides IDepoSet objects to WCT from LS simulation objects.
2  Modified from the SimDepoSource for IDepoSet for better efficiency
3 */
4 
5 #ifndef LARWIRECELL_COMPONENTS_SIMDEPOSETSOURCE
6 #define LARWIRECELL_COMPONENTS_SIMDEPOSETSOURCE
7 
9 #include "WireCellIface/IDepoSetSource.h"
10 #include "WireCellIface/IConfigurable.h"
11 #include "WireCellIface/IDepoSet.h"
12 #include "canvas/Utilities/InputTag.h"
13 
14 namespace wcls {
15 
17  public WireCell::IDepoSetSource,
18  public WireCell::IConfigurable {
19  public:
20  class DepoAdapter;
21 
23  virtual ~SimDepoSetSource();
24 
25  /// IArtEventVisitor
26  virtual void visit(art::Event & event);
27 
28  /// IDepoSetSource
29  virtual bool operator()(WireCell::IDepoSet::pointer& out);
30 
31  /// IConfigurable
32  virtual WireCell::Configuration default_configuration() const;
33  virtual void configure(const WireCell::Configuration& config);
34 
35  private:
36  // Count how many we've produced, use this for the depo set ident.
37  int m_count{0};
38 
39  // Temporary holding of accepted depos.
41 
43 
44  art::InputTag m_inputTag;
45  art::InputTag m_assnTag; // associated input
46  };
47 }
48 #endif
WireCell::IDepo::vector m_depos
virtual void configure(const WireCell::Configuration &config)
virtual bool operator()(WireCell::IDepoSet::pointer &out)
IDepoSetSource.
auto vector(Vector const &v)
Returns a manipulator which will print the specified array.
Definition: DumpUtils.h:265
virtual WireCell::Configuration default_configuration() const
IConfigurable.
virtual void visit(art::Event &event)
IArtEventVisitor.