~durga/maus/rel709

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/* This file is part of MAUS: http://micewww.pp.rl.ac.uk/projects/maus
 *
 * MAUS is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * MAUS is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with MAUS.  If not, see <http://www.gnu.org/licenses/>.
 */

#include "src/common_cpp/JsonCppProcessors/EMRPlaneHitProcessor.hh"
#include "src/common_cpp/JsonCppProcessors/EMREventProcessor.hh"

namespace MAUS {

EMREventProcessor::EMREventProcessor()
      : _plane_hit_array_proc(new EMRPlaneHitProcessor) {
    RegisterValueBranch
	  ("emr_plane_hits", &_plane_hit_array_proc, &EMREvent::GetEMRPlaneHitArray,
           &EMREvent::SetEMRPlaneHitArray, false );
    RegisterValueBranch
          ("initial_trigger", &_bool_proc, &EMREvent::GetInitialTrigger,
          &EMREvent::SetInitialTrigger, false);
    RegisterValueBranch
          ("has_primary", &_bool_proc, &EMREvent::GetHasPrimary,
          &EMREvent::SetHasPrimary, false);
    RegisterValueBranch
          ("range_primary", &_double_proc, &EMREvent::GetRangePrimary,
          &EMREvent::SetRangePrimary, false);
    RegisterValueBranch
          ("has_secondary", &_bool_proc, &EMREvent::GetHasSecondary,
          &EMREvent::SetHasSecondary, false);
    RegisterValueBranch
          ("range_secondary", &_double_proc, &EMREvent::GetRangeSecondary,
          &EMREvent::SetRangeSecondary, false);
    RegisterValueBranch
          ("secondary_to_primary_track_distance", &_double_proc,
	  &EMREvent::GetSecondaryToPrimaryTrackDistance,
          &EMREvent::SetSecondaryToPrimaryTrackDistance, false);
    RegisterValueBranch
          ("total_charge_MA", &_double_proc, &EMREvent::GetTotalChargeMA,
          &EMREvent::SetTotalChargeMA, false);
    RegisterValueBranch
          ("charge_ratio_MA", &_double_proc, &EMREvent::GetChargeRatioMA,
          &EMREvent::SetChargeRatioMA, false);
    RegisterValueBranch
          ("total_charge_SA", &_double_proc, &EMREvent::GetTotalChargeSA,
          &EMREvent::SetTotalChargeSA, false);
    RegisterValueBranch
          ("charge_ratio_SA", &_double_proc, &EMREvent::GetChargeRatioSA,
          &EMREvent::SetChargeRatioSA, false);
}
}  // namespace MAUS