~christopher-hunt08/maus/maus_integrated_kalman

« back to all changes in this revision

Viewing changes to src/map/MapCppEMRPlaneHits/MapCppEMRPlaneHits.hh

  • Committer: Durga Rajaram
  • Date: 2014-07-16 15:13:05 UTC
  • mfrom: (659.1.92 cand)
  • Revision ID: durga@fnal.gov-20140716151305-q27rv1y9p03v9lks
Tags: MAUS-v0.9, MAUS-v0.9.0
MAUS-v0.9.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
#include "DataStructure/EMRBarHit.hh"
46
46
#include "DataStructure/EMRPlaneHit.hh"
47
47
#include "DataStructure/EMREvent.hh"
 
48
#include "src/common_cpp/API/MapBase.hh"
48
49
 
49
50
namespace MAUS {
50
51
 
68
69
typedef std::vector<EMRPlaneData>                EMRPlaneHitsVector;
69
70
typedef std::vector<EMRPlaneHitsVector>          EMREventVector_2;
70
71
 
71
 
class MapCppEMRPlaneHits {
72
 
 
 
72
class MapCppEMRPlaneHits : public MapBase<MAUS::Data> {
73
73
 public:
 
74
  MapCppEMRPlaneHits();
 
75
 
 
76
 private:
74
77
 
75
78
 /** @brief Sets up the worker
76
79
 *
77
80
 *  @param argJsonConfigDocument a JSON document with
78
81
 *         the configuration.
79
82
 */
80
 
  bool birth(std::string argJsonConfigDocument);
 
83
  void _birth(const std::string& argJsonConfigDocument);
81
84
 
82
85
  /** @brief Shutdowns the worker
83
86
 *
84
87
 *  This takes no arguments and does nothing.
85
88
 */
86
 
  bool death();
87
 
 
88
 
  /** @brief process JSON document
89
 
 *
90
 
 *  @param document ?????.
91
 
 */
92
 
  std::string process(std::string document);
 
89
  void _death();
93
90
 
94
91
  /** @brief process the data object
95
92
 *
96
93
 *  @param
97
94
 */
98
 
  void process(MAUS::Data *data);
99
 
 
100
 
 private:
101
 
 
102
 
  void processDBB(MAUS::EMRDaq EMRdaq, int nPartTrigger);
103
 
  void processFADC(MAUS::EMRDaq EMRdaq, int nPartTrigger);
104
 
  void fill(MAUS::Spill *spill, int nPartTrigger);
105
 
 
106
 
  void reset_data_tmp(int nPartEvts);
107
 
 
108
 
  std::string _classname;
 
95
  void _process(MAUS::Data *data) const;
 
96
 
 
97
  void processDBB(MAUS::EMRDaq EMRdaq,
 
98
                  int nPartTrigger,
 
99
                  EMREventVector_2& emr_events_tmp2,
 
100
                  EMREventVector_4& emr_events_tmp4) const;
 
101
  void processFADC(MAUS::EMRDaq EMRdaq,
 
102
                   int nPartTrigger,
 
103
                   EMREventVector_2& emr_events_tmp2) const;
 
104
  void fill(MAUS::Spill *spill,
 
105
            int nPartTrigger,
 
106
            EMREventVector_2& emr_events_tmp2,
 
107
            EMREventVector_4& emr_events_tmp4) const;
 
108
 
 
109
  EMREventVector_2 get_data_tmp2(int nPartEvts) const;
 
110
  EMREventVector_4 get_data_tmp4(int nPartEvts) const;
109
111
 
110
112
  EMRChannelMap _emrMap;
111
113
 
112
114
  int _trigger_window_lower;
113
115
  int _trigger_window_upper;
114
 
 
115
 
  EMREventVector_2     _emr_events_tmp2;
116
 
  EMREventVector_4     _emr_events_tmp4;
117
116
};
118
117
}
119
118