~durga/maus/rel709

« back to all changes in this revision

Viewing changes to src/common_cpp/JsonCppProcessors/EMREventProcessor.cc

  • Committer: Adam Dobbs
  • Date: 2014-12-11 13:26:05 UTC
  • mfrom: (659.1.96 release-candidate)
  • Revision ID: phuccj@gmail.com-20141211132605-6g6j2927elggi2q6
Tags: MAUS-v0.9.2
MAUS-v0.9.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
namespace MAUS {
21
21
 
22
22
EMREventProcessor::EMREventProcessor()
23
 
      : _plane_hit_proc(new EMRPlaneHitProcessor) {
24
 
    RegisterValueBranch("emr_plane_hits", &_plane_hit_proc,
25
 
                        &EMREvent::GetEMRPlaneHitArray,
26
 
                        &EMREvent::SetEMRPlaneHitArray, false);
 
23
      : _plane_hit_array_proc(new EMRPlaneHitProcessor) {
 
24
    RegisterValueBranch
 
25
          ("emr_plane_hits", &_plane_hit_array_proc, &EMREvent::GetEMRPlaneHitArray,
 
26
           &EMREvent::SetEMRPlaneHitArray, false );
 
27
    RegisterValueBranch
 
28
          ("initial_trigger", &_bool_proc, &EMREvent::GetInitialTrigger,
 
29
          &EMREvent::SetInitialTrigger, false);
 
30
    RegisterValueBranch
 
31
          ("has_primary", &_bool_proc, &EMREvent::GetHasPrimary,
 
32
          &EMREvent::SetHasPrimary, false);
 
33
    RegisterValueBranch
 
34
          ("range_primary", &_double_proc, &EMREvent::GetRangePrimary,
 
35
          &EMREvent::SetRangePrimary, false);
 
36
    RegisterValueBranch
 
37
          ("has_secondary", &_bool_proc, &EMREvent::GetHasSecondary,
 
38
          &EMREvent::SetHasSecondary, false);
 
39
    RegisterValueBranch
 
40
          ("range_secondary", &_double_proc, &EMREvent::GetRangeSecondary,
 
41
          &EMREvent::SetRangeSecondary, false);
 
42
    RegisterValueBranch
 
43
          ("secondary_to_primary_track_distance", &_double_proc,
 
44
          &EMREvent::GetSecondaryToPrimaryTrackDistance,
 
45
          &EMREvent::SetSecondaryToPrimaryTrackDistance, false);
 
46
    RegisterValueBranch
 
47
          ("total_charge_MA", &_double_proc, &EMREvent::GetTotalChargeMA,
 
48
          &EMREvent::SetTotalChargeMA, false);
 
49
    RegisterValueBranch
 
50
          ("charge_ratio_MA", &_double_proc, &EMREvent::GetChargeRatioMA,
 
51
          &EMREvent::SetChargeRatioMA, false);
 
52
    RegisterValueBranch
 
53
          ("total_charge_SA", &_double_proc, &EMREvent::GetTotalChargeSA,
 
54
          &EMREvent::SetTotalChargeSA, false);
 
55
    RegisterValueBranch
 
56
          ("charge_ratio_SA", &_double_proc, &EMREvent::GetChargeRatioSA,
 
57
          &EMREvent::SetChargeRatioSA, false);
27
58
}
28
59
}  // namespace MAUS
29
60
 
30