~christopher-hunt08/maus/maus_integrated_kalman

« back to all changes in this revision

Viewing changes to src/map/MapCppKLMCDigitizer/MapCppKLMCDigitizer.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:
40
40
#include "TRandom.h"
41
41
#include "Config/MiceModule.hh"
42
42
 
 
43
#include "API/MapBase.hh"
43
44
 
44
45
namespace MAUS {
45
46
 
46
 
class MapCppKLMCDigitizer {
 
47
class MapCppKLMCDigitizer : public MapBase<Json::Value> {
47
48
 public:
48
 
  bool birth(std::string argJsonConfigDocument);
49
 
 
50
 
  bool death();
51
 
 
52
 
  std::string process(std::string document);
53
 
 
54
 
  bool check_sanity_mc(std::string document);
55
 
 
56
 
  double calculate_nphe_at_pmt(double dist, double edep);
57
 
 
58
 
  std::vector<Json::Value> make_kl_digits(Json::Value hits);
 
49
  MapCppKLMCDigitizer();
 
50
 
 
51
 private:
 
52
  void _birth(const std::string& argJsonConfigDocument);
 
53
 
 
54
  void _death();
 
55
 
 
56
  void _process(Json::Value* document) const;
 
57
 
 
58
  int calculate_nphe_at_pmt(double dist, double edep) const;
 
59
 
 
60
  Json::Value check_sanity_mc(const Json::Value& document) const;
 
61
 
 
62
  std::vector<Json::Value> make_kl_digits(Json::Value hits, Json::Value& root) const;
59
63
 
60
64
  Json::Value fill_kl_evt(int evnum,
61
 
                           std::vector<Json::Value> _alldigits);
62
 
 
63
 
  bool check_param(Json::Value* hit1, Json::Value* hit2);
64
 
 
65
 
  // Calculates the time of the calorimeter trigger.
66
 
  double calcTriggerTime(Json::Value hits);
 
65
                           std::vector<Json::Value> _alldigits) const;
 
66
 
 
67
  bool check_param(Json::Value* hit1, Json::Value* hit2) const;
67
68
 
68
69
 private:
69
70
  MiceModule* geo_module;
70
71
  std::vector<const MiceModule*> kl_modules;
71
72
 
72
 
  std::string _classname;
73
73
  Json::Value _configJSON;
74
 
  Json::Value root;
75
 
  Json::Reader reader;
76
 
  Json::Value mc;
77
 
  Json::Value digit;
78
74
 
79
 
  double gentime;
80
75
  bool fDebug;
81
76
};
82
77
}