~sophie-middleton08/maus/devel

« back to all changes in this revision

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

  • Committer: Chris Rogers
  • Date: 2012-05-10 20:25:42 UTC
  • mfrom: (663.6.10 merge)
  • Revision ID: chris.rogers@stfc.ac.uk-20120510202542-cr294lltgh14lde0
Tags: MAUS-v0.2.2
ReleaseĀ 0.2.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* This file is part of MAUS: http://micewww.pp.rl.ac.uk/projects/maus
 
2
 *
 
3
 * MAUS is free software: you can redistribute it and/or modify
 
4
 * it under the terms of the GNU General Public License as published by
 
5
 * the Free Software Foundation, either version 3 of the License, or
 
6
 * (at your option) any later version.
 
7
 *
 
8
 * MAUS is distributed in the hope that it will be useful,
 
9
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
10
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
11
 * GNU General Public License for more details.
 
12
 *
 
13
 * You should have received a copy of the GNU General Public License
 
14
 * along with MAUS.  If not, see <http://www.gnu.org/licenses/>.
 
15
 */
 
16
 
 
17
#include "src/common_cpp/JsonCppProcessors/CkovAProcessor.hh"
 
18
 
 
19
namespace MAUS {
 
20
 
 
21
CkovAProcessor::CkovAProcessor()
 
22
    : _position_min_0_proc(), _arrival_time_2_proc(), _arrival_time_3_proc(),
 
23
      _arrival_time_0_proc(), _arrival_time_1_proc(), _pulse_1_proc(),
 
24
      _pulse_0_proc(), _pulse_3_proc(), _pulse_2_proc(), _coincidences_proc(),
 
25
      _position_min_2_proc(), _position_min_3_proc(), _total_charge_proc(),
 
26
      _position_min_1_proc(), _part_event_number_proc(), _number_of_pes_proc() {
 
27
    RegisterValueBranch
 
28
          ("position_min_0", &_position_min_0_proc, &CkovA::GetPositionMin0,
 
29
          &CkovA::SetPositionMin0, true);
 
30
    RegisterValueBranch
 
31
          ("arrival_time_2", &_arrival_time_2_proc, &CkovA::GetArrivalTime2,
 
32
          &CkovA::SetArrivalTime2, true);
 
33
    RegisterValueBranch
 
34
          ("arrival_time_3", &_arrival_time_3_proc, &CkovA::GetArrivalTime3,
 
35
          &CkovA::SetArrivalTime3, true);
 
36
    RegisterValueBranch
 
37
          ("arrival_time_0", &_arrival_time_0_proc, &CkovA::GetArrivalTime0,
 
38
          &CkovA::SetArrivalTime0, true);
 
39
    RegisterValueBranch
 
40
          ("arrival_time_1", &_arrival_time_1_proc, &CkovA::GetArrivalTime1,
 
41
          &CkovA::SetArrivalTime1, true);
 
42
    RegisterValueBranch
 
43
          ("pulse_1", &_pulse_1_proc, &CkovA::GetPulse1,
 
44
          &CkovA::SetPulse1, true);
 
45
    RegisterValueBranch
 
46
          ("pulse_0", &_pulse_0_proc, &CkovA::GetPulse0,
 
47
          &CkovA::SetPulse0, true);
 
48
    RegisterValueBranch
 
49
          ("pulse_3", &_pulse_3_proc, &CkovA::GetPulse3,
 
50
          &CkovA::SetPulse3, true);
 
51
    RegisterValueBranch
 
52
          ("pulse_2", &_pulse_2_proc, &CkovA::GetPulse2,
 
53
          &CkovA::SetPulse2, true);
 
54
    RegisterValueBranch
 
55
          ("coincidences", &_coincidences_proc, &CkovA::GetCoincidences,
 
56
          &CkovA::SetCoincidences, true);
 
57
    RegisterValueBranch
 
58
          ("position_min_2", &_position_min_2_proc, &CkovA::GetPositionMin2,
 
59
          &CkovA::SetPositionMin2, true);
 
60
    RegisterValueBranch
 
61
          ("position_min_3", &_position_min_3_proc, &CkovA::GetPositionMin3,
 
62
          &CkovA::SetPositionMin3, true);
 
63
    RegisterValueBranch
 
64
          ("total_charge", &_total_charge_proc, &CkovA::GetTotalCharge,
 
65
          &CkovA::SetTotalCharge, true);
 
66
    RegisterValueBranch
 
67
          ("position_min_1", &_position_min_1_proc, &CkovA::GetPositionMin1,
 
68
          &CkovA::SetPositionMin1, true);
 
69
    RegisterValueBranch
 
70
          ("part_event_number", &_part_event_number_proc, &CkovA::GetPartEventNumber,
 
71
          &CkovA::SetPartEventNumber, true);
 
72
    RegisterValueBranch
 
73
          ("number_of_pes", &_number_of_pes_proc, &CkovA::GetNumberOfPes,
 
74
          &CkovA::SetNumberOfPes, true);
 
75
}
 
76
}  // namespace MAUS
 
77
 
 
78