~c-e-pidcott/maus/1389a

« back to all changes in this revision

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

  • Committer: Celeste Pidcott
  • Date: 2016-02-17 13:22:56 UTC
  • mfrom: (663.170.48 maus-globalrecon)
  • Revision ID: c.e.pidcott@warwick.ac.uk-20160217132256-tyadq1gm93e2k2wv
merged in from lp:~jan.greis/maus/global-recon-rk

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/TOFSpacePointProcessor.hh"
18
 
 
19
 
namespace MAUS {
20
 
 
21
 
TOFSpacePointProcessor::TOFSpacePointProcessor()
22
 
    : _phys_event_number_proc(), _pixel_key_proc(), _charge_proc(),
23
 
      _station_proc(), _slabY_proc(), _slabX_proc(), _charge_product_proc(),
24
 
      _time_proc(), _detector_proc(), _part_event_number_proc(), _dt_proc() {
25
 
    RegisterValueBranch
26
 
          ("phys_event_number", &_phys_event_number_proc, &TOFSpacePoint::GetPhysEventNumber,
27
 
          &TOFSpacePoint::SetPhysEventNumber, true);
28
 
    RegisterValueBranch
29
 
          ("pixel_key", &_pixel_key_proc, &TOFSpacePoint::GetPixelKey,
30
 
          &TOFSpacePoint::SetPixelKey, true);
31
 
    RegisterValueBranch
32
 
          ("charge", &_charge_proc, &TOFSpacePoint::GetCharge,
33
 
          &TOFSpacePoint::SetCharge, true);
34
 
    RegisterValueBranch
35
 
          ("station", &_station_proc, &TOFSpacePoint::GetStation,
36
 
          &TOFSpacePoint::SetStation, true);
37
 
    RegisterValueBranch
38
 
          ("slabY", &_slabY_proc, &TOFSpacePoint::GetSlaby,
39
 
          &TOFSpacePoint::SetSlaby, true);
40
 
    RegisterValueBranch
41
 
          ("slabX", &_slabX_proc, &TOFSpacePoint::GetSlabx,
42
 
          &TOFSpacePoint::SetSlabx, true);
43
 
    RegisterValueBranch
44
 
          ("charge_product", &_charge_product_proc, &TOFSpacePoint::GetChargeProduct,
45
 
          &TOFSpacePoint::SetChargeProduct, true);
46
 
    RegisterValueBranch
47
 
          ("time", &_time_proc, &TOFSpacePoint::GetTime,
48
 
          &TOFSpacePoint::SetTime, true);
49
 
    RegisterValueBranch
50
 
          ("detector", &_detector_proc, &TOFSpacePoint::GetDetector,
51
 
          &TOFSpacePoint::SetDetector, true);
52
 
    RegisterValueBranch
53
 
          ("part_event_number", &_part_event_number_proc, &TOFSpacePoint::GetPartEventNumber,
54
 
          &TOFSpacePoint::SetPartEventNumber, true);
55
 
    RegisterValueBranch
56
 
          ("dt", &_dt_proc, &TOFSpacePoint::GetDt,
57
 
          &TOFSpacePoint::SetDt, true);
58
 
}
59
 
}  // namespace MAUS
60
 
 
61
 
 
 
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/TOFSpacePointProcessor.hh"
 
18
 
 
19
namespace MAUS {
 
20
 
 
21
TOFSpacePointProcessor::TOFSpacePointProcessor()
 
22
    : _phys_event_number_proc(), _pixel_key_proc(), _charge_proc(),
 
23
      _station_proc(), _slabY_proc(), _slabX_proc(), _charge_product_proc(),
 
24
      _time_proc(), _detector_proc(), _part_event_number_proc(), _dt_proc() {
 
25
    RegisterValueBranch
 
26
          ("phys_event_number", &_phys_event_number_proc, &TOFSpacePoint::GetPhysEventNumber,
 
27
          &TOFSpacePoint::SetPhysEventNumber, true);
 
28
    RegisterValueBranch
 
29
          ("pixel_key", &_pixel_key_proc, &TOFSpacePoint::GetPixelKey,
 
30
          &TOFSpacePoint::SetPixelKey, true);
 
31
    RegisterValueBranch
 
32
          ("charge", &_charge_proc, &TOFSpacePoint::GetCharge,
 
33
          &TOFSpacePoint::SetCharge, true);
 
34
    RegisterValueBranch
 
35
          ("station", &_station_proc, &TOFSpacePoint::GetStation,
 
36
          &TOFSpacePoint::SetStation, true);
 
37
    RegisterValueBranch
 
38
          ("slabY", &_slabY_proc, &TOFSpacePoint::GetSlaby,
 
39
          &TOFSpacePoint::SetSlaby, true);
 
40
    RegisterValueBranch
 
41
          ("slabX", &_slabX_proc, &TOFSpacePoint::GetSlabx,
 
42
          &TOFSpacePoint::SetSlabx, true);
 
43
    RegisterValueBranch
 
44
          ("charge_product", &_charge_product_proc, &TOFSpacePoint::GetChargeProduct,
 
45
          &TOFSpacePoint::SetChargeProduct, true);
 
46
    RegisterValueBranch
 
47
          ("time", &_time_proc, &TOFSpacePoint::GetTime,
 
48
          &TOFSpacePoint::SetTime, true);
 
49
    RegisterValueBranch
 
50
          ("detector", &_detector_proc, &TOFSpacePoint::GetDetector,
 
51
          &TOFSpacePoint::SetDetector, true);
 
52
    RegisterValueBranch
 
53
          ("part_event_number", &_part_event_number_proc, &TOFSpacePoint::GetPartEventNumber,
 
54
          &TOFSpacePoint::SetPartEventNumber, true);
 
55
    RegisterValueBranch
 
56
          ("dt", &_dt_proc, &TOFSpacePoint::GetDt,
 
57
          &TOFSpacePoint::SetDt, true);
 
58
    RegisterValueBranch
 
59
          ("global_x", &_global_x_proc, &TOFSpacePoint::GetGlobalPosX,
 
60
          &TOFSpacePoint::SetGlobalPosX, true);
 
61
    RegisterValueBranch
 
62
          ("global_y", &_global_y_proc, &TOFSpacePoint::GetGlobalPosY,
 
63
          &TOFSpacePoint::SetGlobalPosY, true);
 
64
    RegisterValueBranch
 
65
          ("global_z", &_global_z_proc, &TOFSpacePoint::GetGlobalPosZ,
 
66
          &TOFSpacePoint::SetGlobalPosZ, true);
 
67
    RegisterValueBranch
 
68
          ("global_x_err", &_global_x_err_proc, &TOFSpacePoint::GetGlobalPosXErr,
 
69
          &TOFSpacePoint::SetGlobalPosXErr, true);
 
70
    RegisterValueBranch
 
71
          ("global_y_err", &_global_y_err_proc, &TOFSpacePoint::GetGlobalPosYErr,
 
72
          &TOFSpacePoint::SetGlobalPosYErr, true);
 
73
    RegisterValueBranch
 
74
          ("global_z_err", &_global_z_err_proc, &TOFSpacePoint::GetGlobalPosZErr,
 
75
          &TOFSpacePoint::SetGlobalPosZErr, true);
 
76
}
 
77
}  // namespace MAUS
 
78
 
 
79