DepoTransform.h
Go to the documentation of this file.
1 /** Make a frame from depos using an ImpactTransform.
2  */
3 
4 #ifndef WIRECELLGEN_DEPOTRANSFORM
5 #define WIRECELLGEN_DEPOTRANSFORM
6 
13 #include "WireCellIface/IDepo.h"
14 #include "WireCellUtil/Logging.h"
15 
16 namespace WireCell {
17  namespace Gen {
18 
19  class DepoTransform : public IDepoFramer, public IConfigurable {
20  public:
21  DepoTransform();
22  virtual ~DepoTransform();
23 
24  virtual bool operator()(const input_pointer& in, output_pointer& out);
25 
26 
27  virtual void configure(const WireCell::Configuration& cfg);
29 
30 
31  /// dummy depo modifier
32  /// used for the application of the charge scaling bases on dQdx calibration
33  /// see the detailed implementation in larwirecell or uboonecode
35  return depo;
36  }
37 
38  private:
39 
42  std::vector<IPlaneImpactResponse::pointer> m_pirs;
43 
44  double m_start_time;
46  double m_tick;
47  double m_drift_speed;
48  double m_nsigma;
51 
52  };
53  }
54 }
55 
56 #endif
std::shared_ptr< const IDepo > pointer
Definition: IData.h:19
IAnodePlane::pointer m_anode
Definition: DepoTransform.h:40
cfg
Definition: dbjson.py:29
std::vector< IPlaneImpactResponse::pointer > m_pirs
Definition: DepoTransform.h:42
std::shared_ptr< const IDepoSet > input_pointer
Definition: IFunctionNode.h:39
virtual bool operator()(const input_pointer &in, output_pointer &out)
The calling signature:
std::shared_ptr< Interface > pointer
Definition: Interface.h:16
virtual WireCell::Configuration default_configuration() const
Optional, override to return a hard-coded default configuration.
std::shared_ptr< const IFrame > output_pointer
Definition: IFunctionNode.h:40
std::shared_ptr< spdlog::logger > logptr_t
Definition: Logging.h:24
Definition: Main.h:22
Json::Value Configuration
Definition: Configuration.h:50
virtual IDepo::pointer modify_depo(WirePlaneId wpid, IDepo::pointer depo)
Definition: DepoTransform.h:34
virtual void configure(const WireCell::Configuration &cfg)
Accept a configuration.