~christopher-hunt08/maus/maus_integrated_kalman

« back to all changes in this revision

Viewing changes to src/map/MapCppTOFSlabHits/MapCppTOFSlabHits.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:
30
30
#include <map>
31
31
#include "json/json.h"
32
32
#include "src/common_cpp/Utils/TOFChannelMap.hh"
 
33
#include "src/common_cpp/API/MapBase.hh"
33
34
 
34
35
namespace MAUS {
35
36
 
36
 
class MapCppTOFSlabHits {
 
37
class MapCppTOFSlabHits : public MapBase<Json::Value> {
37
38
 
38
39
 public:
 
40
  MapCppTOFSlabHits();
39
41
 
 
42
 private:
40
43
 /** @brief Sets up the worker
41
44
 *
42
45
 *  @param argJsonConfigDocument a JSON document with
43
46
 *         the configuration.
44
47
 */
45
 
  bool birth(std::string argJsonConfigDocument);
 
48
  void _birth(const std::string& argJsonConfigDocument);
46
49
 
47
50
  /** @brief Shutdowns the worker
48
51
 *
49
52
 *  This takes no arguments and does nothing.
50
53
 */
51
 
  bool death();
 
54
  void _death();
52
55
 
53
56
  /** @brief process JSON document
54
57
 *
55
58
 *  @param document Receive a document with digits and return
56
59
 *  a document with slab hits.
57
60
 */
58
 
  std::string process(std::string document);
 
61
  void _process(Json::Value* document) const;
59
62
 
60
63
 private:
61
 
  std::string _classname;
62
 
 
63
64
  /// Vector to hold the names of all detectors to be processed.
64
65
  std::vector<std::string> _stationKeys;
65
66
 
66
 
  Json::Value fillSlabHit(Json::Value xDocDigit0, Json::Value xDocDigit1);
 
67
  Json::Value fillSlabHit(Json::Value xDocDigit0, Json::Value xDocDigit1) const;
67
68
 
68
69
  /** @brief makes slab hits
69
70
   *
70
71
   *  @param xDocDetectorData Json document containing digits from 
71
72
   * one particle event in one individual detector.
72
73
   */
73
 
  Json::Value makeSlabHits(Json::Value xDocPartEvent);
 
74
  Json::Value makeSlabHits(Json::Value xDocPartEvent) const;
74
75
 
75
76
  double _tdcV1290_conversion_factor;
76
77
};