68
69
typedef std::vector<EMRPlaneData> EMRPlaneHitsVector;
69
70
typedef std::vector<EMRPlaneHitsVector> EMREventVector_2;
71
class MapCppEMRPlaneHits {
72
class MapCppEMRPlaneHits : public MapBase<MAUS::Data> {
75
78
/** @brief Sets up the worker
77
80
* @param argJsonConfigDocument a JSON document with
78
81
* the configuration.
80
bool birth(std::string argJsonConfigDocument);
83
void _birth(const std::string& argJsonConfigDocument);
82
85
/** @brief Shutdowns the worker
84
87
* This takes no arguments and does nothing.
88
/** @brief process JSON document
90
* @param document ?????.
92
std::string process(std::string document);
94
91
/** @brief process the data object
98
void process(MAUS::Data *data);
102
void processDBB(MAUS::EMRDaq EMRdaq, int nPartTrigger);
103
void processFADC(MAUS::EMRDaq EMRdaq, int nPartTrigger);
104
void fill(MAUS::Spill *spill, int nPartTrigger);
106
void reset_data_tmp(int nPartEvts);
108
std::string _classname;
95
void _process(MAUS::Data *data) const;
97
void processDBB(MAUS::EMRDaq EMRdaq,
99
EMREventVector_2& emr_events_tmp2,
100
EMREventVector_4& emr_events_tmp4) const;
101
void processFADC(MAUS::EMRDaq EMRdaq,
103
EMREventVector_2& emr_events_tmp2) const;
104
void fill(MAUS::Spill *spill,
106
EMREventVector_2& emr_events_tmp2,
107
EMREventVector_4& emr_events_tmp4) const;
109
EMREventVector_2 get_data_tmp2(int nPartEvts) const;
110
EMREventVector_4 get_data_tmp4(int nPartEvts) const;
110
112
EMRChannelMap _emrMap;
112
114
int _trigger_window_lower;
113
115
int _trigger_window_upper;
115
EMREventVector_2 _emr_events_tmp2;
116
EMREventVector_4 _emr_events_tmp4;